Skip to content

refactor: move shared computing unit types and services to frontend/src/app/common#4358

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

refactor: move shared computing unit types and services to frontend/src/app/common#4358
gracecluvohio wants to merge 9 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.

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.

I suggest we revert this change. This PR should ONLY move folders from one place to another

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.

@bobbai00 Do you think it's a good idea to make another PR to rename the directory so that its name is more consistent with how it's used? And maybe also the components? I think the term "workflow" is outdated and a bit misleading now.

@gracecluvohio
Copy link
Copy Markdown
Contributor Author

@bobbai00 When you have the chance could you take a look at this PR? Also could you try merging main into this PR again? Seems like pytest failed but I think it may just be a one-time thing.

@bobbai00 bobbai00 changed the title refactor: move shared computing unit types and services refactor: move shared computing unit types and services to frontend/src/app/common Apr 13, 2026
Copy link
Copy Markdown
Contributor

@bobbai00 bobbai00 left a comment

Choose a reason for hiding this comment

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

Please revert the renaming change. Other parts LGTM

@gracecluvohio gracecluvohio requested a review from bobbai00 April 14, 2026 00:27
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

4 participants