-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Add auto-configuration for Spring Data Envers #22610
Add auto-configuration for Spring Data Envers #22610
Conversation
I am not sure how to address testing properly in assertThat(context).getBean(CityRepository.class)
.extracting(AopProxyUtils::getSingletonTarget)
.isInstanceOf(EnversRevisionRepositoryImpl.class); // fails as it's a SimpleJpaRepository.class but it doesn't work as the bean is always a Otherwise, I could add a @schauder may I ask your input on this? |
c5120a2
to
bec4dac
Compare
...n/java/org/springframework/boot/autoconfigure/data/jpa/JpaRepositoriesAutoConfiguration.java
Show resolved
Hide resolved
...n/java/org/springframework/boot/autoconfigure/data/jpa/JpaRepositoriesAutoConfiguration.java
Show resolved
Hide resolved
bec4dac
to
b15a6cb
Compare
@wilkinsona sorry for the slow feedback, the PR should now be ready for review. I am wondering if some more test cases could be added, I will continue thinking about that. I see the build is failing but I guess not because of my changes. I will keep an eye on |
69a91ad
to
ad4987a
Compare
I finished to refactor the tests the way I had in mind and I don't plan to have any other change. Please let me know if there is something to be adjusted. (the build is failing but it doesn't seem related to my changes) |
7b4937a
to
7186fd8
Compare
Hi everyone, is there anything else I could do to move this one forward? |
@scordio thank you for your patience and sorry we didn't have the time to get back to you yet. We're busy handling the scheduled backlog for |
@snicoll thanks for the feedback and no problem, it was just a friendly reminder 🙂 |
7186fd8
to
eaa3981
Compare
Hi @snicoll, just wanted to check if this is blocked for any reason and if I can help with it. |
Hello @scordio thank you for your patience. I did review the proposal during the holidays and wanted to experiment how we could avoid having to subclass In retrospect, I should have written that down to get some feedback from the team. I've added that to my todo. |
I deleted my previous comment, I mixed up different things. Thanks for looking into it! |
Out of curiosity, what concerns do you have about subclassing? I had the assumption that Jpa is a prerequisite to use |
eaa3981
to
bc84a46
Compare
I have just discovered that there's no reference documentation for Spring Data Envers. Unfortunately we can't afford the support burden of an undocumented project so I'm marking this one as blocked. |
Got it, thanks for looking into it. I'll get in touch with the project to understand if they are willing to improve the docs and accept some help. |
Hello team, @schauder has taken care of the Spring Data Envers reference documentation (see spring-projects/spring-data-envers#279). Is that enough to unblock this PR? |
spring-projects/spring-data-envers#289 might influence this PR. |
bc84a46
to
19e634b
Compare
I updated the PR to use the composed annotation introduced with spring-projects/spring-data-envers#290. In case you have any suggestions on how to avoid the subclass, I'm happy to work in that direction. |
19e634b
to
a87fbd7
Compare
@scordio thank you for making your first contribution to Spring Boot. |
This adds the auto-configuration for Spring Data Envers.
Fixes #21370.