Skip to content

V4.0 fix/put back to cache none - #195

Merged
dkmstr merged 3 commits into
v4.0from
v4.0-fix/put-back-to-cache-none
Nov 17, 2026
Merged

dkmstr merged 3 commits into
v4.0from
v4.0-fix/put-back-to-cache-none

Conversation

@dkmstr

@dkmstr dkmstr commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…icitly enabled

allow_putting_back_to_cache() returned True for any value other than "no".
Services stored before the put_back_to_cache field existed load it as None,
which the check treated as enabled, so logged-out machines were moved to
cache instead of being removed.

Allow putting back to cache only for "yes" and "snapshot". Add tests for
unset, "no", "yes" and "snapshot".
put_back_to_cache_field() had no default, so services without a stored
value showed the first choice in the UI while the stored value was unset.
Default the field to "no" so the UI and the stored value agree, and so
services stored before the field existed load as "no".

Add a test for the default value.
Services stored before the field existed keep the value "None" (as_str of
an unset choice). Add a test that such a value does not allow putting
machines back into cache, so the check cannot regress to "!= no".
@dkmstr
dkmstr merged commit 7e361c2 into v4.0 Nov 17, 2026
2 checks passed
@aschumann-virtualcable
aschumann-virtualcable deleted the v4.0-fix/put-back-to-cache-none branch November 17, 2026 21:39
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