Module: GraphqlTriggers

Defined in:
app/graphql/graphql_triggers.rb

Class Method Summary collapse

Class Method Details

.issuable_assignees_updated(issuable) ⇒ Object


4
5
6
# File 'app/graphql/graphql_triggers.rb', line 4

def self.issuable_assignees_updated(issuable)
  GitlabSchema.subscriptions.trigger('issuableAssigneesUpdated', { issuable_id: issuable.to_gid }, issuable)
end

.issuable_labels_updated(issuable) ⇒ Object


16
17
18
# File 'app/graphql/graphql_triggers.rb', line 16

def self.issuable_labels_updated(issuable)
  GitlabSchema.subscriptions.trigger('issuableLabelsUpdated', { issuable_id: issuable.to_gid }, issuable)
end

.issuable_title_updated(issuable) ⇒ Object


12
13
14
# File 'app/graphql/graphql_triggers.rb', line 12

def self.issuable_title_updated(issuable)
  GitlabSchema.subscriptions.trigger('issuableTitleUpdated', { issuable_id: issuable.to_gid }, issuable)
end

.issue_crm_contacts_updated(issue) ⇒ Object


8
9
10
# File 'app/graphql/graphql_triggers.rb', line 8

def self.issue_crm_contacts_updated(issue)
  GitlabSchema.subscriptions.trigger('issueCrmContactsUpdated', { issuable_id: issue.to_gid }, issue)
end