Skip to content

Commit

Permalink
Fixes Rights property from 'spo applicationcustomizer get' command. C…
Browse files Browse the repository at this point in the history
…loses #6052
  • Loading branch information
SmitaNachan authored and milanholemans committed Aug 24, 2024
1 parent 9755e0c commit b26c683
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
"Name": "{4a428b32-08cf-45c7-9986-17585af38806}",
"RegistrationId": null,
"RegistrationType": 0,
"Rights": "{\"High\":\"0\",\"Low\":\"0\"}",
"Rights": {
"High": 0,
"Low": 0
},
"Scope": "Web",
"ScriptBlock": null,
"ScriptSrc": null,
Expand All @@ -120,7 +123,6 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
Name : {4a428b32-08cf-45c7-9986-17585af38806}
RegistrationId : null
RegistrationType : 0
Rights : {"High":"0","Low":"0"}
Scope : Web
ScriptBlock : null
ScriptSrc : null
Expand All @@ -134,8 +136,8 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
<TabItem value="CSV">

```csv
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,{4a428b32-08cf-45c7-9986-17585af38806},,0,"{""High"":""0"",""Low"":""0""}",Web,,,65536,HelloWorld,,1.0.1.0
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,Some customizer,,0,Web,,,0,Some customizer,,16.0.1.0
```

</TabItem>
Expand All @@ -157,7 +159,6 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
Location | ClientSideExtension.ApplicationCustomizer
Name | {4a428b32-08cf-45c7-9986-17585af38806}
RegistrationType | 0
Rights | {"High":"0","Low":"0"}
Scope | Web
Sequence | 65536
Title | HelloWorld
Expand Down
12 changes: 10 additions & 2 deletions docs/docs/v9-upgrade-guidance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,22 @@ In the past versions of CLI for Microsoft 365, the command had no output. When u

When using the [spo file copy](./cmd/spo/file/file-copy.mdx) command, please use the new command input. This means that you'll have to remove option `--resetAuthorAndCreated` from your scripts and automation tools.

### Removed 'spo folder rename' alias
### Removed `spo folder rename` alias

The `spo folder rename` command was removed and replaced by the [spo folder set](./cmd/spo/folder/folder-set.mdx) command.

#### What action do I need to take?

Please, update your scripts to use the `spo folder set` command instead of `spo folder rename`.

### Updated output of `spo applicationcustomizer get` command

In the previous version of CLI, the command output had a `Rights` property that was a stringified JSON object. In this release, this has been changed to a JSON object.

#### What action do I need to take?

Please, check the documentation of the [spo applicationcustomizer get](./cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx) command to see the updated output and adjust your scripts accordingly.

## SharePoint Framework

### Removed overwrite option from `spfx project github workflow add` command
Expand All @@ -165,4 +173,4 @@ Overwriting the SPFx package should be the default behavior of the continuous de

#### What action do I need to take?

Please update your scripts not to use the `overwrite` option.
Please update your scripts not to use the `overwrite` option.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
"Name": title,
"RegistrationId": null,
"RegistrationType": 0,
"Rights": "{\"High\":0,\"Low\":0}",
"Rights": { "High": 0, "Low": 0 },
"Scope": 3,
"ScriptBlock": null,
"ScriptSrc": null,
Expand Down Expand Up @@ -59,7 +59,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
Name: 'Some customizer',
RegistrationId: null,
RegistrationType: 0,
Rights: '"{\\"High\\":0,\\"Low\\":0}"',
Rights: { "High": 0, "Low": 0 },
Scope: 'Web',
ScriptBlock: null,
ScriptSrc: null,
Expand Down Expand Up @@ -642,7 +642,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
Name: 'Some customizer',
RegistrationId: null,
RegistrationType: 0,
Rights: '{"High":0,"Low":0}',
Rights: { "High": 0, "Low": 0 },
Scope: 'Web',
ScriptBlock: null,
ScriptSrc: null,
Expand Down Expand Up @@ -678,7 +678,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
"Name": title,
"RegistrationId": null,
"RegistrationType": 0,
"Rights": "{\"High\":0,\"Low\":0}",
"Rights": { "High": 0, "Low": 0 },
"Scope": "3",
"ScriptBlock": null,
"ScriptSrc": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ class SpoApplicationCustomizerGetCommand extends SpoCommand {
if (!args.options.clientSideComponentProperties) {
await logger.log({
...customAction,
Rights: JSON.stringify(customAction.Rights),
Scope: this.humanizeScope(customAction.Scope)
});
}
Expand Down

0 comments on commit b26c683

Please sign in to comment.