Skip to content

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
@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?

3 participants