Class: Gitlab::BackgroundMigration::UserMentions::Models::Epic

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
CacheMarkdownField, EachBatch, Concerns::IsolatedMentionable, Concerns::MentionableMigrationMethods
Defined in:
lib/gitlab/background_migration/user_mentions/models/epic.rb

Constant Summary

Constants included from CacheMarkdownField

CacheMarkdownField::INVALIDATED_BY

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CacheMarkdownField

#attribute_invalidated?, #banzai_render_context, #cached_html_for, #cached_html_up_to_date?, #can_cache_field?, #invalidated_markdown_cache?, #latest_cached_markdown_version, #local_version, #parent_user, #refresh_markdown_cache, #refresh_markdown_cache!, #rendered_field_content, #skip_project_check?, #updated_cached_html_for

Methods included from Concerns::IsolatedMentionable

#all_references, #array_to_sql, #build_mention_values, #extractors, #skip_project_check?

Class Method Details

.user_mention_modelObject


25
26
27
# File 'lib/gitlab/background_migration/user_mentions/models/epic.rb', line 25

def self.user_mention_model
  Gitlab::BackgroundMigration::UserMentions::Models::EpicUserMention
end

Instance Method Details

#mentionable_paramsObject


37
38
39
# File 'lib/gitlab/background_migration/user_mentions/models/epic.rb', line 37

def mentionable_params
  { group: group, label_url_method: :group_epics_url }
end

#projectObject


33
34
35
# File 'lib/gitlab/background_migration/user_mentions/models/epic.rb', line 33

def project
  nil
end

#user_mention_modelObject


29
30
31
# File 'lib/gitlab/background_migration/user_mentions/models/epic.rb', line 29

def user_mention_model
  self.class.user_mention_model
end

#user_mention_note_idObject


45
46
47
# File 'lib/gitlab/background_migration/user_mentions/models/epic.rb', line 45

def user_mention_note_id
  'NULL'
end

#user_mention_resource_idObject


41
42
43
# File 'lib/gitlab/background_migration/user_mentions/models/epic.rb', line 41

def user_mention_resource_id
  id
end