Skip to content

feat: adding add/update/remove schedule in snapshot policy#108

Merged
cgrinds merged 5 commits intomainfrom
hl_snpsht
Apr 17, 2026
Merged

feat: adding add/update/remove schedule in snapshot policy#108
cgrinds merged 5 commits intomainfrom
hl_snpsht

Conversation

@Hardikl
Copy link
Copy Markdown
Contributor

@Hardikl Hardikl commented Apr 13, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 13, 2026 13:41
@cla-bot cla-bot Bot added the cla-signed label Apr 13, 2026
@Hardikl Hardikl linked an issue Apr 13, 2026 that may be closed by this pull request
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds snapshot policy management capabilities: updating a snapshot policy and adding/updating/removing schedule entries within an existing snapshot policy, plus related schema/model updates and integration coverage.

Changes:

  • Extend snapshot policy models to support enabled and comment, and introduce a snapshot-policy schedule-entry input type.
  • Add server-side MCP tools for updating snapshot policies and managing schedule entries inside a policy.
  • Add REST client support for snapshot policy update and schedule-entry CRUD, and add/adjust integration tests.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
tool/tool.go Extends tool input schemas for snapshot policy fields and snapshot-policy schedule-entry operations.
server/Snapshotpolicy.go Adds handlers/validators for update snapshot policy + add/update/remove schedule entries in a policy.
server/server.go Registers new MCP tools for snapshot policy updates and schedule-entry CRUD.
rest/snapshotpolicy.go Implements REST calls for snapshot policy create/update/delete and schedule-entry add/update/remove.
ontap/ontap.go Extends ONTAP models for snapshot policy enabled/comment and schedule-entry payloads; augments GetData record shape.
integration/test/snapshotPolicy_test.go Adds integration scenarios for schedule-entry CRUD and snapshot policy update.
integration/test/snapshot_test.go Removes the prior snapshot test (replaced by snapshotPolicy_test).
descriptions/descriptions.go Adds tool descriptions for the new snapshot policy and schedule-entry operations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rest/snapshotpolicy.go Outdated
Comment thread rest/snapshotpolicy.go Outdated
Comment thread rest/snapshotpolicy.go Outdated
Comment thread rest/snapshotpolicy.go
Comment thread rest/snapshotpolicy.go Outdated
Comment thread rest/snapshotpolicy.go
Comment thread integration/test/snapshotPolicy_test.go Outdated
Comment thread integration/test/snapshotPolicy_test.go
Comment thread integration/test/snapshotPolicy_test.go Outdated
Comment thread rest/snapshotpolicy.go Outdated
Comment thread rest/snapshotpolicy.go Outdated
Copilot AI review requested due to automatic review settings April 15, 2026 15:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rest/snapshotpolicy.go
Comment thread rest/snapshotpolicy.go
Comment thread rest/snapshotpolicy.go Outdated
Comment thread descriptions/descriptions.go Outdated
@cgrinds cgrinds merged commit df9e89b into main Apr 17, 2026
22 checks passed
@cgrinds cgrinds deleted the hl_snpsht branch April 17, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add update_snapshot_policy tool

4 participants