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
d08880a4
Commit
d08880a4
authored
Aug 11, 2021
by
Sarah GP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pipelineGraphLayersView feature flag
Removes flag, updates specs and docs Changelog: other
parent
63065597
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
83 deletions
+5
-83
app/assets/javascripts/pipelines/components/graph/graph_component_wrapper.vue
...ts/pipelines/components/graph/graph_component_wrapper.vue
+1
-3
app/controllers/projects/pipelines_controller.rb
app/controllers/projects/pipelines_controller.rb
+0
-1
config/feature_flags/development/pipeline_graph_layers_view.yml
.../feature_flags/development/pipeline_graph_layers_view.yml
+0
-8
doc/ci/pipelines/index.md
doc/ci/pipelines/index.md
+1
-21
spec/frontend/pipelines/graph/graph_component_wrapper_spec.js
.../frontend/pipelines/graph/graph_component_wrapper_spec.js
+3
-50
No files found.
app/assets/javascripts/pipelines/components/graph/graph_component_wrapper.vue
View file @
d08880a4
...
...
@@ -4,7 +4,6 @@ import getPipelineDetails from 'shared_queries/pipelines/get_pipeline_details.qu
import
getUserCallouts
from
'
~/graphql_shared/queries/get_user_callouts.query.graphql
'
;
import
{
__
}
from
'
~/locale
'
;
import
LocalStorageSync
from
'
~/vue_shared/components/local_storage_sync.vue
'
;
import
glFeatureFlagMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
{
DEFAULT
,
DRAW_FAILURE
,
LOAD_FAILURE
}
from
'
../../constants
'
;
import
DismissPipelineGraphCallout
from
'
../../graphql/mutations/dismiss_pipeline_notification.graphql
'
;
import
getPipelineQuery
from
'
../../graphql/queries/get_pipeline_header_data.query.graphql
'
;
...
...
@@ -32,7 +31,6 @@ export default {
LocalStorageSync
,
PipelineGraph
,
},
mixins
:
[
glFeatureFlagMixin
()],
inject
:
{
graphqlResourceEtag
:
{
default
:
''
,
...
...
@@ -200,7 +198,7 @@ export default {
return
this
.
$apollo
.
queries
.
pipeline
.
loading
&&
!
this
.
pipeline
;
},
showGraphViewSelector
()
{
return
Boolean
(
this
.
glFeatures
.
pipelineGraphLayersView
&&
this
.
pipeline
?.
usesNeeds
)
;
return
this
.
pipeline
?.
usesNeeds
;
},
},
mounted
()
{
...
...
app/controllers/projects/pipelines_controller.rb
View file @
d08880a4
...
...
@@ -13,7 +13,6 @@ class Projects::PipelinesController < Projects::ApplicationController
before_action
:authorize_create_pipeline!
,
only:
[
:new
,
:create
,
:config_variables
]
before_action
:authorize_update_pipeline!
,
only:
[
:retry
,
:cancel
]
before_action
do
push_frontend_feature_flag
(
:pipeline_graph_layers_view
,
project
,
type: :development
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:graphql_pipeline_details
,
project
,
type: :development
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:graphql_pipeline_details_users
,
current_user
,
type: :development
,
default_enabled: :yaml
)
end
...
...
config/feature_flags/development/pipeline_graph_layers_view.yml
deleted
100644 → 0
View file @
63065597
---
name
:
pipeline_graph_layers_view
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56865
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/328538
milestone
:
'
13.11'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
true
doc/ci/pipelines/index.md
View file @
d08880a4
...
...
@@ -363,9 +363,7 @@ you visualize the entire pipeline, including all cross-project inter-dependencie
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/298973) in GitLab 13.12.
> - [Deployed behind a feature flag](../../user/feature_flags.md), disabled by default.
> - [Enabled by default](https://gitlab.com/gitlab-org/gitlab/-/issues/328538) in GitLab 13.12.
> - Enabled on GitLab.com.
> - Recommended for production use.
> - To disable in GitLab self-managed instances, ask a GitLab administrator to [disable it](#enable-or-disable-job-dependency-view). **(FREE SELF)**
> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/328538) in GitLab 14.2.
This in-development feature might not be available for your use. There can be
[
risks when enabling features still in development
](
../../administration/feature_flags.md#risks-when-enabling-features-still-in-development
)
.
...
...
@@ -391,24 +389,6 @@ To see the full `needs` dependency tree for a job, hover over it:
![
single job dependency tree highlighted
](
img/pipelines_graph_dependency_view_hover_v13_12.png
)
#### Enable or disable job dependency view **(FREE SELF)**
The job dependency view is deployed behind a feature flag that is
**enabled by default**
.
[
GitLab administrators with access to the GitLab Rails console
](
../../administration/feature_flags.md
)
can disable it.
To enable it:
```
ruby
Feature
.
enable
(
:pipeline_graph_layers_view
)
```
To disable it:
```
ruby
Feature
.
disable
(
:pipeline_graph_layers_view
)
```
### Pipeline mini graphs
Pipeline mini graphs take less space and can tell you at a
...
...
spec/frontend/pipelines/graph/graph_component_wrapper_spec.js
View file @
d08880a4
...
...
@@ -257,28 +257,11 @@ describe('Pipeline graph wrapper', () => {
});
describe
(
'
view dropdown
'
,
()
=>
{
describe
(
'
when pipelineGraphLayersView feature flag is off
'
,
()
=>
{
beforeEach
(
async
()
=>
{
createComponentWithApollo
();
jest
.
runOnlyPendingTimers
();
await
wrapper
.
vm
.
$nextTick
();
});
it
(
'
does not appear
'
,
()
=>
{
expect
(
getViewSelector
().
exists
()).
toBe
(
false
);
});
});
describe
(
'
when pipelineGraphLayersView feature flag is on
'
,
()
=>
{
describe
(
'
default
'
,
()
=>
{
let
layersFn
;
beforeEach
(
async
()
=>
{
layersFn
=
jest
.
spyOn
(
parsingUtils
,
'
listByLayers
'
);
createComponentWithApollo
({
provide
:
{
glFeatures
:
{
pipelineGraphLayersView
:
true
,
},
},
mountFn
:
mount
,
});
...
...
@@ -316,14 +299,9 @@ describe('Pipeline graph wrapper', () => {
});
});
describe
(
'
when
pipelineGraphLayersView feature flag is on and
layers view is selected
'
,
()
=>
{
describe
(
'
when layers view is selected
'
,
()
=>
{
beforeEach
(
async
()
=>
{
createComponentWithApollo
({
provide
:
{
glFeatures
:
{
pipelineGraphLayersView
:
true
,
},
},
data
:
{
currentViewType
:
LAYER_VIEW
,
},
...
...
@@ -346,14 +324,9 @@ describe('Pipeline graph wrapper', () => {
});
});
describe
(
'
when
pipelineGraphLayersView feature flag is on,
layers view is selected, and links are active
'
,
()
=>
{
describe
(
'
when layers view is selected, and links are active
'
,
()
=>
{
beforeEach
(
async
()
=>
{
createComponentWithApollo
({
provide
:
{
glFeatures
:
{
pipelineGraphLayersView
:
true
,
},
},
data
:
{
currentViewType
:
LAYER_VIEW
,
showLinks
:
true
,
...
...
@@ -374,11 +347,6 @@ describe('Pipeline graph wrapper', () => {
describe
(
'
when hover tip would otherwise show, but it has been previously dismissed
'
,
()
=>
{
beforeEach
(
async
()
=>
{
createComponentWithApollo
({
provide
:
{
glFeatures
:
{
pipelineGraphLayersView
:
true
,
},
},
data
:
{
currentViewType
:
LAYER_VIEW
,
showLinks
:
true
,
...
...
@@ -402,11 +370,6 @@ describe('Pipeline graph wrapper', () => {
localStorage
.
setItem
(
VIEW_TYPE_KEY
,
LAYER_VIEW
);
createComponentWithApollo
({
provide
:
{
glFeatures
:
{
pipelineGraphLayersView
:
true
,
},
},
mountFn
:
mount
,
});
...
...
@@ -434,11 +397,6 @@ describe('Pipeline graph wrapper', () => {
localStorage
.
setItem
(
VIEW_TYPE_KEY
,
LAYER_VIEW
);
createComponentWithApollo
({
provide
:
{
glFeatures
:
{
pipelineGraphLayersView
:
true
,
},
},
mountFn
:
mount
,
getPipelineDetailsHandler
:
jest
.
fn
().
mockResolvedValue
(
nonNeedsResponse
),
});
...
...
@@ -462,11 +420,6 @@ describe('Pipeline graph wrapper', () => {
nonNeedsResponse
.
data
.
project
.
pipeline
.
usesNeeds
=
false
;
createComponentWithApollo
({
provide
:
{
glFeatures
:
{
pipelineGraphLayersView
:
true
,
},
},
mountFn
:
mount
,
getPipelineDetailsHandler
:
jest
.
fn
().
mockResolvedValue
(
nonNeedsResponse
),
});
...
...
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