Class: Atlassian::JiraConnect::Serializers::FeatureFlagEntity

Inherits:
Grape::Entity
  • Object
show all
Includes:
Gitlab::Routing
Defined in:
lib/atlassian/jira_connect/serializers/feature_flag_entity.rb

Constant Summary collapse

STRATEGY_NAMES =
{
  ::Operations::FeatureFlags::Strategy::STRATEGY_DEFAULT => 'All users',
  ::Operations::FeatureFlags::Strategy::STRATEGY_GITLABUSERLIST => 'User List',
  ::Operations::FeatureFlags::Strategy::STRATEGY_GRADUALROLLOUTUSERID => 'Percent of users',
  ::Operations::FeatureFlags::Strategy::STRATEGY_FLEXIBLEROLLOUT => 'Percent rollout',
  ::Operations::FeatureFlags::Strategy::STRATEGY_USERWITHID => 'User IDs'
}.freeze

Instance Method Summary collapse

Methods included from Gitlab::Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Instance Method Details

#issue_keysObject


22
23
24
# File 'lib/atlassian/jira_connect/serializers/feature_flag_entity.rb', line 22

def issue_keys
  @issue_keys ||= JiraIssueKeyExtractor.new(flag.description).issue_keys
end

#schema_versionObject


26
27
28
# File 'lib/atlassian/jira_connect/serializers/feature_flag_entity.rb', line 26

def schema_version
  '1.0'
end

#update_sequence_idObject


30
31
32
# File 'lib/atlassian/jira_connect/serializers/feature_flag_entity.rb', line 30

def update_sequence_id
  options[:update_sequence_id] || Client.generate_update_sequence_id
end