Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cloudfoundry): move processes into their own services #5316

Merged
merged 14 commits into from
Mar 29, 2021
Merged

refactor(cloudfoundry): move processes into their own services #5316

merged 14 commits into from
Mar 29, 2021

Conversation

zachsmith1
Copy link
Contributor

This is a refactor to move processes and their operations into process specific classes for code cleanliness and readability. This also maps more closely with the cloud foundry api model. No new logic and no changes to existing logic.

@spinnakerbot
Copy link
Contributor

The following commits need their title changed:

Please format your commit title into the form:

<type>(<scope>): <subject>, e.g. fix(kubernetes): address NPE in status check

This allows us to easily generate changelogs & determine semantic version numbers when cutting releases. You can read more about commit conventions here.

Copy link
Contributor

@rvazquezglez rvazquezglez left a comment

Choose a reason for hiding this comment

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

LGTM


@GET("/v3/processes/{guid}/stats")
Call<ProcessResources> findProcessStatsById(@Path("guid") String guid);

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the plan to move other methods to different interfaces (like one interface for routes, one for packages, etc)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think as they get big enough it makes sense. Overall I think our nomenclature should be as similar to the cloud foundry api as possible. Another example, I renamed "scaleApplication" to "scaleProcess" since thats actually whats happening (v3/processes/:guid/actions/scale). That could cause confusion for someone looking at it for the first time if they don't have the context

@Override
public Logs getLogs() {
return logs;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice removal.

@german-muzquiz german-muzquiz added the ready to merge Approved and ready for a merge label Mar 29, 2021
@mergify mergify bot added the auto merged Merged automatically by a bot label Mar 29, 2021
@mergify mergify bot merged commit 65e5e52 into spinnaker:master Mar 29, 2021
@zachsmith1 zachsmith1 deleted the feat/refactorprocesses branch March 29, 2021 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.26
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants