Skip to content
代码片段 群组 项目
未验证 提交 663aead1 编辑于 作者: Malcolm Locke's avatar Malcolm Locke 提交者: GitLab
浏览文件

Remove MRWidgetEntity#vulnerability_feedback_path

Remove unused property
`MergeRequestWidgetEntity#vulnerability_feedback_path`.
上级 2ac2e01b
No related branches found
No related tags found
无相关合并请求
......@@ -15,7 +15,6 @@ export default class MergeRequestStore extends CEMergeRequestStore {
this.secretDetectionHelp = data.secret_detection_help_path;
this.dependencyScanningHelp = data.dependency_scanning_help_path;
this.canReadVulnerabilities = data.can_read_vulnerabilities;
this.vulnerabilityFeedbackPath = data.vulnerability_feedback_path;
this.canReadVulnerabilityFeedback = data.can_read_vulnerability_feedback;
this.canRetryExternalStatusChecks = data.can_retry_external_status_checks;
this.securityReportsPipelineId = data.pipeline_id;
......
......@@ -77,10 +77,6 @@ module MergeRequestWidgetEntity
can?(current_user, :read_vulnerability_feedback, merge_request.project)
end
expose :vulnerability_feedback_path do |merge_request|
project_vulnerability_feedback_index_path(merge_request.project)
end
expose :create_vulnerability_feedback_issue_path do |merge_request|
presenter(merge_request).create_vulnerability_feedback_issue_path(merge_request.project)
end
......
......@@ -23,9 +23,6 @@
"can_read_vulnerability_feedback": {
"type": "boolean"
},
"vulnerability_feedback_path": {
"type": "string"
},
"create_vulnerability_feedback_issue_path": {
"type": "string"
},
......
{
"type": "object",
"allOf": [
{ "$ref": "../../../../../../spec/fixtures/api/schemas/entities/merge_request_widget.json" },
{
"$ref": "../../../../../../spec/fixtures/api/schemas/entities/merge_request_widget.json"
},
{
"properties": {
"blob_path": {
"head_path": { "type": "string" },
"base_path": { "type": "string" }
"head_path": {
"type": "string"
},
"base_path": {
"type": "string"
}
},
"codeclimate": {
"head_path": { "type": "string" },
"base_path": { "type": "string" }
},
"has_approvals_available": { "type": ["boolean"] },
"api_approvals_path": { "type": ["string", "null"] },
"api_approval_settings_path": { "type": ["string", "null"] },
"api_approve_path": { "type": ["string", "null"] },
"api_unapprove_path": { "type": ["string", "null"] },
"vulnerability_feedback_path": { "type": "string" },
"can_read_vulnerability_feedback": { "type": "boolean" },
"create_vulnerability_feedback_issue_path": { "type": ["string", "null"] },
"create_vulnerability_feedback_merge_request_path": { "type": ["string", "null"] },
"create_vulnerability_feedback_dismissal_path": { "type": ["string", "null"] }
"head_path": {
"type": "string"
},
"base_path": {
"type": "string"
}
},
"has_approvals_available": {
"type": [
"boolean"
]
},
"api_approvals_path": {
"type": [
"string",
"null"
]
},
"api_approval_settings_path": {
"type": [
"string",
"null"
]
},
"api_approve_path": {
"type": [
"string",
"null"
]
},
"api_unapprove_path": {
"type": [
"string",
"null"
]
},
"can_read_vulnerability_feedback": {
"type": "boolean"
},
"create_vulnerability_feedback_issue_path": {
"type": [
"string",
"null"
]
},
"create_vulnerability_feedback_merge_request_path": {
"type": [
"string",
"null"
]
},
"create_vulnerability_feedback_dismissal_path": {
"type": [
"string",
"null"
]
}
}
}
]
......
......@@ -224,9 +224,6 @@ def create_all_artifacts
end
it 'has vulnerability feedback paths' do
expect(subject.as_json[:vulnerability_feedback_path]).to eq(
"/#{merge_request.project.full_path}/-/vulnerability_feedback"
)
expect(subject.as_json).to include(:create_vulnerability_feedback_issue_path)
expect(subject.as_json).to include(:create_vulnerability_feedback_merge_request_path)
expect(subject.as_json).to include(:create_vulnerability_feedback_dismissal_path)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册