Open Ladas opened 3 years ago
Depending on page size, you'll need mutliple calls for pagination.
You can do this today with 2 (+ any pagination) calls for a workflow job template N via:
Similarly for a workflow job run N:
cc @shanemcd @matburt
https://example.tower.server.com/api/v2/inventories/?jobs__unified_job_node__workflow_job=71293
OR to build on what @wenottingham said
/api/v2/workflow_jobs/N/workflow_nodes/?inventory__isnull=false <-- will filter out some results for you.
@wenottingham @chrismeyersfsu does this return all descendants or just children of the workflow? I remember we needed to do a recursive query (so a query for each children that is a nested workflow), to get all descendants, because the API didn't support his.
ISSUE TYPE
SUMMARY
Catalog needs API call that returns all associated Inventory objects with a workflow, namely:
We'd need this done in one API call, so this information would have to be most likely pre-computed/cached on Controller side