Skip to content
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

support the delegate filter for REST API #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jacob-keller
Copy link

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 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]

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant