Skip to content

Commit 46522c5

Browse files
committed
chore: add generated template logs
1 parent d81fd79 commit 46522c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ workflows:
8383
branches:
8484
only:
8585
- dev
86+
- fix/template
8687

8788
- "build-qa":
8889
context: org-global

src/common/phase-helper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ChallengePhaseHelper {
2525
throw new errors.BadRequestError(`Invalid timeline template ID: ${timelineTemplateId}`);
2626
}
2727
const { timelineTempate } = await this.getTemplateAndTemplateMap(timelineTemplateId);
28+
console.log("Selected timeline template", JSON.stringify(timelineTempate));
2829
const { phaseDefinitionMap } = await this.getPhaseDefinitionsAndMap();
2930
let fixedStartDate = undefined;
3031
const finalPhases = _.map(timelineTempate, (phaseFromTemplate) => {
@@ -204,14 +205,15 @@ class ChallengePhaseHelper {
204205
async getTemplateAndTemplateMap(timelineTemplateId) {
205206
if (_.isEmpty(this.timelineTemplateMap)) {
206207
const records = await timelineTemplateService.getTimelineTemplate(timelineTemplateId);
207-
208+
console.log("Returned timeline templates", JSON.stringify(records));
208209
const map = new Map();
209210
_.each(records.phases, (r) => {
210211
map.set(r.phaseId, r);
211212
});
212213

213214
this.timelineTemplateMap = { timelineTempate: records.phases, timelineTemplateMap: map };
214215
}
216+
215217
return this.timelineTemplateMap;
216218
}
217219
}

0 commit comments

Comments
 (0)