Conversation
Hi @lunny Could you please review and confirm the issue on db-tests? |
Add my test results video Gitea Multiple Projects Feature Test Steps |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
return 0 | ||
func (issue *Issue) projectIDs(ctx context.Context) []int64 { | ||
var ids []int64 | ||
if err := db.GetEngine(ctx).Table("project_issue").Where("issue_id=?", issue.ID).Select("project_id").Find(&ids); err != nil { |
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.
It's not safe to ignore the err, in case the SQL would be wrong.
@@ -96,71 +90,88 @@ func LoadIssuesFromColumn(ctx context.Context, b *project_model.Column, opts *Is | |||
// IssueAssignOrRemoveProject changes the project associated with an issue | |||
// If newProjectID is 0, the issue is removed from the project | |||
func IssueAssignOrRemoveProject(ctx context.Context, issue *Issue, doer *user_model.User, newProjectID, newColumnID int64) error { | |||
func IssueAssignOrRemoveProject(ctx context.Context, issue *Issue, doer *user_model.User, newProjectIDs []int64, newColumnID int64) error { |
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.
How could it be right?
Why newColumnID
could apply to all newProjectIDs
?
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.
Default to uncategorized
@@ -30,7 +30,7 @@ type IndexerData struct { | |||
LabelIDs []int64 `json:"label_ids"` | |||
NoLabel bool `json:"no_label"` // True if LabelIDs is empty | |||
MilestoneID int64 `json:"milestone_id"` | |||
ProjectID int64 `json:"project_id"` | |||
ProjectIDs []int64 `json:"project_id"` |
wxiaoguang May 24, 2025 •edited
LoadingUh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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 do not think the change is right for indexers, I am pretty sure it breaks existing indexers and the JSON field type doesn't match.
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.
@wxiaoguang Can you help me fix this problem?
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.
If I would get some time (but I can't promise at the moment)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reopening PR due to branch rename
Close #30381 #12974 #27984 #30163
Add my test results video Gitea Multiple Projects Feature Test Steps