cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

New sample script: Script to generate the retirement report of SharePoint Add-Ins and Azure ACS. Closes #5774.

Open mkm17 opened this issue 1 year ago • 10 comments

#5774 Script to generate the retirement report of SharePoint Add-Ins and Azure ACS

  • Adds a new script to generate the retirement report of SharePoint Add-Ins and Azure ACS. Closes #5774

Linked Issue #5774

Hi everyone, I managed to create the script mentioned in the initial issue. I am looking forward to any comments on what should be changed/included in the script.

Thanks @Adam-it for the help in preparing it!

mkm17 avatar Feb 13 '24 08:02 mkm17

Validation failed!

File: docs/docs/sample-scripts/spo/sp_add_ins_and_azure_acs_retirement_report/assets/sample.json

  • Invalid 'url' property: The provided URL is not responding correctly!
  • Invalid url for thumbnail #1 property: The provided URL is not responding correctly!

github-actions[bot] avatar Feb 13 '24 08:02 github-actions[bot]

Thanks @mkm17, we'll try to review it ASAP!

milanholemans avatar Feb 13 '24 08:02 milanholemans

Hi @milanholemans, I can see that the sample validation did not pass because of incorrect URLs. TBH I am not sure why they are not correct.

mkm17 avatar Feb 13 '24 08:02 mkm17

Hi @milanholemans, I can see that the sample validation did not pass because of incorrect URLs. TBH I am not sure why they are not correct.

Good question, it's the first time we see this validator in action. The only thing I can think of is that your script folder contains underscores _ while other sample scripts are using dashes -. Maybe you could try that? Maybe @PaoloPia can give some more context about the rules that are being checked?

I also think that the referenced issue is referenced unintentionally.

milanholemans avatar Feb 13 '24 08:02 milanholemans

Validation failed!

File: docs/docs/sample-scripts/spo/sp-add-ins-and-azure-acs-retirement-report/assets/sample.json

  • Invalid 'url' property: The provided URL is not responding correctly!
  • Invalid url for thumbnail #1 property: The provided URL is not responding correctly!

github-actions[bot] avatar Feb 13 '24 08:02 github-actions[bot]

@milanholemans Good point about underscores and dashes; I have changed them to be aligned with other scripts. I can see that the validation result is the same, so let's wait for @PaoloPia's comment.

mkm17 avatar Feb 13 '24 08:02 mkm17

Hi @mkm17 and @milanholemans, thanks. As the validation message explains, both the url property (https://pnp.github.io/cli-microsoft365/sample-scripts/spo/sp-add-ins-and-azure-acs-retirement-report) and the thumbnail URL (https://raw.githubusercontent.com/pnp/cli-microsoft365/main/docs/docs/sample-scripts/spo/sp-add-ins-and-azure-acs-retirement-report/assets/preview.png) provided in the sample.json file are not valid because they return a 404. Please, update them providing valid URLs and you should be good to go. Thanks for your contribution.

PaoloPia avatar Feb 13 '24 14:02 PaoloPia

Hi @mkm17 and @milanholemans, thanks. As the validation message explains, both the url property (https://pnp.github.io/cli-microsoft365/sample-scripts/spo/sp-add-ins-and-azure-acs-retirement-report) and the thumbnail URL (https://raw.githubusercontent.com/pnp/cli-microsoft365/main/docs/docs/sample-scripts/spo/sp-add-ins-and-azure-acs-retirement-report/assets/preview.png) provided in the sample.json file are not valid because they return a 404. Please, update them providing valid URLs and you should be good to go. Thanks for your contribution.

Hi @PaoloPia, thanks for the information. I understand that these URLs should work indeed. However, this is a new sample script. This means that the URLs will only work when this PR is merged.

milanholemans avatar Feb 13 '24 15:02 milanholemans

Shouldn't we run this action when building a new release, after we publish our docs?

milanholemans avatar Feb 13 '24 15:02 milanholemans

That's a good point @milanholemans. We're thinking about handling it slightly differently, providing the context of the PR to the backend validation API. In the meantime, if you are sure that the provided URLs will be good once merged, I think you can proceed with the merge. No need to wait. Thanks.

PaoloPia avatar Feb 13 '24 15:02 PaoloPia

Ready to merge 🚀 Correct the title before merging

Adam-it avatar Feb 29 '24 23:02 Adam-it

@Adam-it Thank you very much for the check!

mkm17 avatar Mar 02 '24 11:03 mkm17

Merged manually 👍 Awesome work 👏

Adam-it avatar Mar 11 '24 00:03 Adam-it