-
Notifications
You must be signed in to change notification settings - Fork 101
Insert <shared-cache-mode>
before <properties>
to ensure correct schema order
#737
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
Insert <shared-cache-mode>
before <properties>
to ensure correct schema order
#737
Conversation
src/main/java/org/openrewrite/java/migrate/JpaCacheProperties.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/java/migrate/JpaCacheProperties.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.
The changes are looking good Avneesh. I just have a few small comments.
src/main/java/org/openrewrite/java/migrate/JpaCacheProperties.java
Outdated
Show resolved
Hide resolved
src/test/java/org/openrewrite/java/migrate/JpaCachePropertiesTest.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. It would be good to also get a review from the rewrite team before merging.
Thanks all! Looks like this indeed would solve We'll get this reviewed and merged. |
<shared-cache-mode>
before <properties>
to ensure correct schema order
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 both! I've swapped in ListUtils.insertInOrder
for a more expressive fix here, as compared to the list wrangling that was there before. Great to see this fixed!
What's changed?
Added logic to insert <shared-cache-mode> before <properties> and added the test case for it.
Anything in particular you'd like reviewers to focus on?
After making the changes to recipe the tests were not passing as they were not taking accepting comments, all the tests start to pass once I removed the comments in the test cases therefore I would like a review on it.
Checklist