-
Notifications
You must be signed in to change notification settings - Fork 13
Pack flag for /v2/observations #121
base: dev
Are you sure you want to change the base?
Conversation
- validation of queries in query controller - support for subscribed and subscriptionFreq Query parameters
- add query_diff table - add query_diff_entry table - update query table
Introduce new tables: - biomart_user.query_set - biomart_user.query_set_instances - biomart_user.query_set_diffs Use the new tables for storing user query related sets, instead of previously used i2b2demodata.qt_query_master and other patient_set related tables.
Docs clinical
Require the 'pack' flag for Protobuf output. Accepted values: 't' and 'f', but currently only 'f' is supported. This flag ensures we can add the packed protobuf output format without breaking compatibility in the future. If we decide to use packed or unpacked as the default, we can make this flag optional in the future.
|
||
if (args.type == null) throw new InvalidArgumentsException("Parameter 'type' is required") | ||
|
||
if (args.pack != 'f' && contentFormat == Format.PROTOBUF) throw new InvalidArgumentsException( |
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.
@JanKanis What if pack
is not specified. Isn't it better to have pack=f
as default value?
Currently, there are many e2e tests that are failing because of that.
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.
The goal of this change was exactly to force clients to specify this flag. In that way in the future the endpoint can default to the 'best' representation (packed or unpacked), where 'best' is still to be decided, in the future without breaking compatiibility. But this was supposed to be part of the release, and AFAIK it had already been merged.
93183e7
to
b651751
Compare
Require the 'pack' flag for Protobuf output. Accepted values: 't' and 'f', but currently only 'f' is supported.
This flag ensures we can add the packed protobuf output format without breaking compatibility in the future.
If we decide to use packed or unpacked as the default, we can make this flag optional in the future.