-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update the Poetry Core version in the Habushu project to the required version #65
Conversation
297386d
to
1ed06be
Compare
isMajorVersionUpdateRequired = false; | ||
isMinorVersionUpdateRequired = false; | ||
// check if we need to upgrade the poetry-core version. | ||
if(IsPoetrycoreUpgradeRequired(dependency)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A: Minor, the if statement is unnecessary.
return IsPoetrycoreUpgradeRequired(dependency)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are looping through the dependency map and iterate through all the elements to see if we any of it requires the upgrade. We need the if statement here incase any one of them requires upgrade.
.../src/main/java/org/technologybrewery/habushu/migration/CustomPoetrycoreVersionMigration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just minor comments. Thanks for utilizing good practices like clear variable naming, properly defined constants, and clear test steps.
I'd get a second opinion since I'm pretty new to Habushu's codebase however.
.../src/main/java/org/technologybrewery/habushu/migration/CustomPoetrycoreVersionMigration.java
Show resolved
Hide resolved
.../src/main/java/org/technologybrewery/habushu/migration/CustomPoetrycoreVersionMigration.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/technologybrewery/habushu/migration/CustomPoetrycoreVersionMigration.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/technologybrewery/habushu/migration/CustomPoetrycoreVersionMigration.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/technologybrewery/habushu/migration/CustomPoetrycoreVersionMigration.java
Outdated
Show resolved
Hide resolved
habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/util/PoetryUtil.java
Outdated
Show resolved
Hide resolved
1ed06be
to
248a384
Compare
248a384
to
d5ef6b1
Compare
d5ef6b1
to
433ad94
Compare
AIOPS-2767 Added functionality to upgrade the poetry-core version required by the Habushu