Skip to content

Allow filtering results by status#441

Merged
petrutlucian94 merged 1 commit into
cloudbase:masterfrom
petrutlucian94:state_filter
May 26, 2026
Merged

Allow filtering results by status#441
petrutlucian94 merged 1 commit into
cloudbase:masterfrom
petrutlucian94:state_filter

Conversation

@petrutlucian94
Copy link
Copy Markdown
Member

@petrutlucian94 petrutlucian94 commented May 26, 2026

We're adding a "status" search option that can be specified when listing the following resources:

  • deployments
    • status -> last_execution_status db field
  • transfers
  • transfer executions

The filtering will be performed on the db side.

Client PR: cloudbase/python-coriolisclient#100

http_exc.BadRequest,
self._client.transfer_executions.list,
self._completed_transfer.id,
filters={"status": "fake-status"})
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe also include a bad filter case?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It turns out that the Coriolis API silently ignores unknown GET parameters, just like Nova did until a few years ago. Fixing it would require a larger change and it's outside the scope of this PR.

Comment thread coriolis/tests/integration/test_api_listing.py Outdated
Comment thread coriolis/deployer_manager/rpc/server.py Outdated
We're adding a "status" search option that can be specified when
listing the following resources:

* deployments
    * status -> last_execution_status db field
* transfers
* transfer executions

The filtering will be performed on the db side.
@petrutlucian94 petrutlucian94 merged commit eba28b5 into cloudbase:master May 26, 2026
5 checks passed
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.

2 participants