Skip to content

Let 'spo storageentity' reference tenant app catalog#7148

Open
MathijsVerbeeck wants to merge 2 commits intopnp:mainfrom
MathijsVerbeeck:enhance-spo-storageentity-commands
Open

Let 'spo storageentity' reference tenant app catalog#7148
MathijsVerbeeck wants to merge 2 commits intopnp:mainfrom
MathijsVerbeeck:enhance-spo-storageentity-commands

Conversation

@MathijsVerbeeck
Copy link
Contributor

Closes #7128

@milanholemans I noticed that for the setting and deleting of properties custom script has to be enabled on the site. I was wondering if we should add a remark for this?

Copy link

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 updates the SharePoint Online spo storageentity command set so appCatalogUrl is no longer required and the commands default to using the tenant app catalog when it’s not provided, improving usability and aligning with issue #7128.

Changes:

  • Make --appCatalogUrl optional across set, remove, and list, and add it to get, defaulting to the tenant app catalog when omitted.
  • Migrate these commands to Zod-based option schemas (schema getter + exported options).
  • Update and extend unit tests and command docs to reflect the new defaulting behavior and validation.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/m365/spo/commands/storageentity/storageentity-set.ts Makes appCatalogUrl optional, defaults to tenant app catalog, migrates options to Zod schema.
src/m365/spo/commands/storageentity/storageentity-set.spec.ts Updates tests to parse options via schema; adds coverage for tenant app catalog default and not-found error.
src/m365/spo/commands/storageentity/storageentity-remove.ts Makes appCatalogUrl optional with tenant app catalog fallback; migrates options to Zod schema.
src/m365/spo/commands/storageentity/storageentity-remove.spec.ts Updates tests to schema parsing; adds tenant app catalog default/not-found scenarios.
src/m365/spo/commands/storageentity/storageentity-list.ts Makes appCatalogUrl optional with tenant app catalog fallback; migrates options to Zod schema; returns [] when none found.
src/m365/spo/commands/storageentity/storageentity-list.spec.ts Updates tests for schema parsing and new default behavior; asserts empty-array output.
src/m365/spo/commands/storageentity/storageentity-get.ts Adds optional appCatalogUrl and defaults to tenant app catalog; migrates options to Zod schema.
src/m365/spo/commands/storageentity/storageentity-get.spec.ts Updates tests for schema parsing; adds tenant app catalog default/not-found coverage.
docs/docs/cmd/spo/storageentity/storageentity-set.mdx Marks appCatalogUrl optional and documents tenant app catalog default + updated examples.
docs/docs/cmd/spo/storageentity/storageentity-remove.mdx Marks appCatalogUrl optional and documents tenant app catalog default + updated examples.
docs/docs/cmd/spo/storageentity/storageentity-list.mdx Marks appCatalogUrl optional and documents tenant app catalog default + adds example without -u.
docs/docs/cmd/spo/storageentity/storageentity-get.mdx Documents new optional appCatalogUrl behavior and adds an example targeting a specific app catalog.

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.

Let spo storageentity commands reference the tenant app catalog by default

2 participants