Commit c20a491e authored by Eric Eastwood's avatar Eric Eastwood

Fix Vue warnings about string idKey in related issues

```
[Vue warn]: Invalid prop: type check failed for prop "idKey". Expected
Number, got String.
```

We now fail on Vue warnings,
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12163/
parent 3b79df47
...@@ -3,7 +3,7 @@ import eventHub from '~/issuable/related_issues/event_hub'; ...@@ -3,7 +3,7 @@ import eventHub from '~/issuable/related_issues/event_hub';
import addIssuableForm from '~/issuable/related_issues/components/add_issuable_form.vue'; import addIssuableForm from '~/issuable/related_issues/components/add_issuable_form.vue';
const issuable1 = { const issuable1 = {
id: '200', id: 200,
reference: 'foo/bar#123', reference: 'foo/bar#123',
displayReference: '#123', displayReference: '#123',
title: 'some title', title: 'some title',
...@@ -12,7 +12,7 @@ const issuable1 = { ...@@ -12,7 +12,7 @@ const issuable1 = {
}; };
const issuable2 = { const issuable2 = {
id: '201', id: 201,
reference: 'foo/bar#124', reference: 'foo/bar#124',
displayReference: '#124', displayReference: '#124',
title: 'some other thing', title: 'some other thing',
......
...@@ -3,7 +3,7 @@ import eventHub from '~/issuable/related_issues/event_hub'; ...@@ -3,7 +3,7 @@ import eventHub from '~/issuable/related_issues/event_hub';
import relatedIssuesBlock from '~/issuable/related_issues/components/related_issues_block.vue'; import relatedIssuesBlock from '~/issuable/related_issues/components/related_issues_block.vue';
const issuable1 = { const issuable1 = {
id: '200', id: 200,
reference: 'foo/bar#123', reference: 'foo/bar#123',
displayReference: '#123', displayReference: '#123',
title: 'some title', title: 'some title',
...@@ -12,7 +12,7 @@ const issuable1 = { ...@@ -12,7 +12,7 @@ const issuable1 = {
}; };
const issuable2 = { const issuable2 = {
id: '201', id: 201,
reference: 'foo/bar#124', reference: 'foo/bar#124',
displayReference: '#124', displayReference: '#124',
title: 'some other thing', title: 'some other thing',
......
...@@ -8,7 +8,7 @@ const defaultProps = { ...@@ -8,7 +8,7 @@ const defaultProps = {
}; };
const issuable1 = { const issuable1 = {
id: '200', id: 200,
reference: 'foo/bar#123', reference: 'foo/bar#123',
title: 'issue1', title: 'issue1',
path: '/foo/bar/issues/123', path: '/foo/bar/issues/123',
...@@ -17,7 +17,7 @@ const issuable1 = { ...@@ -17,7 +17,7 @@ const issuable1 = {
}; };
const issuable2 = { const issuable2 = {
id: '201', id: 201,
reference: 'foo/bar#124', reference: 'foo/bar#124',
title: 'issue1', title: 'issue1',
path: '/foo/bar/issues/124', path: '/foo/bar/issues/124',
......
...@@ -3,6 +3,7 @@ import Vue from 'vue'; ...@@ -3,6 +3,7 @@ import Vue from 'vue';
import RelatedIssuesService from '~/issuable/related_issues/services/related_issues_service'; import RelatedIssuesService from '~/issuable/related_issues/services/related_issues_service';
const issuable1 = { const issuable1 = {
id: 200,
reference: 'foo/bar#123', reference: 'foo/bar#123',
title: 'some title', title: 'some title',
path: '/foo/bar/issues/123', path: '/foo/bar/issues/123',
......
import RelatedIssuesStore from '~/issuable/related_issues/stores/related_issues_store'; import RelatedIssuesStore from '~/issuable/related_issues/stores/related_issues_store';
const issuable1 = { const issuable1 = {
id: '200', id: 200,
reference: 'foo/bar#123', reference: 'foo/bar#123',
title: 'issue1', title: 'issue1',
path: '/foo/bar/issues/123', path: '/foo/bar/issues/123',
...@@ -10,7 +10,7 @@ const issuable1 = { ...@@ -10,7 +10,7 @@ const issuable1 = {
}; };
const issuable2 = { const issuable2 = {
id: '201', id: 201,
reference: 'foo/bar#124', reference: 'foo/bar#124',
title: 'issue1', title: 'issue1',
path: '/foo/bar/issues/124', path: '/foo/bar/issues/124',
......
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