-
Notifications
You must be signed in to change notification settings - Fork 28
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
Feature/cdt 186 add endpoint for execute stored aql queries #384
Feature/cdt 186 add endpoint for execute stored aql queries #384
Conversation
…not included in the supported openEHR spec 1.0.0
public QueryResponseData executeStoredQuery( | ||
String qualifiedQueryName, | ||
String version, | ||
// Optional<UUID> ehrId, // TODO: ehr_id not available in openEHR 1.0.0 spec. Has to be included in | ||
// queryParameter | ||
Optional<Integer> offset, | ||
Optional<Integer> fetch, | ||
Optional<String> queryParameters) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to have a parameter object here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion. use a dto with builder Patten. then in the its clear what is required and what is optional . and the returns can then return optinal for the optional values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parameter object added
String version, | ||
// Optional<UUID> ehrId, // TODO: ehr_id not available in openEHR 1.0.0 spec. Has to be included in | ||
// queryParameter | ||
Optional<Integer> offset, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never use Optional as a parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -159,6 +159,24 @@ protected HttpResponse internalPost( | |||
return response; | |||
} | |||
|
|||
protected HttpResponse internalPut( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this in httpPut line 184
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend to use interalPut from httpPut because the method httpPut is using more header which are currently not needed for the stored query PUT
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done |
…stored_aql_queries
…stored_aql_queries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update changelog
Kudos, SonarCloud Quality Gate passed! |
added handling of stored AQL queries to the SDK