[HorizonDB] Add parameter-group commands#10046
Conversation
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| horizondb parameter-group | sub group horizondb parameter-group added |
6614ae0 to
dbf90a9
Compare
Add 'az horizondb parameter-group' command group over the Microsoft.HorizonDb/parameterGroups resource with create, delete, list, and show commands. Parameter groups are immutable once created (service returns ParameterGroupUpdateNotSupported), so no update command is provided. Bump version to 1.0.0b4. Includes live-recorded test cassette and test run log. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dbf90a9 to
a86d6de
Compare
|
HorizonDB |
- Move parameter-group commands into commands/parameter_group_commands.py - Reword parameter-group create help for unspecified parameters - Clarify --version help as the PostgreSQL major version - Remove committed test_horizondb_results.log Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds HorizonDB parameter-group management support to the horizondb extension, including new CLI commands, argument wiring/validation, help text, and scenario coverage, along with a version bump and history entry.
Changes:
- Introduces
az horizondb parameter-group {create,show,list,delete}command group wired to the vendored SDK plus custom create/delete/list handlers. - Adds
--parametersparsing/validation and new help entries for the parameter-group commands. - Adds/extends scenario tests for parameter-group CRUD and bumps extension version + HISTORY.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/horizondb/setup.py | Bumps extension version to 1.0.0b4. |
| src/horizondb/HISTORY.rst | Documents the new parameter-group command set in release notes. |
| src/horizondb/azext_horizondb/tests/latest/test_horizondb_parameter_group.py | Adds CRUD scenario coverage for parameter groups and extends existing scenario flows. |
| src/horizondb/azext_horizondb/tests/latest/constants.py | Adds naming constants for parameter-group test resources. |
| src/horizondb/azext_horizondb/commands/parameter_group_commands.py | Implements custom handlers for create/delete/list (with no-wait support). |
| src/horizondb/azext_horizondb/cluster_commands.py | Registers the new horizondb parameter-group command group and its commands. |
| src/horizondb/azext_horizondb/_validators.py | Adds a validator to parse --parameters name=value pairs into SDK model objects. |
| src/horizondb/azext_horizondb/_params.py | Adds CLI argument definitions for parameter-group commands (name, parameters, pg-version, etc.). |
| src/horizondb/azext_horizondb/_help.py | Adds CLI help entries and examples for the new parameter-group commands. |
| src/horizondb/azext_horizondb/_client_factory.py | Adds a client factory for parameter-group operations. |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Remove the redundant pg_version_arg_type and reuse version_arg_type (--version/-v) for the parameter group create command, per review feedback. Update help examples and tests accordingly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
nasc17
left a comment
There was a problem hiding this comment.
Looks good, address merge conflict
…arameter-group-commands # Conflicts: # src/horizondb/HISTORY.rst # src/horizondb/azext_horizondb/_params.py
nachoalonsoportillo
left a comment
There was a problem hiding this comment.
I'm missing one command through which we can list connections (https://learn.microsoft.com/en-us/rest/api/horizondb/parameter-groups/list-connections?view=rest-horizondb-2026-01-20-preview&tabs=HTTP)
`az horizondb parameter-group list-connections'
…d' of https://github.com/nachoalonsoportillo/azure-cli-extensions into nacho-horizondb-parameter-group-list-connections-command
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Pan-Qi
left a comment
There was a problem hiding this comment.
Please try to sync with main branch, then I will re-run the test to see if the test pass.
…oup argument description
…arameter-group-commands # Conflicts: # src/horizondb/HISTORY.rst # src/horizondb/azext_horizondb/_client_factory.py # src/horizondb/azext_horizondb/_help.py # src/horizondb/azext_horizondb/_params.py # src/horizondb/azext_horizondb/cluster_commands.py # src/horizondb/azext_horizondb/utils/validators.py
|
/azp run |
|
Commenter does not have sufficient privileges for PR 10046 in repo Azure/azure-cli-extensions |
|
Hi @Pan-Qi, I merged main if you don't mind running the tests again |
…horizondb-parameter-group-list-connections-command
…ter-group-list-connections-command [HorizonDB] Add list-connections command to the parameter-group group
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
nachoalonsoportillo
left a comment
There was a problem hiding this comment.
Should also update VERSION in setup.py.
|
|
||
| 1.0.0b5 | ||
| +++++++ | ||
| * Add `az horizondb parameter-group` commands to create, delete, list, and show HorizonDB parameter groups. |
There was a problem hiding this comment.
I saw that on the PR which adds support for restore commands you bumped version to 1.0.0b6. Will this one go after with version 1.0.0b7?
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Description
Adds
az horizondb parameter-groupcommands to manage HorizonDB parameter groups:parameter-group create— create a parameter group. The service requires at least one customname=valueparameter (--parameters); any parameters you do not specify inherit the PostgreSQL defaults for the group.parameter-group show— show a parameter groupparameter-group list— list parameter groups in a resource groupparameter-group delete— delete a parameter groupparameter-group list-connections- list clusters to which the parameter group is connected toParameter groups are immutable once created (the service rejects updates), so no
updatecommand is provided; to change parameters, create a new group and assign it to the cluster viaaz horizondb update --parameter-group.Bumps the extension version to
1.0.0b4and documents the change in HISTORY.rst.Testing
azdev style horizondb— PASSEDazdev linter horizondb— PASSEDHorizonDBParameterGroupCrudScenarioTestrecorded live and verified in playback — PASSEDHistory Notes
az horizondb parameter-groupcommands to create, delete, list, and show HorizonDB parameter groups.