Commit c190b805 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 5c0b1f18 202e5251
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
eventHub.$emit('clearDetailIssue'); eventHub.$emit('clearDetailIssue');
} else { } else {
eventHub.$emit('newDetailIssue', this.issue); eventHub.$emit('newDetailIssue', this.issue);
boardsStore.detail.list = this.list; boardsStore.setListDetail(this.list);
} }
} }
}, },
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
$(this.$refs.submitButton).enable(); $(this.$refs.submitButton).enable();
boardsStore.setIssueDetail(issue); boardsStore.setIssueDetail(issue);
boardsStore.detail.list = this.list; boardsStore.setListDetail(this.list);
}) })
.catch(() => { .catch(() => {
// Need this because our jQuery very kindly disables buttons on ALL form submissions // Need this because our jQuery very kindly disables buttons on ALL form submissions
......
...@@ -207,6 +207,10 @@ const boardsStore = { ...@@ -207,6 +207,10 @@ const boardsStore = {
eventHub.$emit('updateTokens'); eventHub.$emit('updateTokens');
}, },
setListDetail(newList) {
this.detail.list = newList;
},
updateFiltersUrl() { updateFiltersUrl() {
window.history.pushState(null, null, `?${this.filter.path}`); window.history.pushState(null, null, `?${this.filter.path}`);
}, },
......
---
type: reference
---
# Group-level Kubernetes clusters # Group-level Kubernetes clusters
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/34758) in GitLab 11.6. > [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/34758) in GitLab 11.6.
......
...@@ -19,7 +19,7 @@ in the merge request widget area: ...@@ -19,7 +19,7 @@ in the merge request widget area:
For instance, consider the following workflow: For instance, consider the following workflow:
1. Your backend team member starts a new implementation for making certain feature in your app faster 1. Your backend team member starts a new implementation for making a certain feature in your app faster
1. With Code Quality reports, they analyze how their implementation is impacting the code quality 1. With Code Quality reports, they analyze how their implementation is impacting the code quality
1. The metrics show that their code degrade the quality in 10 points 1. The metrics show that their code degrade the quality in 10 points
1. You ask a co-worker to help them with this modification 1. You ask a co-worker to help them with this modification
...@@ -63,7 +63,7 @@ Example: ...@@ -63,7 +63,7 @@ Example:
NOTE: **Note:** NOTE: **Note:**
Although the Code Climate spec supports more properties, those are ignored by GitLab. Although the Code Climate spec supports more properties, those are ignored by GitLab.
For more information on how the Code Quality job should look like, check the For more information on what the Code Quality job should look like, check the
example on [analyzing a project's code quality](../../../ci/examples/code_quality.md). example on [analyzing a project's code quality](../../../ci/examples/code_quality.md).
GitLab then checks this report, compares the metrics between the source and target GitLab then checks this report, compares the metrics between the source and target
......
...@@ -312,6 +312,17 @@ describe('Store', () => { ...@@ -312,6 +312,17 @@ describe('Store', () => {
}); });
}); });
describe('setListDetail', () => {
it('sets the list detail', () => {
boardsStore.detail.list = 'not a list';
const dummyValue = 'new list';
boardsStore.setListDetail(dummyValue);
expect(boardsStore.detail.list).toEqual(dummyValue);
});
});
describe('clearDetailIssue', () => { describe('clearDetailIssue', () => {
it('resets issue details', () => { it('resets issue details', () => {
boardsStore.detail.issue = 'something'; boardsStore.detail.issue = 'something';
......
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