-
Notifications
You must be signed in to change notification settings - Fork 335
Resolve references descendants for subclasses #377
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
Resolve references descendants for subclasses #377
Conversation
=> Case 1: Only References => Case 2: Only Descendants => (Maybe) Case 3: Both of them
=> Empty list as a result
=> Not working => But still needed
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
@THCoulon Thanks for opening the PR, are you still waiting for confirmation on the CLA? |
@googlebot I signed it! |
Yep it's been signed today. |
@THCoulon Thanks! Can you please fix up the checkstyle errors before we start reviewing this? |
Finally ! I had some really big problems to use your coding style within Intellij. I hope everything's okay |
|
@meltsufin Thanks you for your time and patience !
Just to be sure: I imported this configuration https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml seen from https://github.com/GoogleCloudPlatform/spring-cloud-gcp/blob/main/CONTRIBUTING.md. And then imported this configuration on top of the previous one https://github.com/GoogleCloudPlatform/spring-cloud-gcp/blob/main/src/eclipse/eclipse-code-formatter.xml. Then I had to tweak a lot of parameters from the code styling configuration to make it compatible with your checkstyle plugin. Did I do something wrong ? But yeah I'll revert back to the previous commit and do the checking again and ensure that it doesn't modify your code. I totally understand that reviewing DatastoreTemplate in this state is a nightmare 💩.
As we discussed in my issue. DatastoreTemplate is failing, Do you want me to modify the unit tests ? I was afraid to modify them because of misunderstanding the logic. |
This reverts commit 2cf1ee0
@THCoulon Apologies for the difficulty using the checkstyle formatter. We inherited that from when this project rolled up under the Spring Cloud organization and I, too, frequently run into issues with it. It's currently an important-but-not-urgent for us to roll that back and apply our own, preferably automated, way to ensure the code is formatted (sort of like |
…te give you back the true discriminated entity
Something is still wrong ? I managed to fix everything. Yet, the new functionality is not tested inside the unit package.
It's just taking more time to format by hand instead of just simply formatting the whole project. Anyway, Thank you for you concern. |
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.
@THCoulon I added some more polish commits. See if you're OK with those changes.
Otherwise, the PR looks good from my end.
Thanks for the hard work digging through the Spring Data Datastore code, which is not intuitive at all, and ultimately needs to be refactored.
SonarCloud Quality Gate failed. |
@meltsufin 100% Approved. To be honest I need these modifications . Now they are in good hands. |
…m#377) Fixes: GoogleCloudPlatform#356. Co-authored-by: Mike Eltsufin <[email protected]>
Bumps [libraries-bom](https://github.com/GoogleCloudPlatform/cloud-opensource-java) from 20.4.0 to 20.5.0. - [Release notes](https://github.com/GoogleCloudPlatform/cloud-opensource-java/releases) - [Changelog](https://github.com/GoogleCloudPlatform/cloud-opensource-java/blob/master/CHANGELOG.md) - [Commits](https://github.com/GoogleCloudPlatform/cloud-opensource-java/commits) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
I'm the same guy from the issue #356