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
d4d621c6
Commit
d4d621c6
authored
Jan 28, 2021
by
Dave Pisek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature flag
* Pushes feature flag to frontend * Adds feature flag check to frontend
parent
194513ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/controllers/projects/pipelines_controller.rb
app/controllers/projects/pipelines_controller.rb
+1
-0
ee/app/assets/javascripts/security_dashboard/components/vulnerability_action_buttons.vue
...ity_dashboard/components/vulnerability_action_buttons.vue
+5
-1
No files found.
app/controllers/projects/pipelines_controller.rb
View file @
d4d621c6
...
...
@@ -17,6 +17,7 @@ class Projects::PipelinesController < Projects::ApplicationController
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
)
push_frontend_feature_flag
(
:ci_mini_pipeline_gl_dropdown
,
project
,
type: :development
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:jira_for_vulnerabilities
,
@project
,
type: :development
,
default_enabled:
false
)
end
before_action
:ensure_pipeline
,
only:
[
:show
]
before_action
:push_experiment_to_gon
,
only: :index
,
if: :html_request?
...
...
ee/app/assets/javascripts/security_dashboard/components/vulnerability_action_buttons.vue
View file @
d4d621c6
...
...
@@ -3,6 +3,7 @@ import { mapActions, mapState } from 'vuex';
import
{
GlTooltipDirective
,
GlButton
}
from
'
@gitlab/ui
'
;
import
{
VULNERABILITY_MODAL_ID
}
from
'
ee/vue_shared/security_reports/components/constants
'
;
import
{
BV_SHOW_MODAL
}
from
'
~/lib/utils/constants
'
;
import
glFeatureFlagsMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
{
s__
}
from
'
~/locale
'
;
export
default
{
...
...
@@ -13,6 +14,7 @@ export default {
directives
:
{
GlTooltip
:
GlTooltipDirective
,
},
mixins
:
[
glFeatureFlagsMixin
()],
props
:
{
vulnerability
:
{
type
:
Object
,
...
...
@@ -37,7 +39,9 @@ export default {
computed
:
{
...
mapState
(
'
vulnerabilities
'
,
[
'
isCreatingIssue
'
,
'
isDismissingVulnerability
'
]),
isJiraVulnerabilityIssuesEnabled
()
{
return
Boolean
(
this
.
vulnerability
.
create_jira_issue_url
);
return
(
this
.
glFeatures
.
jiraForVulnerabilities
&&
Boolean
(
this
.
vulnerability
.
create_jira_issue_url
)
);
},
createIssueButtonLabel
()
{
const
{
...
...
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