gitlab-org--gitlab-foss/app/models/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
..
ci Add support for DAG 2019-08-01 14:26:49 +00:00
mentionable
storage Add a rubocop for Rails.logger 2019-07-10 19:26:47 +00:00
token_authenticatable_strategies Externalize strings in app/models 2019-04-12 12:28:07 +00:00
access_requestable.rb
atomic_internal_id.rb Rewind IID on Ci::Pipelines 2019-04-16 11:22:23 +02:00
avatarable.rb Disable method replacement in avatar loading 2019-04-29 21:29:25 -07:00
awardable.rb Add service classes for mutating AwardEmoji 2019-08-21 11:39:41 +12:00
batch_destroy_dependent_associations.rb
blob_language_from_git_attributes.rb
blob_like.rb
blocks_json_serialization.rb
bulk_member_access_load.rb
cache_markdown_field.rb Banzai - avoid redis if attr is in DB cache 2019-07-10 21:35:43 -06:00
cacheable_attributes.rb Save instance administration project id in DB 2019-08-07 18:40:36 +00:00
case_sensitivity.rb Remove dead MySQL code 2019-07-23 16:53:03 +01:00
chronic_duration_attribute.rb
closed_at_filterable.rb
created_at_filterable.rb
deployable.rb Populate cluster_id when creating a deployment 2019-06-27 17:28:52 +12:00
deployment_platform.rb Removes clusters_cte feature flag 2019-07-17 20:01:08 +12:00
deprecated_assignee.rb [CE] Support multiple assignees for merge requests 2019-04-08 18:40:00 -03:00
diff_file.rb
diff_positionable_note.rb Make diff_refs_match_commit validation reusable 2019-08-01 16:00:36 -05:00
discussion_on_diff.rb
each_batch.rb
editable.rb
enum_with_nil.rb
expirable.rb
fast_destroy_all.rb
faster_cache_keys.rb
feature_gate.rb
from_union.rb Pass string directly to #from 2019-07-11 13:46:17 +08:00
ghost_user.rb
group_descendant.rb Group parent not preloaded errors in sentry 2019-08-02 19:24:04 +02:00
has_environment_scope.rb Bring scoped environment variables to core 2019-08-08 18:51:52 +00:00
has_ref.rb Fix CI_COMMIT_REF_NAME and SLUG variable 2019-04-29 18:52:51 +07:00
has_status.rb Optimise DAG processing 2019-08-14 11:34:44 +02:00
has_variable.rb Implement support for CI variables of type file 2019-05-06 13:11:42 +00:00
ignorable_column.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
iid_routes.rb
importable.rb
issuable.rb CE port for milestones should not be set on epics issue promotion 2019-07-18 18:52:10 +00:00
issuable_states.rb Address review comments 2019-03-28 11:31:14 -03:00
label_eventable.rb
loaded_in_group_list.rb
manual_inverse_association.rb
maskable.rb Document new masking requirements 2019-07-23 21:22:26 +02:00
mentionable.rb Banzai - avoid redis if attr is in DB cache 2019-07-10 21:35:43 -06:00
milestoneish.rb Adjust burndown chart opened issues count 2019-06-04 13:10:38 +03:00
mirror_authentication.rb
new_has_variable.rb Add Job specific variables 2019-07-29 07:43:10 +00:00
note_on_diff.rb
noteable.rb Make resolvable_types a class method 2019-06-03 16:41:05 +02:00
optionally_search.rb
participable.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
presentable.rb
project_api_compatibility.rb Fix the project auto devops API 2019-07-19 21:39:26 +00:00
project_features_compatibility.rb Add *_access_level to project API 2019-07-03 16:18:05 +02:00
project_services_loggable.rb
prometheus_adapter.rb Convert RestClient to Gitlab::HTTP for Prometheus Monitor 2019-08-07 02:42:20 +00:00
protected_branch_access.rb
protected_ref.rb Prefer flat_map over map + flatten 2019-07-26 10:44:13 +00:00
protected_ref_access.rb
protected_tag_access.rb
reactive_caching.rb Allow ReactiveCaching to support nil value 2019-07-08 14:50:58 +01:00
reactive_service.rb
redactable.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
redis_cacheable.rb
referable.rb Add /-/ scope to link_reference_pattern 2019-05-29 16:31:04 +03:00
relative_positioning.rb Use SQL to find the gap instead of iterating 2019-08-05 17:49:24 +08:00
resolvable_discussion.rb
resolvable_note.rb Make resolvable_types a class method 2019-06-03 16:41:05 +02:00
routable.rb Remove dead MySQL code 2019-07-23 16:53:03 +01:00
select_for_project_authorization.rb
service_push_data_validations.rb Extract common validations from ci services 2019-06-21 15:21:16 +01:00
sha_attribute.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
shardable.rb
sortable.rb Extend CTE search optimisation to projects 2019-04-04 12:36:22 +01:00
spammable.rb
stepable.rb Don't use transactions and exceptions 2019-07-16 19:20:43 +00:00
strip_attribute.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
subscribable.rb
taskable.rb Properly identify task lists inside a blockquote 2019-07-19 12:40:16 -05:00
throttled_touch.rb
time_trackable.rb
token_authenticatable.rb Update gitlab-styles to add Lint/SafeNavigationWithEmpty 2019-07-26 16:50:45 -05:00
triggerable_hooks.rb
uniquify.rb
update_project_statistics.rb Removes update_statistics_namespace feature flag 2019-08-02 09:29:29 -05:00
updated_at_filterable.rb
valid_attribute.rb
with_uploads.rb