1
0
Fork 0
forgejo/models
6543 37e10d4543 [API] Add Reactions (#9220)
* reject reactions wich ar not allowed

* dont duble check CreateReaction now throw ErrForbiddenIssueReaction

* add /repos/{owner}/{repo}/issues/comments/{id}/reactions endpoint

* add Find Functions

* fix some swagger stuff + add issue reaction endpoints + GET ReactionList now use FindReactions...

* explicite Issue Only Reaction for FindReactionsOptions with "-1" commentID

* load issue; load user ...

* return error again

* swagger def canged after LINT

* check if user has ben loaded

* add Tests

* better way of comparing results

* add suggestion

* use different issue for test
(dont interfear with integration test)

* test dont compare Location on timeCompare

* TEST: add forbidden dubble add

* add comments in code to explain

* add settings.UI.ReactionsMap
so if !setting.UI.ReactionsMap[opts.Type] works
2019-12-07 17:04:19 -05:00
..
fixtures [API] Add Reactions (#9220) 2019-12-07 17:04:19 -05:00
migrations Branch protection: Possibility to not use whitelist but allow anyone with write access (#9055) 2019-12-03 20:08:56 -05:00
access.go
access_test.go
action.go Move UpdateIssuesCommit from models to repofiles (#9276) 2019-12-07 23:52:36 +08:00
action_list.go
action_test.go Move UpdateIssuesCommit from models to repofiles (#9276) 2019-12-07 23:52:36 +08:00
admin.go
admin_test.go
attachment.go
attachment_test.go
branches.go Branch protection: Possibility to not use whitelist but allow anyone with write access (#9055) 2019-12-03 20:08:56 -05:00
branches_test.go
commit_status.go
commit_status_test.go
consistency.go
context.go
convert.go
error.go [API] Add Reactions (#9220) 2019-12-07 17:04:19 -05:00
error_oauth2.go
external_login_user.go
gpg_key.go
gpg_key_test.go Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
helper.go
helper_directory.go
helper_environment.go
issue.go Remove unused comment actions (#9222) 2019-12-02 16:43:39 +02:00
issue_assignees.go Remove unused comment actions (#9222) 2019-12-02 16:43:39 +02:00
issue_assignees_test.go
issue_comment.go Remove unused comment actions (#9222) 2019-12-02 16:43:39 +02:00
issue_comment_list.go
issue_comment_test.go
issue_dependency.go
issue_dependency_test.go
issue_label.go Show label list on label set (#9251) 2019-12-06 21:13:19 -05:00
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go Remove unused comment actions (#9222) 2019-12-02 16:43:39 +02:00
issue_milestone.go Remove unused comment actions (#9222) 2019-12-02 16:43:39 +02:00
issue_milestone_test.go
issue_reaction.go [API] Add Reactions (#9220) 2019-12-07 17:04:19 -05:00
issue_reaction_test.go [API] Add Reactions (#9220) 2019-12-07 17:04:19 -05:00
issue_stopwatch.go
issue_stopwatch_test.go
issue_test.go [UI] IssuePage multi repo select (#8741) 2019-12-01 22:50:36 -05: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 Extract createComment (#9125) 2019-11-30 21:44:39 -05:00
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
oauth2_application_test.go
org.go Only show part of members on orgnization dashboard and add paging for orgnization members page (#9092) 2019-12-06 13:34:54 +08:00
org_team.go Branch protection: Possibility to not use whitelist but allow anyone with write access (#9055) 2019-12-03 20:08:56 -05:00
org_team_test.go
org_test.go Only show part of members on orgnization dashboard and add paging for orgnization members page (#9092) 2019-12-06 13:34:54 +08:00
pull.go Move some pull request functions from models to services (#9266) 2019-12-06 21:44:10 -05:00
pull_list.go Move some pull request functions from models to services (#9266) 2019-12-06 21:44:10 -05:00
pull_test.go Move some pull request functions from models to services (#9266) 2019-12-06 21:44:10 -05:00
release.go
repo.go Show label list on label set (#9251) 2019-12-06 21:13:19 -05:00
repo_activity.go
repo_branch.go
repo_collaboration.go
repo_collaboration_test.go
repo_generate.go Graceful: Cancel Process on monitor pages & HammerTime (#9213) 2019-11-30 16:40:22 +02:00
repo_generate_test.go
repo_indexer.go
repo_issue.go
repo_list.go
repo_list_test.go Redirect issue if repo has configured external tracker. (#9247) 2019-12-06 23:21:18 -05:00
repo_mirror.go
repo_permission.go
repo_permission_test.go
repo_redirect.go Move repoWorkPool outside rename/transfer repository (#9086) 2019-12-06 12:00:50 +08:00
repo_redirect_test.go Move repoWorkPool outside rename/transfer repository (#9086) 2019-12-06 12:00:50 +08:00
repo_sign.go
repo_test.go
repo_unit.go
repo_watch.go
repo_watch_test.go
review.go Branch protection: Possibility to not use whitelist but allow anyone with write access (#9055) 2019-12-03 20:08:56 -05:00
review_test.go Branch protection: Possibility to not use whitelist but allow anyone with write access (#9055) 2019-12-03 20:08:56 -05:00
ssh_key.go
ssh_key_test.go
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
user.go
user_follow.go
user_follow_test.go
user_heatmap.go
user_heatmap_test.go
user_mail.go
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go
userlist.go
userlist_test.go
webhook.go
webhook_test.go
wiki.go
wiki_test.go