Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(board): Rename system.boardcolumns to boardcolumns (#2803)
Browse files Browse the repository at this point in the history
* fix(board): Rename system.boardcolumns to boardcolumns

* Change boardColumns to boardcolumns
  • Loading branch information
jarifibrahim authored and joshuawilson committed Nov 15, 2018
1 parent fbac3a6 commit 48e507e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/models/work-item.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe('WorkItemMapper', () => {
});

it('should correctly convert to UI model - 2', () => {
const expWIService = {
const expWIService = {
'attributes': {
'system.created_at': '2017-06-28T07:44:36.640764Z',
'system.description': 'Cannot resolve Area/Iteration info for new WI created in in-memory mode under Backlog > Quick Add',
Expand Down Expand Up @@ -239,7 +239,7 @@ describe('WorkItemMapper', () => {
'labels': {
'data': []
},
'system.boardColumns': {},
'boardcolumns': {},
'workItemLinks': {
'links': {
'related': 'https://api.openshift.io/api/workitems/8bccc228-bba7-43ad-b077-15fbb9148f7f/links'
Expand Down
4 changes: 2 additions & 2 deletions src/app/models/work-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class WorkItemMapper implements Mapper<WorkItemService, WorkItemUI> {
toPath: ['editable'],
toValue: false
}, {
fromPath: ['relationships', 'system.boardcolumns', 'data'],
fromPath: ['relationships', 'boardcolumns', 'data'],
toPath: ['columnIds'],
toFunction: (data) => {
return Array.isArray(data) ? data.map(col => col.id) : null;
Expand Down Expand Up @@ -414,7 +414,7 @@ export class WorkItemMapper implements Mapper<WorkItemService, WorkItemUI> {
);
}.bind(this)
}, {
toPath: ['relationships', 'system.boardcolumns', 'data'],
toPath: ['relationships', 'boardcolumns', 'data'],
fromPath: ['columnIds'],
toFunction: (data) => {
if (!data) {return null; }
Expand Down

0 comments on commit 48e507e

Please sign in to comment.