0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-02-16 18:12:46 +01:00
gitea/models
6543 9600c27085 [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>
2019-12-31 03:21:21 -05:00
..
fixtures
migrations
access.go
access_test.go
action.go
action_list.go refactor: reduce sql query in retrieveFeeds (#3547) 2018-02-21 18:55:34 +08:00
action_test.go
admin.go
admin_test.go
attachment.go
attachment_test.go refactor(models/attachement): use getAttachmentsByUUIDs (#9317) 2019-12-11 00:01:52 +00:00
branches.go
branches_test.go
commit_status.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
commit_status_test.go
consistency.go Auto-subscribe user to repository when they commit/tag to it (#7657) 2019-11-10 09:22:19 +00:00
context.go
convert.go
error.go
error_oauth2.go
external_login_user.go Allow more than 255 characters for tokens in external_login_user table (#8554) 2019-10-18 09:58:36 +03:00
gpg_key.go Ensure default gpg settings not nil and found commits have reference to repo (#8604) 2019-10-20 23:26:36 +01:00
gpg_key_test.go
helper.go Add reactions to issues/PR and comments (#2856) 2017-12-04 01:14:26 +02:00
helper_directory.go
helper_environment.go
issue.go remove unused method and rename createcommentWithNoAction (#9367) 2019-12-16 11:54:24 +08:00
issue_assignees.go remove unused method and rename createcommentWithNoAction (#9367) 2019-12-16 11:54:24 +08:00
issue_assignees_test.go
issue_comment.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
issue_comment_list.go
issue_comment_test.go
issue_dependency.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
issue_dependency_test.go
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go
issue_milestone.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
issue_milestone_test.go
issue_reaction.go [API] Fix 9544 | return 200 when reaction already exist (#9550) 2019-12-31 03:21:21 -05:00
issue_reaction_test.go
issue_stopwatch.go
issue_stopwatch_test.go
issue_test.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
issue_tracked_time.go
issue_tracked_time_test.go
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go
issue_xref_test.go
lfs.go
lfs_lock.go
log.go
login_source.go
main_test.go
migrate.go
models.go
models_test.go
notification.go
notification_test.go
oauth2.go
oauth2_application.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
oauth2_application_test.go
org.go
org_team.go
org_team_test.go
org_test.go
pull.go Provide Default messages for merges (#9393) 2019-12-30 18:34:11 -05:00
pull_list.go
pull_sign.go
pull_test.go
release.go
repo.go
repo_activity.go
repo_branch.go
repo_collaboration.go
repo_collaboration_test.go
repo_generate.go
repo_generate_test.go Variable expansion in repository templates (#9163) 2019-11-30 01:54:47 -05:00
repo_indexer.go
repo_issue.go
repo_list.go Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
repo_list_test.go
repo_mirror.go
repo_permission.go Move more issue assignee code from models to issue service (#8690) 2019-10-28 10:11:50 +08:00
repo_permission_test.go
repo_redirect.go
repo_redirect_test.go
repo_sign.go
repo_test.go
repo_unit.go
repo_watch.go
repo_watch_test.go
review.go Provide Default messages for merges (#9393) 2019-12-30 18:34:11 -05:00
review_test.go
ssh_key.go
ssh_key_test.go Fix SSH2 conditonal in key parsing code (#8806) 2019-11-03 19:08:18 +08:00
star.go
star_test.go
task.go
test_fixtures.go
token.go
token_test.go
topic.go
topic_test.go
twofactor.go
u2f.go
u2f_test.go
unit.go
unit_tests.go
update.go
update_test.go
upload.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
user.go
user_follow.go
user_follow_test.go
user_heatmap.go Move database settings from models to setting (#7806) 2019-08-24 11:24:45 +02:00
user_heatmap_test.go
user_mail.go
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go
userlist.go Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00
userlist_test.go
webhook.go
webhook_test.go
wiki.go
wiki_test.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00