discourse/spec/lib/backup_restore
Ted Johansson 71ea236a79
FIX: Use a valid value for disabling backups using backup_frequency (#34245)
In #33558 we removed automatic_backups_enabled setting, and instead rely on backup_frequency being blank to disable.

There was a big oversight there with the site setting type system, which will coerce the value to an integer. It also makes it so you can't blank the value out in the UI.

This is a "fix forward" solution where instead of "set to blank to disable" we do "set to 0 to disable". This works along the grain of the site setting type system for a workable fix where we don't have to deal with the irreversible migration in the previous change.

We can potentially go and add in "nullable" to the type system at a later point.
2025-08-12 13:19:56 +08:00
..
backup_file_handler_multisite_spec.rb DEV: Use freeze_time_safe in more places (#25949) 2024-03-01 10:07:35 +10:00
backup_file_handler_spec.rb FIX: Handle restore URLs ending with query params (#33384) 2025-07-07 18:43:31 +03:00
backuper_spec.rb FIX: truncate extremely long site name titles (#30977) 2025-01-24 15:47:05 +11:00
database_restorer_multisite_spec.rb DEV: Use freeze_time_safe in more places (#25949) 2024-03-01 10:07:35 +10:00
database_restorer_spec.rb FIX: Restoring backup could fail due to missing discourse_functions (#29332) 2024-10-22 16:13:01 +02:00
local_backup_store_spec.rb DEV: Add backup helpers for specs (#28394) 2024-08-16 14:51:57 +10:00
meta_data_handler_spec.rb DEV: Use freeze_time_safe in more places (#25949) 2024-03-01 10:07:35 +10:00
s3_backup_store_spec.rb DEV: Bump aws-sdk-core in prep for aws-sdk-mediaconvert (#33250) 2025-06-20 16:41:01 -06:00
shared_context_for_backup_restore.rb FEATURE: Add utilities for importing and exporting backups (#32992) 2025-06-11 15:44:10 +03:00
shared_examples_for_backup_store.rb FIX: Use a valid value for disabling backups using backup_frequency (#34245) 2025-08-12 13:19:56 +08:00
system_interface_multisite_spec.rb DEV: Use freeze_time_safe in more places (#25949) 2024-03-01 10:07:35 +10:00
system_interface_spec.rb DEV: Upgrade Sidekiq to v7.3.9 2025-03-10 15:02:48 +01:00
uploads_restorer_spec.rb DEV: Use freeze_time_safe in more places (#25949) 2024-03-01 10:07:35 +10:00