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

HAL-1824: add a confirmation check for replacing deployments #810

Merged
merged 2 commits into from Mar 24, 2023

Conversation

michpetrov
Copy link
Contributor

Issue: HAL-1824

@hpehl I tried to refactor the current columns since there's a lot of duplicate code, I will add a second commit with the actual checks. The props class isn't ideal but I couldn't think of a better solution.

Also, I'm not quite sure about the distinction between Content/Deployment/ServerGroupDeployment, i.e. atm Deployment extends Content even though Content has serverGroups which don't make sense for Deployment (it is only used in standalone), whereas ServerGroupDeployment has a lot of common methods with Content but does not extend it. I didn't want to mess with it more than I had to.

@michpetrov michpetrov marked this pull request as ready for review February 23, 2023 19:14
@michpetrov michpetrov requested a review from a team as a code owner February 23, 2023 19:14
@hpehl hpehl requested review from hpehl and removed request for a team March 9, 2023 05:52
@hpehl
Copy link
Member

hpehl commented Mar 9, 2023

Thanks, @michpetrov! I'll need some time until I can review the PR. I'm busy with other tasks.

@hpehl
Copy link
Member

hpehl commented Mar 24, 2023

The PR looks good to me. Thanks!
And yes, you're right: the deployment code probably needs refactoring! Especially the class hierarchy doesn't make sense in some cases.
I filed https://issues.redhat.com/browse/HAL-1846 to track this.

@hpehl hpehl merged commit e213c1d into hal:main Mar 24, 2023
@michpetrov michpetrov deleted the hal-1824 branch March 24, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants