gitlab-org--gitlab-foss/app/controllers/concerns
Luke Duncalfe 37b17fa61a Add service classes for mutating AwardEmoji
Adding, destroying and toggling emoji previously lacked services and
instead were performed through methods called on Awardable models.

This led to inconsistencies where relevant todos would be marked as done
only when emoji were awarded through our controllers, but not through
the API. Todos could also be marked as done when an emoji was being
removed.

Behaviour changes

- Awarding emoji through the API will now mark a relevant Todo as done
- Toggling an emoji off (destroying it) through our controllers will no
  longer mark a relevant Todo as done

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
2019-08-21 11:39:41 +12:00
..
accepts_pending_invitations.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
authenticates_with_two_factor.rb Ensure Warden triggers after_authentication callback 2019-07-26 07:05:50 +00:00
boards_actions.rb Use serialization for project boards 2019-06-06 22:13:14 +12:00
boards_responses.rb Move Multiple Issue Boards for Projects to Core 2019-06-26 12:28:00 +03:00
checks_collaboration.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
confirm_email_warning.rb Incorporate feedback fixes 2019-08-12 17:40:24 +02:00
continue_params.rb Make checks for continue_params more robust 2019-06-25 13:19:29 +02:00
controller_with_cross_project_access_check.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
creates_commit.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
cycle_analytics_params.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
diff_for_path.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
enforces_admin_authentication.rb Check instance cluster feature at policy level 2019-05-07 08:37:04 +12:00
enforces_two_factor_authentication.rb #57815 Password authentication disabled for UltraAuth users 2019-06-18 16:18:14 +00:00
group_tree.rb Remove code related to object hierarchy in MySQL 2019-07-25 15:35:06 +08:00
hooks_execution.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
import_url_params.rb Fix project settings not being able to update 2019-06-03 15:27:24 -07:00
internal_redirect.rb Support redirect paths starting with a dash 2019-06-25 13:19:30 +02:00
invisible_captcha.rb Standardize remote_ip and path keys for auth.log and api_json.log 2019-08-20 18:12:28 +00:00
issuable_actions.rb Do not persist notes filter when auto-switching 2019-08-07 15:45:23 +00:00
issuable_collections.rb Add inheritance flexibility to issuable collections 2019-08-06 11:38:50 +03:00
issuable_collections_action.rb Expose merge requests count based on user access 2019-06-18 12:46:46 +03:00
issues_calendar.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
labels_as_hash.rb Create labels_as_hash_ concern, modify params for method 2018-10-03 09:13:42 -07:00
lfs_request.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
members_presentation.rb Add MembersPreloader to fix ActiveRecord cop 2018-11-02 21:38:58 +00:00
membership_actions.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
milestone_actions.rb Fix confidential issue label disclosure on milestone view 2019-05-14 13:16:30 +02:00
multiple_boards_actions.rb Move Multiple Issue Boards for Projects to Core 2019-06-26 12:28:00 +03:00
notes_actions.rb Use NotesFinder in IssuableActions module 2019-08-01 10:42:42 +02:00
oauth_applications.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
params_backward_compatibility.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
preview_markdown.rb Fixed test specs 2019-04-04 13:08:34 +00:00
project_unauthorized.rb Avoid passing not_found_or_authorized_proc around 2019-05-15 17:36:50 +07:00
record_user_last_activity.rb Remove comment about needing cookie support 2019-02-05 14:00:50 -08:00
renders_blob.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
renders_commits.rb Check for valid refs in CommitController before doing anything 2018-12-09 21:56:31 -08:00
renders_member_access.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
renders_notes.rb Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
repository_settings_redirect.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
requires_whitelisted_monitoring_client.rb Upgrade to Rails 5.2 2019-07-12 10:15:31 +08:00
routable_actions.rb Avoid passing not_found_or_authorized_proc around 2019-05-15 17:36:50 +07:00
send_file_upload.rb Fix Content-Disposition hard-coded to attachments 2019-02-13 11:09:52 -08:00
sends_blob.rb Fixed bug with the content disposition with wiki attachments 2018-10-17 15:47:05 +00:00
service_params.rb Fix comparing equality between `ActionController::Parameters` and a `Hash`.... 2019-02-05 12:30:06 +00:00
sessionless_authentication.rb Enable Rubocop Performance/InefficientHashSearch 2019-07-24 11:47:58 -07:00
snippets_actions.rb Add feature flag for workhorse content type calculation 2018-12-06 21:22:39 +00:00
spammable_actions.rb Externalize strings in projects controllers 2019-03-27 16:52:52 +00:00
todos_actions.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
toggle_award_emoji.rb Add service classes for mutating AwardEmoji 2019-08-21 11:39:41 +12:00
toggle_subscription_action.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00
uploads_actions.rb Queries for Upload should be scoped by model 2019-07-11 15:52:55 +02:00
with_performance_bar.rb Remove line profiler from performance bar 2019-07-30 10:00:52 +01:00
workhorse_request.rb Enable frozen string in app/controllers/**/*.rb 2018-09-18 21:22:45 -07:00