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

Read in additional sorts from query properties #20

Merged
merged 1 commit into from
May 28, 2020
Merged

Read in additional sorts from query properties #20

merged 1 commit into from
May 28, 2020

Conversation

samuelechu
Copy link
Contributor

No description provided.

@@ -379,6 +396,9 @@ private Object query(Map<String, Object> params) {
}

Map<String, Serializable> properties = new HashMap<>();
if (params.containsKey("properties")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this key just not being used before?

Copy link
Contributor Author

@samuelechu samuelechu May 28, 2020

Choose a reason for hiding this comment

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

Yes, it is always passed empty when constructing the queryRequest sent to the catalogFramework query method https://github.com/connexta/ddf-jsonrpc/blob/master/src/main/java/com/connexta/ddf/catalog/direct/CatalogMethods.java#L384-L409

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
^ Here is an example queryRequest to the catalogFramework not using the rpc

I think we will have to update the getProperties method to also read in other properties as well https://github.com/connexta/ddf-jsonrpc/pull/20/files#diff-4b8f31c7553886d543ac3f68641f3f4eR296

@samuelechu samuelechu merged commit 0531472 into master May 28, 2020
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.

3 participants