Skip to content

feat: Support Deploymentplan item type - #313

Merged
aviatco merged 12 commits into
microsoft:mainfrom
aviatco:dev/aviatcohen/deploymentplan-support
Nov 25, 2026
Merged

aviatco merged 12 commits into
microsoft:mainfrom
aviatco:dev/aviatcohen/deploymentplan-support

Conversation

@aviatco

@aviatco aviatco commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

📥 Pull Request

✨ Description of new changes

issue #310
This pull request adds support for a new item type, DeploymentPlan, across the Fabric CLI and documentation. The changes ensure that DeploymentPlan is recognized as a first-class item type in the CLI, is documented for users, and is included in all relevant commands and tests.

Core CLI and Item Type Support:

  • Added DeploymentPlan to the ItemType enum and mapped it to its corresponding folder and definition format in fab_types.py, enabling core CLI recognition and correct handling of this new item type. [1] [2] [3]
  • Updated command_support.yaml to include deployment_plan as a supported item for key commands such as export, import, and copy, allowing users to manage deployment plans using the CLI. [1] [2] [3] [4]

Documentation Updates:

  • Documented .DeploymentPlan in both the resource types overview and relevant command usage examples, making users aware of the new item type and its capabilities. [1] [2] [3]

Test Coverage:

  • Added DeploymentPlan to all relevant test parameterizations in conftest.py, ensuring the new item type is covered by tests for commands such as export, import, move, copy, and metadata setting. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Changelog:

  • Added an unreleased changelog entry announcing support for the DeploymentPlan item type.

@aviatco
aviatco requested a review from a team as a code owner November 23, 2026 15:25
Copilot AI balanced review requested due to automatic review settings November 23, 2026 15:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

DeploymentPlan shifts cassette IDs and order-dependent import names, breaking existing test playback, and lacks the browser route needed for a valid fab open URL.

3 open issues
What changed in this PR

Adds DeploymentPlan to Fabric CLI’s item model and command support, with documentation and tests for managing deployment plans.

Changes:

  • Registers the item type, REST endpoint, definition format, and export/import/copy/move support.
  • Adds test parameterizations, export/import unit checks, and recorded command interactions.
  • Documents the new resource type and adds an unreleased changelog entry.
File Description
tests/​test_utils/​test_fab_item_util.py Tests export/import round trips and invalid formats.
tests/​test_commands/​test_export.py Adds the expected invalid-format error.
tests/​test_commands/​recordings/​test_commands/​test_rm/​test_rm_item_without_force_success[DeploymentPlan].yaml Records confirmed deletion.
tests/​test_commands/​recordings/​test_commands/​test_rm/​test_rm_item_without_force_cancel_operation_success[DeploymentPlan].yaml Records cancellation of deletion.
tests/​test_commands/​recordings/​test_commands/​test_rm/​test_rm_item_with_hard_delete_without_force_success[DeploymentPlan].yaml Records confirmed hard deletion.
tests/​test_commands/​recordings/​test_commands/​test_rm/​test_rm_item_with_hard_delete_success[DeploymentPlan].yaml Records forced hard deletion.
tests/​test_commands/​recordings/​test_commands/​test_rm/​test_rm_item_success[DeploymentPlan].yaml Records standard deletion.
tests/​test_commands/​recordings/​test_commands/​test_mkdir/​test_mkdir_item_name_already_exists_failure[DeploymentPlan].yaml Records duplicate-name handling.
tests/​test_commands/​recordings/​test_commands/​test_export/​test_export_item_success[DeploymentPlan-.yml].yaml Records YAML definition export.
tests/​test_commands/​recordings/​test_commands/​test_export/​test_export_item_invalid_output_path_failure[DeploymentPlan].yaml Supports invalid-output-path testing.
tests/​test_commands/​recordings/​test_commands/​test_export/​test_export_item_invalid_format_failure[DeploymentPlan-.txt].yaml Supports invalid-format testing.
tests/​test_commands/​recordings/​test_commands/​test_export/​test_export_item_format_success[DeploymentPlan-DeploymentPlanFormat-expected_file_extensions0-expected_folders0].yaml Records explicit-format export.
tests/​test_commands/​recordings/​test_commands/​test_export/​test_export_item_default_format_success[DeploymentPlan-2].yaml Records default-format export.
tests/​test_commands/​recordings/​test_commands/​test_exists/​test_exists_item_exists_success[DeploymentPlan].yaml Records an existing-item check.
tests/​test_commands/​recordings/​test_commands/​test_exists/​test_exists_item_doesnt_exist_success[DeploymentPlan].yaml Records a missing-item check.
tests/​test_commands/​recordings/​test_commands/​test_cd/​test_cd_item_all_types_success[DeploymentPlan].yaml Records item navigation.
tests/​test_commands/​conftest.py Includes DeploymentPlan in command test cases.
src/​fabric_cli/​core/​fab_types.py Registers the type, REST collection, and definition format.
src/​fabric_cli/​core/​fab_config/​command_support.yaml Enables export, import, copy, and move.
docs/​examples/​item_examples.md Lists DeploymentPlan in supported command examples.
docs/​essentials/​resource_types.md Describes the new resource type.
.changes/​unreleased/​new-items-20261123-132500.yaml Announces DeploymentPlan support.

Review effort: Balanced

Comment thread tests/test_commands/conftest.py Resolved
Comment thread tests/test_commands/conftest.py Resolved
Comment thread src/fabric_cli/core/fab_types.py Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Prepending the new parameter case changes all six existing pytest IDs, breaking their VCR cassette lookups and causing playback tests to fail because the renamed recordings do not exist.

2 open issues
1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 24, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues blocking the DeploymentPlan support change.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 24, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the DeploymentPlan support change.

No open issues 🎉

Review effort: Balanced

@aviatco
aviatco merged commit 2c58d35 into microsoft:main Nov 25, 2026
11 checks passed
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.

3 participants