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

Kanban cards are losing their sort/priority order in 1.17 #20920

Closed
Akaitatsu opened this issue Aug 22, 2022 · 4 comments · Fixed by #20996
Closed

Kanban cards are losing their sort/priority order in 1.17 #20920

Akaitatsu opened this issue Aug 22, 2022 · 4 comments · Fixed by #20996
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Milestone

Comments

@Akaitatsu
Copy link

Description

In 1.16.1, we could prioritize cards within a column on the Kanban board and the new order would be saved. When I upgraded from 1.16.1 to 1.17.0, the cards stopped retaining the order and started sorting newest to oldest; upgrading to 1.17.1 didn't help. I reproduced this in the demo site as well; here is the link and repro steps:

https://try.gitea.io/eleven11/KanbanTest/projects/2282

  1. Note that the cards in the In Progress column are displayed in reverse of the order they were created (D, C, B, A).
  2. Rearrange the cards in any other order
  3. Click the browser refresh button
  4. Note that the cards are back in the same order when you started

I ran SQL Server Profiler and queried the database and Gitea does appear to be updating the sorting column in the project_issue table. However, when the page is reloaded it's ignoring the sorting and appears to sort by issue_id.

There are no errors in the Gitea log.

Screenshots

Before
image
Changed the order
image
Refreshed the page
image

Gitea Version

1.17.1

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

Windows Server 2019

Browser Version

Firefox 103.0.2

@Akaitatsu Akaitatsu added type/bug topic/ui Change the appearance of the Gitea UI labels Aug 22, 2022
@lunny lunny added this to the 1.17.2 milestone Aug 23, 2022
@anbraten
Copy link
Contributor

I can confirm this.

Was it possible to sort columns of a board before as well (I think so) as that is not working for me as well.

@Akaitatsu
Copy link
Author

Was it possible to sort columns of a board before as well (I think so) as that is not working for me as well.

Yes. I used the sorting extensively in 1.16.1.

@wxiaoguang
Copy link
Contributor

It's a regression of "Move project files into models/project sub package (#17704)"

The SortType was lost in LoadIssuesFromBoard.

I was keeping telling people:

  1. Do not rebase / force-push during refactoring
  2. Make all refactoring works complete as soon as possible (do not last longer than 1 week)

But people do not want to listen (I have to complain!), that's why I do not want to spend time for arguments on Gitea.

@Akaitatsu
Copy link
Author

Many thanks! It's working great since I upgraded to 1.17.2.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants