Commit 2a6d552e authored by mfluharty's avatar mfluharty

Get the new endpoint into the vue app

Propagate codequality reports path through Mr. Widget Store
Set it as a path in codequality vue app like the other paths
parent 4b6a75bf
...@@ -30,6 +30,11 @@ export default { ...@@ -30,6 +30,11 @@ export default {
required: false, required: false,
default: null, default: null,
}, },
codequalityReportsPath: {
type: String,
required: false,
default: '',
},
codequalityHelpPath: { codequalityHelpPath: {
type: String, type: String,
required: true, required: true,
...@@ -51,6 +56,7 @@ export default { ...@@ -51,6 +56,7 @@ export default {
headPath: this.headPath, headPath: this.headPath,
baseBlobPath: this.baseBlobPath, baseBlobPath: this.baseBlobPath,
headBlobPath: this.headBlobPath, headBlobPath: this.headBlobPath,
reportsPath: this.codequalityReportsPath,
helpPath: this.codequalityHelpPath, helpPath: this.codequalityHelpPath,
}); });
......
...@@ -6,6 +6,7 @@ export default { ...@@ -6,6 +6,7 @@ export default {
state.headPath = paths.headPath; state.headPath = paths.headPath;
state.baseBlobPath = paths.baseBlobPath; state.baseBlobPath = paths.baseBlobPath;
state.headBlobPath = paths.headBlobPath; state.headBlobPath = paths.headBlobPath;
state.reportsPath = paths.reportsPath;
state.helpPath = paths.helpPath; state.helpPath = paths.helpPath;
}, },
[types.REQUEST_REPORTS](state) { [types.REQUEST_REPORTS](state) {
......
export default () => ({ export default () => ({
basePath: null, basePath: null,
headPath: null, headPath: null,
reportsPath: null,
baseBlobPath: null, baseBlobPath: null,
headBlobPath: null, headBlobPath: null,
......
...@@ -464,6 +464,7 @@ export default { ...@@ -464,6 +464,7 @@ export default {
:head-path="mr.codeclimate.head_path" :head-path="mr.codeclimate.head_path"
:head-blob-path="mr.headBlobPath" :head-blob-path="mr.headBlobPath"
:base-blob-path="mr.baseBlobPath" :base-blob-path="mr.baseBlobPath"
:codequality-reports-path="mr.codequalityReportsPath"
:codequality-help-path="mr.codequalityHelpPath" :codequality-help-path="mr.codequalityHelpPath"
/> />
......
...@@ -241,10 +241,11 @@ export default class MergeRequestStore { ...@@ -241,10 +241,11 @@ export default class MergeRequestStore {
this.isDismissedSuggestPipeline = data.is_dismissed_suggest_pipeline; this.isDismissedSuggestPipeline = data.is_dismissed_suggest_pipeline;
this.securityReportsDocsPath = data.security_reports_docs_path; this.securityReportsDocsPath = data.security_reports_docs_path;
// codeclimate // code quality
const blobPath = data.blob_path || {}; const blobPath = data.blob_path || {};
this.headBlobPath = blobPath.head_path || ''; this.headBlobPath = blobPath.head_path || '';
this.baseBlobPath = blobPath.base_path || ''; this.baseBlobPath = blobPath.base_path || '';
this.codequalityReportsPath = data.codequality_reports_path;
this.codequalityHelpPath = data.codequality_help_path; this.codequalityHelpPath = data.codequality_help_path;
this.codeclimate = data.codeclimate; this.codeclimate = data.codeclimate;
......
...@@ -278,6 +278,7 @@ export default { ...@@ -278,6 +278,7 @@ export default {
:head-path="mr.codeclimate.head_path" :head-path="mr.codeclimate.head_path"
:head-blob-path="mr.headBlobPath" :head-blob-path="mr.headBlobPath"
:base-blob-path="mr.baseBlobPath" :base-blob-path="mr.baseBlobPath"
:codequality-reports-path="mr.codequalityReportsPath"
:codequality-help-path="mr.codequalityHelpPath" :codequality-help-path="mr.codequalityHelpPath"
/> />
<grouped-browser-performance-reports-app <grouped-browser-performance-reports-app
......
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