Browse Source
Fix #9189 - API Allow only specific Colums to be updated on Issue (#9539)
Fix #9189 - API Allow only specific Colums to be updated on Issue (#9539)
* dont insert "-1" in any case to issue.poster_id * Make sure API cant override importand fields * code format * fix lint * WIP test * add missing poster_id * fix test * user.IsGhost handle nil * CI.restart() * make sure no -1 is realy added * CI.restart() * @lunny suggestion remove some not allowed fields * seperate issue.LoadMilestone * load milestone and return it on IssueEdit via API * extend Test for TestAPIEditIssue * fix fixtures * declare allowedColumnsUpdateIssueByAPI only once * Update Year * no var just write id drecty into func cal Co-authored-by: Lauris BH <lauris@nix.lv>lunny/display_deleted_branch2
committed by
techknowlogick
8 changed files with 127 additions and 29 deletions
-
58integrations/api_issue_test.go
-
15models/fixtures/issue.yml
-
8models/fixtures/milestone.yml
-
9models/fixtures/repository.yml
-
44models/issue.go
-
8models/user.go
-
10routers/api/v1/repo/issue.go
-
4routers/api/v1/repo/pull.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue