Skip to content
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

Implement AFTER and GREATER_THAN keyword #144 #164

Merged
merged 5 commits into from
Aug 20, 2018
Merged

Implement AFTER and GREATER_THAN keyword #144 #164

merged 5 commits into from
Aug 20, 2018

Conversation

miaosakurai
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Aug 16, 2018

Codecov Report

Merging #164 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #164      +/-   ##
=========================================
+ Coverage   78.61%   78.7%   +0.09%     
=========================================
  Files          38      38              
  Lines         921     925       +4     
  Branches      130     130              
=========================================
+ Hits          724     728       +4     
  Misses        134     134              
  Partials       63      63
Impacted Files Coverage Δ
...osmosdb/core/generator/AbstractQueryGenerator.java 88.23% <ø> (ø) ⬆️
.../spring/data/cosmosdb/core/query/CriteriaType.java 70.96% <100%> (+4.3%) ⬆️

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 1d75aa5...c98f634. Read the comment docs.

Copy link
Contributor

@Incarnation-p-lee Incarnation-p-lee left a comment

Choose a reason for hiding this comment

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

More Integration test is required for both After and Greater_than, including boundary data.

Assert.isTrue(criteria.getSubjectValues().size() == 1,
"GREATER_THAN should have only one subject value");

parameters.add(Pair.with(subject, criteria.getSubjectValues().get(0)));
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not very sure if it works well when date, as we will convert date type to getTime(), before store in database. like this "date": 946656000000,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now it can store in database like "date": 946656000000.

# Conflicts:
#	src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/generator/AbstractQueryGenerator.java
#	src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/Criteria.java
#	src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaType.java
#	src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/integration/MemoRepositoryIT.java
#	src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/MemoRepository.java
# Conflicts:
#	src/main/java/com/microsoft/azure/spring/data/cosmosdb/Constants.java
#	src/main/java/com/microsoft/azure/spring/data/cosmosdb/core/query/CriteriaType.java
#	src/test/java/com/microsoft/azure/spring/data/cosmosdb/repository/repository/ProjectRepository.java
@miaosakurai miaosakurai merged commit 8b08168 into master Aug 20, 2018
@miaosakurai miaosakurai deleted the after branch August 20, 2018 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants