feat(platform): add 'for_organization' to list all runs of an org#510
feat(platform): add 'for_organization' to list all runs of an org#510
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an organization-scoped filter to the Platform Runs resource so admins/superadmins can list runs for a whole organization, not just the current user, while keeping existing filters and pagination behavior.
Changes:
- Added
for_organizationparameter toRuns.list()andRuns.list_data()and propagated it into the API call. - Updated unit test coverage to assert
for_organizationis passed through when combining all filters.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/aignostics/platform/resources/runs.py |
Exposes for_organization on Runs.list / Runs.list_data and forwards it to list_runs_v1_runs_get. |
tests/aignostics/platform/resources/runs_test.py |
Extends the “all filters combined” test to include for_organization. |
Codecov Report❌ Patch coverage is
|
|
From offline discussion: Make available in CLI (if not auto-discovered). |
00153c7 to
c136907
Compare
c136907 to
8aaf95d
Compare
|
|
LGTM. |



Adds
for_organizationparameter to Runs.list and Runs.list_data: If set, returns all runs triggered by users of the specified organization that match the filter criteria. If None, only the runs of the user are returned.