-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add project column choice option on issue sidebar #30617
base: main
Are you sure you want to change the base?
Add project column choice option on issue sidebar #30617
Conversation
Signed-off-by: a1012112796 <[email protected]>
Signed-off-by: a1012112796 <[email protected]>
A change comment need to be created when switching successfully. |
That's another feature which is out of the topic of current pull request... |
Signed-off-by: a1012112796 <[email protected]>
No, I don't think so. It should be created with the same database transaction. |
see #30703, it's not a small change like what you see... |
Considering multi project support, maybe using modal later is a good choice. |
Please resolve the conflicts, sorry the rename PR results in conflicts. |
…_option Signed-off-by: a1012112796 <[email protected]>
Signed-off-by: a1012112796 <[email protected]>
Signed-off-by: a1012112796 <[email protected]>
Signed-off-by: a1012112796 <[email protected]>
Signed-off-by: a1012112796 <[email protected]>
models/project/issue.go
Outdated
} | ||
defer committer.Close() | ||
|
||
num, err := toColumn.NumIssues(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not right. If you update two columns, then they will have the same sorting
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but this function only can update one column.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean one by one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean one by one.
I think it okay, becaue when call it one by one, NumIssues also will be canged one by one. else which sorting
should be seted in this usage? zero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks in moveIssuesToAnotherColumn()
, it use max()
sql function to get new sorting
, I have use same logic in a824db0, how about this?
Signed-off-by: a1012112796 <[email protected]>
Announce it again. This PR may cause big conflict in Web UI with #30381. |
example:
![test](https://private-user-images.githubusercontent.com/25342410/324174259-f6122e93-b9a8-4473-b10c-78b75ddcfd58.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMTYzMTgsIm5iZiI6MTcyNDAxNjAxOCwicGF0aCI6Ii8yNTM0MjQxMC8zMjQxNzQyNTktZjYxMjJlOTMtYjlhOC00NDczLWIxMGMtNzhiNzVkZGNmZDU4LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDIxMjAxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0OTdlZjcwOTg2YjJhMjI2MzIzMDY1NmY0YjU2MmU0ZDhkZWYxMTFiM2EyZWQ3NDNjNjAxY2I2MDBmYmNkMjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zSJmYvp99UOFk_Wp9_jflcVi1NwmbwBdtarDhFByLNU)