Closed ruscur closed 8 years ago
Hi,
So there's a non-documented API GET parameter that can be useful to you right now:
The key is the related=expand. It will "expand" the related fields, ie the primary keys will become a serialization of the object pointed at by that primary key.
I haven't documented this API yet as I'd like to ensure it makes the number of SQL queries still O(1) (ie not depending on the number of series returned). This is true on the series entry point (it even has test coverage!), but not tested for all the "list" entry points.
Yeah, that's useful. So, leave the issue open until there's a separate API or the field expansion is documented?
I actually had that exact one captured already. So closing as duplicate. I see you're looking at the API, you may be interested in two scripts using the API that I can share:
expand
parameter to limit the number of HTTP requests needed) : https://github.com/dlespiau/patchwork/blob/master/git-pw/git-pwIf you have any precise-ish question don't hesitate to open issues, the documentation of what's possible definitely needs improvement.
Closed as duplicated of https://github.com/dlespiau/patchwork/issues/68
Submitters are referenced by an ID in the series and patch APIs. This is used in the views to render their name and email. Though it can be read from the database or parsed from an mbox, if it's returned in a REST API there should be a place in the API I can look up what it means, rather than just use it in queries.