Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4bd51958
Commit
4bd51958
authored
Nov 02, 2020
by
Maxime Orefice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group_coverage_data_report_graph feature flag
parent
abd6f3ec
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
4 deletions
+13
-4
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+1
-1
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+1
-1
ee/app/controllers/groups/analytics/repository_analytics_controller.rb
...llers/groups/analytics/repository_analytics_controller.rb
+1
-0
ee/app/graphql/ee/types/group_type.rb
ee/app/graphql/ee/types/group_type.rb
+1
-1
ee/config/feature_flags/development/group_coverage_data_report_graph.yml
...re_flags/development/group_coverage_data_report_graph.yml
+8
-0
ee/spec/graphql/ee/types/group_type_spec.rb
ee/spec/graphql/ee/types/group_type_spec.rb
+1
-1
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
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
(
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
4bd51958
...
...
@@ -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",
ee/app/controllers/groups/analytics/repository_analytics_controller.rb
View file @
4bd51958
...
...
@@ -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
)
...
...
ee/app/graphql/ee/types/group_type.rb
View file @
4bd51958
...
...
@@ -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
...
...
ee/config/feature_flags/development/group_coverage_data_report_graph.yml
0 → 100644
View file @
4bd51958
---
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
ee/spec/graphql/ee/types/group_type_spec.rb
View file @
4bd51958
...
...
@@ -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'"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment