Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support the delegate filter for REST API
The REST API does not add the delegate filter to the REST API query, which makes using -d give unexpected results: If you add -d <something> then you will still obtain all patches, and then print them out sorted by delegate. Fix this by passing the delegate as a filter to the query command. I suspect this was not implemented before because the REST API may not actually allow partial names for the delegate. I believe this is still valuable to support even if it requires strict matching against the delegate names or IDs. If a match is desirable, this could be refactored to query the set of delegates from the API, find all the IDs which match, and then make multiple calls to _list for each matching delegate ID. I did not attempt to implement that. Signed-off-by: Jacob Keller <[email protected]>
- Loading branch information