Adds hostProperties option to applicationcustomizer commands. Closes …#7084
Open
Saurabh7019 wants to merge 1 commit intopnp:mainfrom
Open
Adds hostProperties option to applicationcustomizer commands. Closes …#7084Saurabh7019 wants to merge 1 commit intopnp:mainfrom
Saurabh7019 wants to merge 1 commit intopnp:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request adds the hostProperties option to all four application customizer commands (add and set variants for both site-level and tenant-level), enabling users to configure host properties for Application Customizers. This addresses issue #6825.
Key Changes
- Added
hostPropertiesoptional parameter to all four application customizer commands - Implemented JSON validation for
hostPropertiesinapplicationcustomizer-add.ts - Added test coverage for the new option across all commands
- Updated documentation to reflect the new parameter and its JSON handling requirements
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/tenant/tenant-applicationcustomizer-add.ts | Adds hostProperties option, telemetry tracking, and sets field value when adding tenant-wide customizers |
| src/m365/spo/commands/tenant/tenant-applicationcustomizer-add.spec.ts | Adds test case verifying hostProperties can be set when adding a tenant-wide customizer |
| src/m365/spo/commands/tenant/tenant-applicationcustomizer-set.ts | Adds hostProperties option, telemetry tracking, validation check, and update logic for tenant-wide customizers |
| src/m365/spo/commands/tenant/tenant-applicationcustomizer-set.spec.ts | Adds test case verifying hostProperties can be updated for existing tenant-wide customizers |
| src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.ts | Adds hostProperties option with JSON validation, telemetry tracking, and sets field value when adding site-level customizers |
| src/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.spec.ts | Adds test cases for both successful hostProperties usage and validation of invalid JSON input |
| src/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.ts | Adds hostProperties option, telemetry tracking, validation check, and update logic for site-level customizers |
| src/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.spec.ts | Adds test case verifying hostProperties can be updated for existing site-level customizers |
| docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx | Documents the new hostProperties option and updates JSON escaping guidance to include it |
| docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx | Documents the new hostProperties option with clear/empty string capability and updates remarks for JSON handling |
| docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx | Documents the new hostProperties option and updates JSON escaping guidance to include it |
| docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx | Documents the new hostProperties option with clear/empty string capability and updates remarks for JSON handling |
Contributor
|
Thanks @Saurabh7019! We'll try to review it soon. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6825