-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix issue #278: add compliancemode parameter in JDBC URL if absent #298
Conversation
Hey @maximevw, It seems the unit tests you added on this PR are failing because it cannot find CassandraDatabaseConnection. See below:
Same for the other scenario. Would you mind having a look? Thanks, |
Hello @MalloD12, Running the command
But, I found these differences: On GitHub - test step:
In my local environment and on GitHub - build and package step:
The differences in the number of compiled files come from the files added by this PR. So, I don't really understand why the Do you prefer I skip the added test for now? Or there is something in particular to do when adding new tests in this project? |
@filipelautert @sayaliM0412: I know that discrepancy with the compiled (GH vs Local) files Maxime is showing us could be for different reasons, but is there anything you guys can suggest to try? @maximevw: I will generally recommend moving forward with a PR by adding some unit tests as you already provided. Thanks, |
Additional question: is there a reason to re-build the main branch before running tests in the steps "Test - Java xx" instead of just running tests with the classes copied to the target folder from the step "Build & package" (containing the missing class only present in the branch to merge)? |
can anyone please help to connect aws keypace and creeate table using liquibase in springbooot project |
Hello @shubha11m, Also please create separate issues in case of questions. This will avoid polluting unrelated topics like here. 🙏🏻 |
Hi @maximevw, I just want to let you know the team has found a build issue in one of our workflow configurations. We have created an internal ticket for that. I'll leave this PR on hold until that issue is fixed so then we can see a clean build run on this PR. Thanks, |
@MalloD12 thank you for the feedback. |
Nice, good finding @maximevw! |
Quality Gate passedIssues Measures |
@MalloD12 Good news! The build is fixed and all the tests pass now 🙂 |
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.
Approved.
Thank you @maximevw!
|
||
@Override | ||
public int getPriority() { | ||
return 201; |
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.
Usually we do CONSTANT + increment, but we can fix it later.
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.
Thanks for the recommandation @filipelautert: I didn't know how was fixed this value, so I took a value for which I was almost sure the CassandraDatabaseConnection
will be used. I can fix that in a separate PR, as you suggested; do you have an example of the good way to do that?
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.
@maximevw at liquibase-core we have PRIORITY_DATABASE + 5, like in https://github.com/liquibase/liquibase/blob/53db8b6d12a9db371bbcd620f99aca954d3bbbfd/liquibase-standard/src/main/java/liquibase/database/core/EnterpriseDBDatabase.java#L46 . But could be +200, no problems!
This closes #278
This adds a
CassandraDatabaseConnection
implementation forDatabaseConnection
interface, extendingJdbcConnection
. In this implementation, the compliance mode parameterLiquibase
is added to the JDBC URL if necessary when the used JDBC driver iscom.ing.data.cassandra.jdbc.CassandraDriver
.