Skip to content

Conversation

@acoburn
Copy link
Collaborator

@acoburn acoburn commented Jun 1, 2023

At present, the AccessGrantClient.query() method has an agent parameter, which refers to the recipient of an access credential, but there is no way to query based on creator. This PR introduces an additional parameter so that one can query for creator and/or recipient.

Note: this also moves the resource URI to the first position in the new ::query API (to be introduced in Beta3), as this property is anticipated to be null less often.

@acoburn acoburn requested a review from a team as a code owner June 1, 2023 16:22
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests referencing the notion of Agent (e.g. testQueryGrantAgent) could be renamed to the appropriate role, i.e. Recipient or Creator.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a very good idea. I'll create a ticket to make that adjustment in the tests

@acoburn acoburn merged commit a745872 into main Jun 2, 2023
@acoburn acoburn deleted the JCL-367-query-params branch June 2, 2023 11:38
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.

3 participants