Skip to content

fix: Have participants() method use http_list() #2914

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

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

JohnVillalovos
Copy link
Member

Previously it was using http_get() but the participants API returns a list of participants. Also by using this then we will warn if only a subset of the participants are returned.

Closes: #2913

Previously it was using `http_get()` but the `participants` API
returns a list of participants. Also by using this then we will warn
if only a subset of the participants are returned.

Closes: #2913
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/participants_list branch from 165f848 to fdee58f Compare July 7, 2024 20:06
The `closed_by()` and `related_merge_requests()` API calls return
lists. So use the `http_list()` method.

This will also warn the user if only a subset of the data is returned.
@JohnVillalovos JohnVillalovos requested a review from nejch July 8, 2024 07:17
Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

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

Thanks @JohnVillalovos!

Yes makes sense IMO this is why I'm in favor of using managers with ListMixin everywhere in place of custom methods as they often get it wrong or can get outdated it seems.

@nejch nejch merged commit de2e4dd into main Jul 8, 2024
16 checks passed
@nejch nejch deleted the jlvillal/participants_list branch July 8, 2024 12:12
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.

Should the participants method use http_list?
2 participants