rez_core 2.2.87 → 2.2.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.87",
3
+ "version": "2.2.89",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -145,7 +145,7 @@ export class ActionDataRepository extends EntityServiceImpl {
145
145
 
146
146
  if (!currentAction) {
147
147
  // skip
148
- throw new BadRequestException('Current action not found');
148
+ return;
149
149
  }
150
150
 
151
151
  // Find the immediate previous action in the sequence
@@ -169,6 +169,7 @@ export class ActionDataRepository extends EntityServiceImpl {
169
169
  currentAction.is_current = null as any;
170
170
  currentAction.modified_date = new Date();
171
171
  currentAction.modified_by = organization_id;
172
+ currentAction.start_time = null as any;
172
173
  currentAction.resubmit_count = (currentAction.resubmit_count ?? 0) + 1;
173
174
 
174
175
  await this.actionDataRepo.update(currentAction.id, currentAction);
@@ -177,6 +178,8 @@ export class ActionDataRepository extends EntityServiceImpl {
177
178
  previousAction.is_current = 'Y';
178
179
  previousAction.modified_date = new Date();
179
180
  previousAction.modified_by = organization_id;
181
+ previousAction.end_time = null as any; // Reset end time
182
+ previousAction.is_done = false;
180
183
  await this.actionDataRepo.update(previousAction.id, previousAction);
181
184
 
182
185
  // reverse the status of tasks for the previous action
@@ -252,6 +252,11 @@ export class TaskService extends EntityServiceImpl {
252
252
  task.task_status = task.status
253
253
  ? statusMap.get(String(task.status)) || null
254
254
  : null;
255
+
256
+ task.action_name =
257
+ task.action_id === '0' || task.action_id === 0
258
+ ? 'Generic'
259
+ : task.action_name;
255
260
  }
256
261
 
257
262
  // Normalize is_mandatory to '0'/'1' as string