Closed shijialee closed 1 year ago
Hi @shijialee, and interesting PR! It seems that, in order for multiple-collapse to be fully supported, further adjustments would need to be made to handle multiple values, such as here:
Completely forgot about this PR. Sorry about that.
Since argparser's append stores value as list, no need to change here for multiple values.
requests doc has the following sample code:
payload = {'key1': 'value1', 'key2': ['value2', 'value3']}
r = requests.get('https://httpbin.org/get', params=payload)
essentially, for collapse
, this will be payload = {'collapse': ['timestamp:10', 'digest']}
Belatedly(!): Thanks, that makes sense. Merging.
per the doc "To use collapsing, add one or more collapse=field or collapse=field:N where N is the first N characters of field to test"