gitlab-org--gitlab-foss/app/models/concerns
Patrick Bajao 2eecfd8f9d Use Redis for CacheMarkDownField on non AR models
This allows using `CacheMarkdownField` for models that are not backed
by ActiveRecord.

When the including class inherits `ActiveRecord::Base` we include
`Gitlab::MarkdownCache::ActiveRecord::Extension`. This will cause the
markdown fields to be rendered and the generated HTML stored in a
`<field>_html` attribute on the record. We also store the version
used for generating the markdown.

All other classes that include this model will include the
`Gitlab::MarkdownCache::Redis::Extension`. This add the `<field>_html`
attributes to that model and will generate the html in them. The
generated HTML will be cached in redis under the key
`markdown_cache:<class>:<id>`. The class this included in must
therefore respond to `id`.
2019-06-05 13:19:59 +08:00
..
ci Fix CI_COMMIT_REF_NAME and SLUG variable 2019-04-29 18:52:51 +07:00
mentionable Turn reference regex constants into methods 2018-11-12 13:50:31 +01:00
storage Remove deprecated uses of attribute_changed? 2019-04-30 15:24:25 +08:00
token_authenticatable_strategies Externalize strings in app/models 2019-04-12 12:28:07 +00:00
access_requestable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
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 Sort issues and merge requests in ascending and descending order 2018-12-06 16:57:19 +00:00
batch_destroy_dependent_associations.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
blob_language_from_git_attributes.rb Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
blob_like.rb Fixing image lfs bug and also displaying text lfs 2018-12-27 16:51:07 +01:00
blocks_json_serialization.rb Eliminate duplicated words 2018-11-22 01:01:23 +09:00
bulk_member_access_load.rb Use Gitlab::SafeRequestStore in more places 2018-09-24 12:11:27 -07:00
cache_markdown_field.rb Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
cacheable_attributes.rb Move schema aware defaults to build_from_defaults 2018-12-19 11:24:54 +01:00
case_sensitivity.rb Port changes for CODEOWNERS to CE 2018-09-06 09:07:19 +02:00
chronic_duration_attribute.rb Add custom validation message for chronic duration attribute 2018-12-05 13:09:43 +01:00
closed_at_filterable.rb Allow IssuableFinder to filter by closed_at 2019-02-21 09:40:49 +01:00
created_at_filterable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
deployable.rb Ignore environment validation failure 2018-11-15 11:19:04 +00:00
deployment_platform.rb Convert instance level clusters enabled to class method 2019-05-07 08:37:04 +12:00
deprecated_assignee.rb [CE] Support multiple assignees for merge requests 2019-04-08 18:40:00 -03:00
descendant.rb Rename GroupHierarchy into ObjectHierarchy 2018-12-19 15:24:29 +01:00
diff_file.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
diff_positionable_note.rb Backport CE changes from draft_notes addition in EE 2018-10-04 15:45:00 -06:00
discussion_on_diff.rb Cache diff highlight in discussions 2018-12-21 16:59:21 -02:00
each_batch.rb Fix statement timeouts in RemoveRestrictedTodos migration 2018-11-04 06:01:17 -08:00
editable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
enum_with_nil.rb Remove rails4 specific code 2018-12-16 10:48:41 +01:00
expirable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
fast_destroy_all.rb Merge branch 'fix-misspellings-app-comments' into 'master' 2019-02-26 12:25:01 +01:00
faster_cache_keys.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
feature_gate.rb Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
from_union.rb Added FromUnion to easily select from a UNION 2018-09-17 12:39:43 +02:00
ghost_user.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
group_descendant.rb Externalize strings in app/models 2019-04-12 12:28:07 +00:00
has_ref.rb Fix CI_COMMIT_REF_NAME and SLUG variable 2019-04-29 18:52:51 +07:00
has_status.rb Backport EE changes 2019-05-06 17:33:01 -04: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 Merge branch 'fix-misspellings-app-comments' into 'master' 2019-02-26 12:25:01 +01:00
importable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
issuable.rb Remove deprecated uses of attribute_changed? 2019-04-30 15:24:25 +08:00
issuable_states.rb Address review comments 2019-03-28 11:31:14 -03:00
label_eventable.rb
loaded_in_group_list.rb Updates code using class_methods over module ClassMethods 2018-08-29 16:56:34 +02:00
manual_inverse_association.rb Fix deprecation: Passing an argument to force an association to reload is now deprecated 2019-01-11 19:28:38 +01:00
maskable.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
mentionable.rb Turn reference regex constants into methods 2018-11-12 13:50:31 +01:00
milestoneish.rb Adjust burndown chart opened issues count 2019-06-04 13:10:38 +03:00
mirror_authentication.rb Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
note_on_diff.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
noteable.rb Make resolvable_types a class method 2019-06-03 16:41:05 +02:00
optionally_search.rb Updates code using class_methods over module ClassMethods 2018-08-29 16:56:34 +02:00
participable.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
presentable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
project_features_compatibility.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
project_services_loggable.rb Enable frozen string in vestigial files 2018-09-11 02:06:35 -07:00
prometheus_adapter.rb Merge branch '59719-const-get' into 'master' 2019-04-05 14:33:11 +00:00
protected_branch_access.rb Fix how we use EE::ProtectedRefAccess 2018-09-11 18:45:49 +08:00
protected_ref.rb Refactor ProtectedRefMatcher to be more generic 2018-08-13 13:36:22 +02:00
protected_ref_access.rb Remove EE-specific code from ProtectedRefAccess 2018-09-17 19:36:53 +08:00
protected_tag_access.rb Fix how we use EE::ProtectedRefAccess 2018-09-11 18:45:49 +08:00
reactive_caching.rb Allow reactive caching to be used in services 2019-04-04 17:27:29 +00:00
reactive_service.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
redactable.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
redis_cacheable.rb Remove rails4 specific code 2018-12-16 10:48:41 +01:00
referable.rb Add /-/ scope to link_reference_pattern 2019-05-29 16:31:04 +03:00
relative_positioning.rb Speed up setting of relative position 2018-11-23 13:06:04 +00:00
resolvable_discussion.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
resolvable_note.rb Make resolvable_types a class method 2019-06-03 16:41:05 +02:00
routable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
select_for_project_authorization.rb Updates code using class_methods over module ClassMethods 2018-08-29 16:56:34 +02:00
sha_attribute.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
shardable.rb Store hashed storage paths in the database 2018-11-29 16:08:14 +00:00
sortable.rb Extend CTE search optimisation to projects 2019-04-04 12:36:22 +01:00
spammable.rb Updates code using class_methods over module ClassMethods 2018-08-29 16:56:34 +02:00
strip_attribute.rb Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
subscribable.rb Fix N+1 for notification recipients in subscribers 2018-10-04 14:27:36 +01:00
taskable.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
throttled_touch.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
time_trackable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
token_authenticatable.rb Update TokenAuthenticatable so methods can be overridden 2019-03-19 13:01:37 +08:00
triggerable_hooks.rb Merge branch 'filter-web-hooks-by-branch' into 'master' 2018-09-05 13:39:41 +00:00
uniquify.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
update_project_statistics.rb Cleans up UpdateProjectStatistics concern 2019-06-03 15:06:03 +00:00
updated_at_filterable.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
valid_attribute.rb Enable more frozen string in app/models/**/*.rb 2018-08-07 00:37:36 -07:00
with_uploads.rb Remove fast_destroy_uploads feature flag 2019-02-12 12:30:27 -02:00