-
Notifications
You must be signed in to change notification settings - Fork 54
fix: support uppercase attribute names introspection #173
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #173 +/- ##
============================================
+ Coverage 68.83% 70.94% +2.11%
- Complexity 516 874 +358
============================================
Files 33 51 +18
Lines 2663 3848 +1185
Branches 436 661 +225
============================================
+ Hits 1833 2730 +897
- Misses 664 839 +175
- Partials 166 279 +113
Continue to review full report at Codecov.
|
@pierrefoyard Please, check the fix. Feel free to add your unit tests.. |
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.
great!
many thanks for this quick fix!
@anotender @SinaiNIN I had refactored Give it a spin and let me know if there are any problems. |
* fix: add test case for private getter * fix: polish test
f9f4581
to
da0d06b
Compare
@igdianov I've checked new changes against the model in our app but the issue with protected getter and field present in the metamodel still exists unfortunately. We use |
@anotender I have added introspection support for protected getter methods (d88953c). Let me know if it works for you. |
@anotender I have replaced Java's built-in bean introspection with custom implementation (10de6d6) that can be customized to scan non public properties. I did not want to go that route, but I see no other choice because I don't want to bring any external dependencies. Your test case (7fd94dd) now passes. Let me know if there is anything else we need to cover. I will also need to cover tests for custom introspection implementation. It may be good in the long run to be able to add support for complex types in GraphQL mapping. |
@igdianov many thanks! I've checked with our entity model and it looks like it works as it should for us. You're right about the test coverage of the code introduced so we need to add tests for it in the near future. |
41bae6c
to
f2790c4
Compare
Fixes #172
Fixes #174