[HorizonDB] Add restore command#10049
Draft
alxhghs wants to merge 4 commits into
Draft
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The `az horizondb restore` command sent createMode=PointInTimeRestore and sourceClusterResourceId but omitted pointInTimeUTC, which the service requires (MissingRequiredParameter). Add a `--restore-time` argument (optional, defaults to current UTC time, parse-validated) mirroring `az postgres flexible-server restore`, and pass it as point_in_time_utc. - _params.py: add --restore-time arg with current-time default. - custom_commands.py: parse --restore-time and set point_in_time_utc. - _help.py: add point-in-time restore example. - test: supply a valid restore time (utcnow - 6 min, clearing the 300s preview buffer) and assert createMode; re-record live cassette and commit test log. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
Collaborator
|
HorizonDB |
…izondb-restore-operations # Conflicts: # src/horizondb/HISTORY.rst # src/horizondb/azext_horizondb/_params.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
az horizondb restoreto create a new HorizonDB cluster as a point-in-time restore of an existing source cluster.restore— restore a HorizonDB cluster from a source cluster. Accepts--source-clusterand an optional--restore-time(RFC3339). When--restore-timeis omitted it defaults to the current UTC time. The command sendscreateMode=PointInTimeRestorewith the requiredPointInTimeUTC.Mirrors the
az postgres flexible-server restoreconvention (--restore-time, optional, default = now, parsed/validated withdateutil).Bumps the extension version to
1.0.0b3and documents the change in HISTORY.rst / README.md.Testing
azdev style horizondb— PASSEDazdev linter horizondb— PASSEDHorizonDBClusterMgmtScenarioTestrecorded live (create → show → list → update → restore → delete) and verified in playback — PASSEDHistory Notes
az horizondb restore.