Browse Source
[API] Fix 9544 | return 200 when reaction already exist (#9550)
[API] Fix 9544 | return 200 when reaction already exist (#9550)
* add ErrReactionAlreadyExist * extend CreateReaction * reaction already exist = 200 * extend FindReactionsOptions * refactor swagger options/definitions * fix swagger-validate * Update models/error.go Co-Authored-By: zeripath <art27@cantab.net> * fix test PART1 * extend FindReactionsOptions with UserID option * catch error on test * fix test PART2 * format ... Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <matti@mdranta.net>lunny/display_deleted_branch2
committed by
techknowlogick
9 changed files with 119 additions and 79 deletions
-
18integrations/api_issue_reaction_test.go
-
15models/error.go
-
34models/issue_reaction.go
-
13models/issue_reaction_test.go
-
4modules/structs/issue_reaction.go
-
50routers/api/v1/repo/issue_reaction.go
-
23routers/api/v1/swagger/issue.go
-
3routers/api/v1/swagger/options.go
-
38templates/swagger/v1_json.tmpl
Write
Preview
Loading…
Cancel
Save
Reference in new issue