Skip to content

refactor: move shared computing unit types and services#4358

Open
gracecluvohio wants to merge 6 commits intoapache:mainfrom
gracecluvohio:reorganize-computing-unit-services
Open

refactor: move shared computing unit types and services#4358
gracecluvohio wants to merge 6 commits intoapache:mainfrom
gracecluvohio:reorganize-computing-unit-services

Conversation

@gracecluvohio
Copy link
Copy Markdown
Contributor

@gracecluvohio gracecluvohio commented Apr 10, 2026

What changes were proposed in this PR?

(For readability, ... refers to frontend/src/app in the codebase.)

This PR moves shared computing unit types and services to .../common under frontend/src/app. Specifically:

Original location New location
.../dashboard/service/user/computing-unit-actions .../common/service/computing-unit/computing-unit-actions
.../workspace/service/workflow-computing-unit .../common/service/computing-unit/computing-unit-managing
.../workspace/service/computing-unit-status .../common/service/computing-unit/computing-unit-status
.../workspace/types/computing-unit-connection.interface.ts .../common/type/computing-unit-connection.interface.ts
.../workspace/types/workflow-computing-unit.ts .../common/type/workflow-computing-unit.ts

Any related issues, documentation, discussions?

Closes #4362

How was this PR tested?

Locally tested

Was this PR authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the frontend Changes related to the frontend GUI label Apr 10, 2026
@chenlica chenlica requested review from bobbai00 and kunwp1 April 11, 2026 00:00
@chenlica
Copy link
Copy Markdown
Contributor

@gracecluvohio Please fix the failed test cases.

@kunwp1 and @bobbai00 Please review it after that.

Copy link
Copy Markdown
Contributor

@kunwp1 kunwp1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! One minor comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.../workspace/service/workflow-computing-unit .../common/service/computing-unit/computing-unit-managing

Is there a reason you changed the folder name from workflow-computing-unit to computing-unit-managing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just because it's no longer just for workflow, it's also for dashboard. Should I change the name of the file and the component as well?

Copy link
Copy Markdown
Contributor

@kunwp1 kunwp1 Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait for @bobbai00's input as he is familiar with these codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move Shared Computing Unit Types and Services to Common Folder

3 participants