From 48e507e0128f776b92fdfd62904b455c2312c51d Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Thu, 15 Nov 2018 10:14:18 +0530 Subject: [PATCH] fix(board): Rename system.boardcolumns to boardcolumns (#2803) * fix(board): Rename system.boardcolumns to boardcolumns * Change boardColumns to boardcolumns --- src/app/models/work-item.spec.ts | 4 ++-- src/app/models/work-item.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/models/work-item.spec.ts b/src/app/models/work-item.spec.ts index f3d13ac19..4327dc660 100644 --- a/src/app/models/work-item.spec.ts +++ b/src/app/models/work-item.spec.ts @@ -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', @@ -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' diff --git a/src/app/models/work-item.ts b/src/app/models/work-item.ts index 30fa0e636..4e363ecbd 100644 --- a/src/app/models/work-item.ts +++ b/src/app/models/work-item.ts @@ -304,7 +304,7 @@ export class WorkItemMapper implements Mapper { 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; @@ -414,7 +414,7 @@ export class WorkItemMapper implements Mapper { ); }.bind(this) }, { - toPath: ['relationships', 'system.boardcolumns', 'data'], + toPath: ['relationships', 'boardcolumns', 'data'], fromPath: ['columnIds'], toFunction: (data) => { if (!data) {return null; }