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 orderby: Iterable[str] for list_flows #730

Merged
merged 1 commit into from
May 16, 2023

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented May 11, 2023

Add support for an iterable of strings to pass this parameter multiple times.
The tests for list_flows have also been moved to a dedicated module, to keep testing modules more focused on a per-method basis in the suite of functional tests.

orderby checks for str values (passed verbatim), and converts any other value with list. This ensures that if a non-sequence iterable is passed, it will be coerced into a type which works well.

A new test is added which exercises several different supported types.

The list_flows documentation now includes example usage (which has been tested out-of-band).


📚 Documentation preview 📚: https://globus-sdk-python--730.org.readthedocs.build/en/730/

Add support for an iterable of strings to pass this parameter multiple
times.
The tests for `list_flows` have also been moved to a dedicated module,
to keep testing modules more focused on a per-method basis in the
suite of functional tests.

`orderby` checks for `str` values (passed verbatim), and converts any
other value with `list`. This ensures that if a non-sequence iterable
is passed, it will be coerced into a type which works well.

A new test is added which exercises several different supported types.

The `list_flows` documentation now includes example usage (which has
been tested out-of-band).
Copy link
Contributor

@ada-globus ada-globus left a comment

Choose a reason for hiding this comment

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

LGTM!

@sirosen sirosen merged commit c5382b0 into globus:main May 16, 2023
@sirosen sirosen deleted the allow-flows-list-multi-orderby branch May 16, 2023 21:48
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.

2 participants