Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with pre-3.18 custom check backends #414

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Jan 30, 2024

The subset parameter added to BaseHealthCheckBackend's run_check and check_status methods in 4da1fd9 broke compatibility with existing custom check backends, since they don't accept this parameter.

Moreover, this parameter appears to be entirely useless, since check_status is only called by run_check, and run_check is only called by CheckMixin.run_check, which never passed a value for subset.

Get rid of it and restore compatibility.

Fixes #413.

The `subset` parameter added to `BaseHealthCheckBackend`'s `run_check`
and `check_status` methods in 4da1fd9 broke compatibility with existing custom
check backends, since they don't accept this parameter.

Moreover, this parameter appears to be entirely useless, since `check_status` is
only called by `run_check`, and `run_check` is only called by
`CheckMixin.run_check`, which never passed a value for `subset`.

Get rid of it and restore compatibility.
@frankwiles frankwiles merged commit 4d04b5a into revsys:master Jan 31, 2024
29 checks passed
@frankwiles
Copy link
Member

Thanks for this! Great catch, not sure how we missed this!

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.

Bug: check_status() fails after upgrading to 3.18
2 participants