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

Add project column choice option on issue sidebar #30617

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

a1012112796
Copy link
Member

example:
 test

Signed-off-by: a1012112796 <1012112796@qq.com>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 20, 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 20, 2024
@github-actions github-actions bot added modifies/translation modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/js labels Apr 20, 2024
Signed-off-by: a1012112796 <1012112796@qq.com>
@lunny lunny added this to the 1.23.0 milestone Apr 22, 2024
@lunny
Copy link
Member

lunny commented Apr 23, 2024

A change comment need to be created when switching successfully.

models/project/board.go Outdated Show resolved Hide resolved
models/project/issue.go Outdated Show resolved Hide resolved
@a1012112796
Copy link
Member Author

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 <1012112796@qq.com>
@lunny
Copy link
Member

lunny commented Apr 23, 2024

A change comment need to be created when switching successfully.

That's another feature which is out of the topic of current pull request...

No, I don't think so. It should be created with the same database transaction.

@a1012112796
Copy link
Member Author

A change comment need to be created when switching successfully.

That's another feature which is out of the topic of current pull request...

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...

@yp05327
Copy link
Contributor

yp05327 commented Apr 30, 2024

Considering multi project support, maybe using modal later is a good choice.

@lunny lunny mentioned this pull request May 7, 2024
13 tasks
@lunny
Copy link
Member

lunny commented May 28, 2024

Please resolve the conflicts, sorry the rename PR results in conflicts.

…_option

Signed-off-by: a1012112796 <1012112796@qq.com>
Signed-off-by: a1012112796 <1012112796@qq.com>
Signed-off-by: a1012112796 <1012112796@qq.com>
routers/web/repo/projects.go Outdated Show resolved Hide resolved
Signed-off-by: a1012112796 <1012112796@qq.com>
Signed-off-by: a1012112796 <1012112796@qq.com>
@lunny lunny changed the title add project board choice option on issue sidebar Add project column choice option on issue sidebar Jun 3, 2024
models/project/column.go Outdated Show resolved Hide resolved
}
defer committer.Close()

num, err := toColumn.NumIssues(ctx)
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member Author

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?

Copy link
Member Author

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?

@yp05327
Copy link
Contributor

yp05327 commented Jun 6, 2024

Considering multi project support, maybe using modal later is a good choice.

Announce it again. This PR may cause big conflict in Web UI with #30381.

@yp05327
Copy link
Contributor

yp05327 commented Sep 19, 2024

Fix #13520?

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 modifies/js modifies/templates This PR modifies the template files modifies/translation size/L Denotes a PR that changes 100-499 lines, ignoring generated files. topic/projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants