Skip to content
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

Fix various problems around projects board view #30696

Merged
merged 74 commits into from May 8, 2024

Conversation

lunny
Copy link
Member

@lunny lunny commented Apr 25, 2024

The problem

The previous implementation will start multiple POST requests from the frontend when moving a column and another bug is moving the default column will never be remembered in fact.

What's changed

  • This PR will allow the default column to move to a non-first position
  • And it also uses one request instead of multiple requests when moving the columns
  • Use a star instead of a pin as the icon for setting the default column action
  • Inserted new column will be append to the end
  • Fix Wrong project_board_id for newly created issue #30701 the newly added issue will be append to the end of the default column
  • Fix when deleting a column, all issues in it will be displayed from UI but database records exist.
  • Add a limitation for columns in a project to 20. So the sorting will not be overflow because it's int8.

@lunny lunny added type/bug type/enhancement An improvement of existing functionality labels Apr 25, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 25, 2024
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 25, 2024
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/js labels Apr 25, 2024
@lunny lunny changed the title Fix moving column start multiple POST requests and default column will not be moved. Fix various problems around projects board view Apr 25, 2024
@lunny lunny added the backport/v1.22 This PR should be backported to Gitea 1.22 label Apr 25, 2024
Co-authored-by: silverwind <me@silverwind.io>
@silverwind
Copy link
Member

Not sure I like this pin to star change, star icon does seem a bit out of place here.

@lunny
Copy link
Member Author

lunny commented Apr 26, 2024

Not sure I like this pin to star change, star icon does seem a bit out of place here.

But it's not suitable to use pin to indicate it's a default column especially now default column can also be moved from the first position.

Co-authored-by: silverwind <me@silverwind.io>
@silverwind
Copy link
Member

silverwind commented Apr 26, 2024

Should users even have to care about "default column"? Seems like useless visual distraction to render that icon.

Imho we should remove that concept entirely. What's the purpose a default column anyways?

@lunny
Copy link
Member Author

lunny commented Apr 26, 2024

Should users even have to care about "default column"? Seems like useless visual distraction to render that icon.

Imho we should remove that concept entirely. What's the purpose a default column anyways?

Yes, I agree to remove the default column concept but not this PR. The default column because of the absent feature #30617

@silverwind
Copy link
Member

Should users even have to care about "default column"? Seems like useless visual distraction to render that icon.
Imho we should remove that concept entirely. What's the purpose a default column anyways?

Yes, I agree to remove the default column concept but not this PR. The default column because of the absent feature #30617

Maybe then remove the unrelated change with the icon?

@wxiaoguang
Copy link
Contributor

Rewritten and simplified.

@lunny
Copy link
Member Author

lunny commented May 6, 2024

This PR mixing column and board, I would suggest merging #30170 first

Since this is a bug fix and will be backported to v1.22. So I think it's better to merge this one and then that one.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 7, 2024
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 8, 2024
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 8, 2024
@lunny lunny enabled auto-merge (squash) May 8, 2024 13:32
@lunny lunny merged commit a303c97 into go-gitea:main May 8, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.23.0 milestone May 8, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request May 8, 2024
# The problem
The previous implementation will start multiple POST requests from the
frontend when moving a column and another bug is moving the default
column will never be remembered in fact.

# What's changed

- [x] This PR will allow the default column to move to a non-first
position
- [x] And it also uses one request instead of multiple requests when
moving the columns
- [x] Use a star instead of a pin as the icon for setting the default
column action
- [x] Inserted new column will be append to the end
- [x] Fix go-gitea#30701 the newly added issue will be append to the end of the
default column
- [x] Fix when deleting a column, all issues in it will be displayed
from UI but database records exist.
- [x] Add a limitation for columns in a project to 20. So the sorting
will not be overflow because it's int8.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@GiteaBot GiteaBot added backport/done All backports for this PR have been created and removed reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. labels May 8, 2024
lunny added a commit that referenced this pull request May 8, 2024
Backport #30696 by @lunny

# The problem
The previous implementation will start multiple POST requests from the
frontend when moving a column and another bug is moving the default
column will never be remembered in fact.

# What's changed

- [x] This PR will allow the default column to move to a non-first
position
- [x] And it also uses one request instead of multiple requests when
moving the columns
- [x] Use a star instead of a pin as the icon for setting the default
column action
- [x] Inserted new column will be append to the end
- [x] Fix #30701 the newly added issue will be append to the end of the
default column
- [x] Fix when deleting a column, all issues in it will be displayed
from UI but database records exist.
- [x] Add a limitation for columns in a project to 20. So the sorting
will not be overflow because it's int8.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
zjjhot added a commit to zjjhot/gitea that referenced this pull request May 9, 2024
* giteaofficial/main:
  Add missing menu active item background back (go-gitea#30897)
  Fix misspelling of mergable (go-gitea#30896)
  Fix incorrect issue form (go-gitea#30881)
  Update issue indexer after merging a PR (go-gitea#30715)
  Fix various problems around projects board view (go-gitea#30696)
  Fix wrong transfer hint (go-gitea#30889)
  Remove obsolete monaco workaround (go-gitea#30893)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/done All backports for this PR have been created backport/v1.22 This PR should be backported to Gitea 1.22 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code modifies/js modifies/templates This PR modifies the template files size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. type/bug type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong project_board_id for newly created issue
6 participants