Class: Atlassian::JiraConnect::Serializers::FeatureFlagEntity
- Inherits:
-
Grape::Entity
- Object
- Grape::Entity
- Atlassian::JiraConnect::Serializers::FeatureFlagEntity
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
includes_helpers, redirect_legacy_paths, url_helpers
Instance Method Details
#issue_keys ⇒ Object
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_version ⇒ Object
26
27
28
|
# File 'lib/atlassian/jira_connect/serializers/feature_flag_entity.rb', line 26
def schema_version
'1.0'
end
|
#update_sequence_id ⇒ Object
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
|