Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Firestore nested properties #2300

Merged
merged 4 commits into from
Apr 2, 2020
Merged

Firestore nested properties #2300

merged 4 commits into from
Apr 2, 2020

Conversation

dmitry-s
Copy link
Contributor

@dmitry-s dmitry-s commented Apr 1, 2020

fixes #2198

@codecov
Copy link

codecov bot commented Apr 1, 2020

Codecov Report

Merging #2300 into master will decrease coverage by 8.27%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2300      +/-   ##
============================================
- Coverage     80.95%   72.68%   -8.28%     
+ Complexity     2309     2063     -246     
============================================
  Files           258      258              
  Lines          7456     7464       +8     
  Branches        762      763       +1     
============================================
- Hits           6036     5425     -611     
- Misses         1100     1689     +589     
- Partials        320      350      +30     
Flag Coverage Δ Complexity Δ
#integration ? ?
#unittests 72.68% <100.00%> (+<0.01%) 2063.00 <4.00> (+4.00)
Impacted Files Coverage Δ Complexity Δ
...store/mapping/FirestorePersistentPropertyImpl.java 83.33% <100.00%> (+8.33%) 5.00 <2.00> (+2.00)
...store/repository/query/PartTreeFirestoreQuery.java 90.36% <100.00%> (-7.05%) 21.00 <2.00> (ø)
...a/spanner/repository/query/SpannerQueryMethod.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-6.00%)
...figure/config/GcpConfigBootstrapConfiguration.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...restore/repository/query/FirestoreQueryMethod.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...epository/config/SpannerRepositoriesRegistrar.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
...retmanager/SecretManagerPropertySourceLocator.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
...pository/support/FirestoreQueryLookupStrategy.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-2.00%)
...ository/config/DatastoreRepositoriesRegistrar.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
...ository/config/FirestoreRepositoriesRegistrar.java 0.00% <0.00%> (-100.00%) 0.00% <0.00%> (-3.00%)
... and 58 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40284d3...54a0b17. Read the comment docs.

Copy link
Contributor

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

From in person review.

@@ -140,6 +140,9 @@ Spring Data generates a working implementation of the specified interface, which

The `User` type parameter to `FirestoreReactiveRepository` refers to the underlying domain type.

NOTE: `_` character can be used to refer to embedded properties.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -170,6 +172,19 @@ public Object execute(Object[] parameters) {
return builder;
}

private String getName(Part part) {
Iterator<PropertyPath> iterator = part.getProperty().iterator();
Iterable<PropertyPath> iterable = () -> iterator;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combine these two lines into one?

Copy link
Contributor

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

From in person review.

@dmitry-s dmitry-s requested a review from meltsufin April 2, 2020 21:04
@sonarcloud
Copy link

sonarcloud bot commented Apr 2, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

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

lgtm

@dmitry-s dmitry-s merged commit bab3f9c into master Apr 2, 2020
@dmitry-s dmitry-s deleted the firestore-nested-properties branch April 2, 2020 22:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Firestore Data reactive support for query method naming for nested properties
2 participants