Commit 70f96f9
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 <jacob.e.keller@intel.com>1 parent 4d2f914 commit 70f96f9
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
750 | 753 | | |
751 | 754 | | |
752 | 755 | | |
| |||
0 commit comments