Commit 72fa121c authored by James Lopez's avatar James Lopez

Merge branch 'mo-add-feature-flag' into 'master'

Add group_coverage_data_report_graph feature flag

See merge request gitlab-org/gitlab!46698
parents 429836ae 4bd51958
......@@ -8047,7 +8047,7 @@ type Group {
"""
Represents the code coverage activity for this group. Available only when
feature flag `group_coverage_data_report` is enabled
feature flag `group_coverage_data_report_graph` is enabled
"""
codeCoverageActivities(
"""
......
......@@ -22228,7 +22228,7 @@
},
{
"name": "codeCoverageActivities",
"description": "Represents the code coverage activity for this group. Available only when feature flag `group_coverage_data_report` is enabled",
"description": "Represents the code coverage activity for this group. Available only when feature flag `group_coverage_data_report_graph` is enabled",
"args": [
{
"name": "startDate",
......@@ -7,6 +7,7 @@ class Groups::Analytics::RepositoryAnalyticsController < Groups::Analytics::Appl
before_action -> { check_feature_availability!(:group_repository_analytics) }
before_action -> { authorize_view_by_action!(:read_group_repository_analytics) }
before_action -> { push_frontend_feature_flag(:group_coverage_data_report, @group, default_enabled: false) }
before_action -> { push_frontend_feature_flag(:group_coverage_data_report_graph, @group, default_enabled: false) }
def show
track_event(pageview_tracker_params)
......
......@@ -72,7 +72,7 @@ module EE
null: true,
description: 'Represents the code coverage activity for this group',
resolver: ::Resolvers::Ci::CodeCoverageActivitiesResolver,
feature_flag: :group_coverage_data_report
feature_flag: :group_coverage_data_report_graph
end
end
end
......
---
name: group_coverage_data_report_graph
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46698
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/276003
milestone: '13.6'
type: development
group: group::testing
default_enabled: false
......@@ -93,7 +93,7 @@ RSpec.describe GitlabSchema.types['Group'] do
subject { GitlabSchema.execute(query, context: { current_user: user }).as_json }
it 'returns a graphQL error field does not exist' do
stub_feature_flags(group_coverage_data_report: false)
stub_feature_flags(group_coverage_data_report_graph: false)
expected_message = "Field 'codeCoverageActivities' doesn't exist on type 'Group'"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment