Skip to content

Conversation

mukundansundar
Copy link
Contributor

@mukundansundar mukundansundar commented Feb 28, 2022

Signed-off-by: Mukundan Sundararajan [email protected]

Description

changes made for query state API.

The dependency updates are needed for Java SDK to successfully compile using Rosetta.

Have used MongoDb for querying stored state.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #653
closes #685
closes #702

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@mukundansundar mukundansundar force-pushed the query_state_api branch 2 times, most recently from bf938df to 4ba1945 Compare February 28, 2022 13:57
Signed-off-by: Mukundan Sundararajan <[email protected]>
Comment on lines +201 to +204
String[] methodSegments = method.split("/");

List<String> pathSegments = new ArrayList<>(Arrays.asList(DaprHttp.API_VERSION, "invoke", appId, "method"));
pathSegments.addAll(Arrays.asList(methodSegments));
Copy link
Contributor Author

@mukundansundar mukundansundar Mar 14, 2022

Choose a reason for hiding this comment

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

@artursouza This change is because of the change dapr/dapr#4008

The PubsubIT was failing because the method name was messages/ttlTopic which was encoded as messages%2FttlTopic which worked before the previous change was made.

Let me know if we can do it in a different way. Related to #702

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

@mukundansundar mukundansundar marked this pull request as ready for review March 14, 2022 09:52
@mukundansundar mukundansundar requested review from a team as code owners March 14, 2022 09:52
Signed-off-by: Mukundan Sundararajan <[email protected]>
@mukundansundar mukundansundar mentioned this pull request Mar 15, 2022
3 tasks
Copy link
Contributor Author

@mukundansundar mukundansundar left a comment

Choose a reason for hiding this comment

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

@artursouza Is there any concern on updating the protobuf and protoc versions to these values ?

Copy link
Contributor

@artursouza artursouza left a comment

Choose a reason for hiding this comment

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

I will look into the expression building next. This is an awesome PR! Thanks.

Comment on lines +201 to +204
String[] methodSegments = method.split("/");

List<String> pathSegments = new ArrayList<>(Arrays.asList(DaprHttp.API_VERSION, "invoke", appId, "method"));
pathSegments.addAll(Arrays.asList(methodSegments));
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

@mukundansundar
Copy link
Contributor Author

mukundansundar commented Mar 17, 2022

Numeric value is not returned properly from MongoDB

Based on that using ID as string for now. Will later change to Integer once the above issue is fixed.

@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #697 (499949d) into master (e3fa24f) will decrease coverage by 1.16%.
The diff coverage is 71.77%.

❗ Current head 499949d differs from pull request most recent head 8138a7e. Consider uploading reports for the commit 8138a7e to get more accurate results

@@             Coverage Diff              @@
##             master     #697      +/-   ##
============================================
- Coverage     80.72%   79.56%   -1.17%     
- Complexity      993     1092      +99     
============================================
  Files            81       92      +11     
  Lines          3020     3298     +278     
  Branches        340      376      +36     
============================================
+ Hits           2438     2624     +186     
- Misses          416      482      +66     
- Partials        166      192      +26     
Impacted Files Coverage Δ
.../src/main/java/io/dapr/client/DaprClientProxy.java 75.86% <ø> (ø)
sdk/src/main/java/io/dapr/client/DaprHttp.java 92.24% <ø> (ø)
.../io/dapr/client/domain/query/filters/InFilter.java 31.57% <31.57%> (ø)
...ain/java/io/dapr/client/domain/QueryStateItem.java 40.00% <40.00%> (ø)
...c/main/java/io/dapr/client/AbstractDaprClient.java 88.17% <50.00%> (-4.60%) ⬇️
.../io/dapr/client/domain/query/filters/EqFilter.java 50.00% <50.00%> (ø)
...java/io/dapr/client/domain/QueryStateResponse.java 66.66% <66.66%> (ø)
...va/io/dapr/client/domain/query/filters/Filter.java 71.42% <71.42%> (ø)
.../io/dapr/client/domain/query/filters/OrFilter.java 76.47% <76.47%> (ø)
...k/src/main/java/io/dapr/client/DaprClientHttp.java 87.71% <76.74%> (-4.24%) ⬇️
... and 8 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 e3fa24f...8138a7e. Read the comment docs.

@artursouza artursouza merged commit 06d92da into dapr:master Mar 21, 2022
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
fackee pushed a commit to fackee/java-sdk that referenced this pull request Mar 28, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: zjx244729 <[email protected]>
@mukundansundar mukundansundar deleted the query_state_api branch April 7, 2022 01:38
artursouza added a commit to pkedy/java-sdk that referenced this pull request Jun 22, 2022
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <[email protected]>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <[email protected]>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <[email protected]>

Co-authored-by: Artur Souza <[email protected]>
Signed-off-by: Artur Souza <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants