Skip to content

Support flexcache volume creation with GCNV volume tool#32

Open
gnaveen-netapp wants to merge 1 commit into
NetApp:mainfrom
gnaveen-netapp:flexcacheParam
Open

Support flexcache volume creation with GCNV volume tool#32
gnaveen-netapp wants to merge 1 commit into
NetApp:mainfrom
gnaveen-netapp:flexcacheParam

Conversation

@gnaveen-netapp

Copy link
Copy Markdown
Collaborator

This pull request makes significant improvements to both the documentation and the ONTAP API index. The main focus is on clarifying and expanding guidance for GCNV workflows (especially FlexCache and hybrid replication), and greatly enhancing the ONTAP API index with detailed hints and example request bodies for update and delete operations. These changes will help users and developers better understand the correct API usage and supported features.

Documentation Updates:

  • Added a new section to GEMINI.md clarifying that official GCNV documentation is the authoritative source for supported features, and provided explicit mapping guidance from documentation workflows to MCP tools and parameters.
  • Expanded and clarified instructions for FlexCache and hybrid replication in GEMINI.md, including correct tool usage and cross-mode support.

Copilot AI left a comment

Copy link
Copy Markdown

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 first-class FlexCache cache-volume support to the GCNV volume tools (via cacheParameters), relaxes ONTAP preflight validation so PATCH body templates are treated as illustrative, and expands the ONTAP API index + GEMINI guidance to better steer users through supported workflows.

Changes:

  • Add cacheParameters schema support to gcnv_volume_create / gcnv_volume_update, and plumb it through the volume handlers (including updateMask support).
  • Update preflightValidate() to enforce index body templates for POST only (PATCH templates are illustrative), with added unit tests.
  • Enrich ontap-api-index.json with improved hints and example bodies, and expand GEMINI.md guidance for FlexCache / hybrid replication workflows.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/utils/ontap-preflight-validator.ts Enforce index body templates for POST only; keep requiredBody enforcement.
src/utils/ontap-preflight-validator.test.ts Add regression tests for PATCH illustrative templates and requiredBody behavior.
src/tools/volume-tools.ts Introduce cacheParameters Zod schema and expose it on create/update volume tools.
src/tools/handlers/volume-handler.ts Pass cacheParameters on create; support patching it via updateMask.
src/tools/handlers/volume-handler.test.ts Add tests covering create/update behavior for cacheParameters.
src/resources/ontap-api-index.json Add/adjust hints and example bodies across many ONTAP endpoints.
GEMINI.md Add authoritative-doc guidance and clarify FlexCache vs hybrid replication tool usage.

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

Comment thread src/resources/ontap-api-index.json Outdated
Comment thread src/tools/handlers/volume-handler.ts
Copilot AI review requested due to automatic review settings June 21, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown

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 11 out of 12 changed files in this pull request and generated 1 comment.

Comment thread src/tools/handlers/volume-handler.ts
Copilot AI review requested due to automatic review settings June 23, 2026 03:44

Copilot AI left a comment

Copy link
Copy Markdown

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 11 out of 12 changed files in this pull request and generated 1 comment.

Comment thread src/tools/handlers/ontap-execute-handler.ts
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.

2 participants