Skip to content

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

Merged
merged 15 commits into from
Mar 18, 2021
Merged

Resolve references descendants for subclasses #377

merged 15 commits into from
Mar 18, 2021

Conversation

THCoulon
Copy link
Contributor

I'm the same guy from the issue #356

  • I'm not an expert of this repository since I learned how to use it this week.
  • I let you guys handle the correctness of this merge

@google-cla
Copy link

google-cla bot commented Mar 12, 2021

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 @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@THCoulon
Copy link
Contributor Author

@googlebot I signed it!

@google-cla
Copy link

google-cla bot commented Mar 12, 2021

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 @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@THCoulon
Copy link
Contributor Author

  1. Forgot to re-enable the linter (<maven-checkstyle-plugin.skip>false</maven-checkstyle-plugin.skip>)
  2. The CLA need to be confirmed for my company

@meltsufin
Copy link
Member

@THCoulon Thanks for opening the PR, are you still waiting for confirmation on the CLA?

@THCoulon
Copy link
Contributor Author

@googlebot I signed it!

@THCoulon
Copy link
Contributor Author

Yep it's been signed today.

@meltsufin
Copy link
Member

@THCoulon Thanks! Can you please fix up the checkstyle errors before we start reviewing this?

@THCoulon
Copy link
Contributor Author

Finally ! I had some really big problems to use your coding style within Intellij.

I hope everything's okay

@meltsufin
Copy link
Member

DatastoreTemplateTests seem to be failing. Also, can you please undo any formatting changes to code that you didn't modify? It makes it hard to review with all of those additional deltas. Thanks!

@THCoulon
Copy link
Contributor Author

@meltsufin Thanks you for your time and patience !

Also, can you please undo any formatting changes to code that you didn't modify? It makes it hard to review with all of those additional deltas

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 💩.

DatastoreTemplateTests seem to be failing

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.

@ttomsu
Copy link

ttomsu commented Mar 17, 2021

@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 gofmt if you've ever used that tool).

@THCoulon
Copy link
Contributor Author

THCoulon commented Mar 17, 2021

Something is still wrong ?

I managed to fix everything. Yet, the new functionality is not tested inside the unit package.

Apologies for the difficulty using the checkstyle formatter

It's just taking more time to format by hand instead of just simply formatting the whole project. Anyway, Thank you for you concern.

Copy link
Member

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

@sonarqubecloud
Copy link

@THCoulon
Copy link
Contributor Author

@meltsufin 100% Approved.

To be honest I need these modifications . Now they are in good hands.

@meltsufin meltsufin merged commit cc4a44e into GoogleCloudPlatform:main Mar 18, 2021
@THCoulon THCoulon deleted the resolve-references-descendants-for-subclasses branch March 19, 2021 08:23
kateryna216 added a commit to kateryna216/spring-cloud-gcp that referenced this pull request Oct 20, 2022
prash-mi pushed a commit that referenced this pull request Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants