Skip to content

Conversation

Avneesh-Dubey
Copy link
Contributor

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

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@Avneesh-Dubey Avneesh-Dubey requested a review from rlsanders4 May 21, 2025 20:00
@Avneesh-Dubey Avneesh-Dubey self-assigned this May 21, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite May 21, 2025
@Avneesh-Dubey Avneesh-Dubey marked this pull request as draft May 21, 2025 20:01
@rlsanders4 rlsanders4 added the bug Something isn't working label May 21, 2025
@Avneesh-Dubey Avneesh-Dubey requested a review from cjobinabo May 23, 2025 20:01
Copy link
Contributor

@rlsanders4 rlsanders4 left a 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.

@Avneesh-Dubey Avneesh-Dubey marked this pull request as ready for review May 27, 2025 19:02
Copy link
Contributor

@rlsanders4 rlsanders4 left a 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.

@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite May 28, 2025
@timtebeek
Copy link
Member

Thanks all! Looks like this indeed would solve

We'll get this reviewed and merged.

@timtebeek timtebeek changed the title Insert <shared-cache-mode> before <properties> to ensure correct schema order Insert <shared-cache-mode> before <properties> to ensure correct schema order May 31, 2025
Copy link
Member

@timtebeek timtebeek left a 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!

@timtebeek timtebeek merged commit e1aacac into openrewrite:main May 31, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Application does not deploy on Payara 6 / EclipseLink after EE10 migration due to error in persistence.xml

3 participants