Self-Service Restore into new Instance #678
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
servala/servala-portal!678
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/self-service-restore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The field was labelled UTC but parsed in the server's timezone: naive input goes through from_current_timezone(), so it was only correct because settings.TIME_ZONE happens to be "UTC". Under an activated or configured Europe/Zurich, a typed 10:30 became 08:30Z - a valid form, no error, and a point-in-time restore to the wrong hour. UTCDateTimeField pins both directions, prepare_value included, so a prefilled picker does not shift back either. While in there: - restore_point is a property that refuses an unvalidated or invalid form. An empty string is a real answer here ("the latest available state"), so a caller skipping is_valid() would otherwise silently restore to latest. - Constructing the form without a usable restore mode raises ValueError instead of quietly offering the point-in-time shape for a service create_instance will refuse. - Both radio values are local widget constants now, with a note that sharing a value with core.restore's mode and wire sentinel is a coincidence. - The restore_point tests assert the expected value per row, split unbound from validated, and check the CRD's timestamp pattern rather than str-ness. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>5d08a312cf557f16f158WIP: Self-Service Restore into new Instanceto Self-Service Restore into new Instance