Skip to content

Don't create default column when viewing project columns #34878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lunny
Copy link
Member

@lunny lunny commented Jun 27, 2025

When viewing a project column, if there is no column, a default column will be created but not display in the UI. When refresh the page, the column will be displayed. It seems uncomfortable for me.

This PR will not create default column when viewing project columns. Now the default column will only be created when adding an issue to an empty project(there is no any column).


Please review with whitespaces ignored. https://github.com/go-gitea/gitea/pull/34878/files?diff=unified&w=1

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 27, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Jun 27, 2025
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Jun 27, 2025

It was written intentionally to make sure legacy project issues (with no implicit default column) can be properly migrated to new system, and make the system can self-heal even if the default board missing (assign an issue to a new project which doesn't have default column)

I guess you broke the old design.

@wxiaoguang wxiaoguang marked this pull request as draft June 27, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants