Commit 3f4705c1 authored by Tetiana Chupryna's avatar Tetiana Chupryna Committed by Kamil Trzciński

Remove feature flag autofix indicator [RUN ALL RSPEC] [RUN AS-IF-FOSS]

parent 82939e72
......@@ -4,15 +4,10 @@ import produce from 'immer';
import { __ } from '~/locale';
import securityScannersQuery from '../graphql/queries/project_security_scanners.query.graphql';
import vulnerabilitiesQuery from '../graphql/queries/project_vulnerabilities.query.graphql';
import vulnerabilitiesQueryAutoFix from '../graphql/queries/project_vulnerabilities_autofix.query.graphql';
import { preparePageInfo } from '../helpers';
import { VULNERABILITIES_PER_PAGE } from '../store/constants';
import VulnerabilityList from './vulnerability_list.vue';
const query = gon?.features?.secureVulnerabilityAutofixIndicator
? vulnerabilitiesQueryAutoFix
: vulnerabilitiesQuery;
export default {
name: 'ProjectVulnerabilitiesApp',
components: {
......@@ -41,7 +36,7 @@ export default {
},
apollo: {
vulnerabilities: {
query,
query: vulnerabilitiesQuery,
variables() {
return {
fullPath: this.projectFullPath,
......
......@@ -23,6 +23,13 @@ query project(
) {
nodes {
...Vulnerability
hasSolutions
mergeRequest {
webUrl
state
securityAutoFix
iid
}
}
pageInfo {
...PageInfo
......
#import "~/graphql_shared/fragments/pageInfoCursorsOnly.fragment.graphql"
#import "../fragments/vulnerability.fragment.graphql"
query project(
$fullPath: ID!
$after: String
$first: Int
$severity: [VulnerabilitySeverity!]
$reportType: [VulnerabilityReportType!]
$scanner: [String!]
$state: [VulnerabilityState!]
$sort: VulnerabilitySort
) {
project(fullPath: $fullPath) {
vulnerabilities(
after: $after
first: $first
severity: $severity
reportType: $reportType
scanner: $scanner
state: $state
sort: $sort
) {
nodes {
...Vulnerability
hasSolutions
mergeRequest {
webUrl
state
securityAutoFix
iid
}
}
pageInfo {
...PageInfo
}
}
}
}
......@@ -5,10 +5,6 @@ module Projects
class VulnerabilityReportController < Projects::ApplicationController
include SecurityDashboardsPermissions
before_action do
push_frontend_feature_flag(:secure_vulnerability_autofix_indicator, @project, default_enabled: true)
end
feature_category :vulnerability_management
alias_method :vulnerable, :project
......
---
name: secure_vulnerability_autofix_indicator
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48251/
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/288347
milestone: '13.7'
type: development
group: group::composition analysis
default_enabled: true
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