Skip to content

Commit 0bc38ec

Browse files
fix: file path and assessment status fix for apex
1 parent 24b18d7 commit 0bc38ec

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

src/commands/omnistudio/migration/migrate.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,6 @@ export default class Migrate extends OmniStudioBaseCommand {
166166
objectMigrationResults = await this.migrateObjects(migrationObjects, debugTimer);
167167
}
168168

169-
// Stop the debug timer
170-
const timer = DebugTimer.getInstance().stop();
171-
172169
const omnistudioRelatedObjectsMigration = new OmnistudioRelatedObjectMigrationFacade(
173170
namespace,
174171
migrateOnly,
@@ -195,9 +192,6 @@ export default class Migrate extends OmniStudioBaseCommand {
195192
actionItems
196193
);
197194

198-
// save timer to debug logger
199-
Logger.logVerbose(timer.toString());
200-
201195
// Return results needed for --json flag
202196
return { objectMigrationResults };
203197
}

src/templates/assessmentReport.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@
185185
<c:if exp={Array.isArray($cell.title)}>
186186
<ul>
187187
<c:for items=(cell.title) var="value">
188-
<li><a href="(cell.uri)">{{value}}</a></li>
188+
<li><a href="(cell.uri)" target="_blank">{{value}}</a></li>
189189
</c:for>
190190
</ul>
191191
</c:if>
192192
<c:if exp={!Array.isArray($cell.title)}>
193-
<a href="(cell.uri)">{{cell.title}}</a>
193+
<a href="(cell.uri)" target="_blank">{{cell.title}}</a>
194194
</c:if>
195195
</td>
196196
</c:if>

src/utils/resultsbuilder/ApexAssessmentReporter.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,27 @@ export class ApexAssessmentReporter {
5555
rowId: `${this.rowIdPrefix}${this.rowId++}`,
5656
data: [
5757
createRowDataParam('name', apexAssessmentInfo.name, true, 1, 1, false),
58-
createRowDataParam('fileReference', apexAssessmentInfo.path, false, 1, 1, false),
58+
createRowDataParam(
59+
'fileReference',
60+
apexAssessmentInfo.name,
61+
false,
62+
1,
63+
1,
64+
true,
65+
apexAssessmentInfo.path,
66+
apexAssessmentInfo.name + '.cls'
67+
),
68+
createRowDataParam(
69+
'status',
70+
apexAssessmentInfo.warnings.length > 0 ? 'Has Warnings' : 'Can be Automated',
71+
false,
72+
1,
73+
1,
74+
false,
75+
undefined,
76+
undefined,
77+
apexAssessmentInfo.warnings.length > 0 ? 'text-error' : 'text-success'
78+
),
5979
createRowDataParam(
6080
'diff',
6181
apexAssessmentInfo.name + 'diff',
@@ -119,6 +139,11 @@ export class ApexAssessmentReporter {
119139
colspan: 1,
120140
rowspan: 1,
121141
},
142+
{
143+
name: 'Assessment Status',
144+
colspan: 1,
145+
rowspan: 2,
146+
},
122147
{
123148
name: 'Diff',
124149
colspan: 1,

0 commit comments

Comments
 (0)