bobbai00 commented on code in PR #9624:
URL: https://github.com/apache/texera/pull/9624#discussion_r4666095950
##########
frontend/src/app/dashboard/service/user/workflow-cover/workflow-cover.service.ts:
##########
@@ -22,7 +22,7 @@ import { Injectable } from "@angular/core";
import { Observable, firstValueFrom } from "rxjs";
import { AppSettings } from "../../../../common/app-setting";
-export const WORKFLOW_COVER_URL = "workflow";
+const WORKFLOW_COVER_URL = "workflow";
Review Comment:
**Advisory:**
This duplicates
[`WORKFLOW_BASE_URL`](https://github.com/apache/texera/blob/1991f8685c95e7dc2507d128c99d5cfb73434756/frontend/src/app/common/service/workflow-persist/workflow-persist.service.ts#L35),
which is also `"workflow"`. I'd delete it and use `WORKFLOW_BASE_URL` at lines
43 and 50, so the workflow API root is defined once. Its only importer
(`card-item.component.ts`) already loads the persist service, so the bundle is
unchanged.
##########
frontend/src/app/common/service/computing-unit/computing-unit-status/computing-unit-status.service.ts:
##########
@@ -330,7 +330,7 @@ export class ComputingUnitStatusService implements
OnDestroy {
this.refreshComputingUnitList();
Review Comment:
**Polish:**
The comment just above this call (line 329) says the refresh pipeline will
call `updateComputingUnits()`, which does not exist anywhere in the tree. The
pipeline's subscriber calls `setComputingUnitsState` ([line
177](https://github.com/apache/texera/blob/1991f8685c95e7dc2507d128c99d5cfb73434756/frontend/src/app/common/service/computing-unit/computing-unit-status/computing-unit-status.service.ts#L177)).
Worth correcting while this method is being edited.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]