Commit 44df7165 authored by Luke Bennett's avatar Luke Bennett

TEMPORARY fix for failures due to missing EE port from...

TEMPORARY fix for failures due to missing EE port from https://gitlab.com/gitlab-org/gitlab-ce/commit/e79db43d2cf269beec700353e776e92b15ac9af9
parent c1630e6a
import CEMergeRequestStore from '~/vue_merge_request_widget/stores/mr_widget_store'; import CEMergeRequestStore from '~/vue_merge_request_widget/stores/mr_widget_store';
import { stripeHtml } from '~/lib/utils/text_utility'; import { stripHtml } from '~/lib/utils/text_utility';
export default class MergeRequestStore extends CEMergeRequestStore { export default class MergeRequestStore extends CEMergeRequestStore {
constructor(data) { constructor(data) {
...@@ -103,7 +103,7 @@ export default class MergeRequestStore extends CEMergeRequestStore { ...@@ -103,7 +103,7 @@ export default class MergeRequestStore extends CEMergeRequestStore {
.filter(item => unapproved.find(el => el === item.vulnerability)) || []; .filter(item => unapproved.find(el => el === item.vulnerability)) || [];
} }
/** /**
* Dast Report sends some keys in HTML, we need to stripe the `<p>` tags. * Dast Report sends some keys in HTML, we need to strip the `<p>` tags.
* This should be moved to the backend. * This should be moved to the backend.
* *
* @param {Array} data * @param {Array} data
...@@ -112,7 +112,7 @@ export default class MergeRequestStore extends CEMergeRequestStore { ...@@ -112,7 +112,7 @@ export default class MergeRequestStore extends CEMergeRequestStore {
setDastReport(data) { setDastReport(data) {
this.dastReport = data.site.alerts.map(alert => ({ this.dastReport = data.site.alerts.map(alert => ({
name: alert.name, name: alert.name,
parsedDescription: stripeHtml(alert.desc, ' '), parsedDescription: stripHtml(alert.desc, ' '),
priority: alert.riskdesc, priority: alert.riskdesc,
...alert, ...alert,
})); }));
......
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