Removes deprecated SharePoint alert commands. Closes #6865 - #7562
Removes deprecated SharePoint alert commands. Closes #6865#7562waldekmastykarz wants to merge 2 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The clim365 Copilot skill command index still references the removed commands and the new release note entry should reflect the removal of the dependent sample script as described in the PR.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR removes deprecated SharePoint Online list alerts commands (and their aliases) that rely on a retired SharePoint API, along with their documentation and the dependent tenant-wide alert inventory sample script.
Changes:
- Removed
spo web rule list/spo web rule removecommand implementations and their unit tests. - Removed the related command registrations/aliases and documentation navigation entries.
- Removed the tenant alert inventory sample script and updated release notes to reflect the deprecation/removal.
File summaries
| File | Description |
|---|---|
| src/m365/spo/commands/web/web-rule-remove.ts | Deleted the deprecated “remove list alert” command implementation. |
| src/m365/spo/commands/web/web-rule-remove.spec.ts | Deleted tests for the removed command. |
| src/m365/spo/commands/web/web-rule-list.ts | Deleted the deprecated “list alerts” command implementation. |
| src/m365/spo/commands/web/web-rule-list.spec.ts | Deleted tests for the removed command. |
| src/m365/spo/commands.ts | Removed command identifiers for the deprecated alert/rule commands. |
| src/index.spec.ts | Removed removed-command aliases from the lazy-loading alias exception list. |
| docs/src/config/sidebars.ts | Removed command reference pages from the docs sidebar. |
| docs/docs/sample-scripts/spo/list-tenant-alert-usage/index.mdx | Deleted the retired-API dependent sample script documentation page. |
| docs/docs/sample-scripts/spo/list-tenant-alert-usage/assets/sample.json | Deleted the sample metadata file for the removed script. |
| docs/docs/cmd/spo/web/web-rule-remove.mdx | Deleted the removed command reference page. |
| docs/docs/cmd/spo/web/web-rule-list.mdx | Deleted the removed command reference page. |
| docs/docs/about/release-notes.mdx | Added a release note entry for the command removals (with a small completeness tweak suggested). |
Review details
- Files reviewed: 12/13 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Mentions removal of tenant alert inventory sample script in release notes - Removes spo web alert list/remove from clim365 skill command index Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
MartinM85
left a comment
There was a problem hiding this comment.
Great work @waldekmastykarz 🚀. New release note is under the wrong section, but I will moved it during release notes update.
Closes #6865
Removes the obsolete SharePoint alert list and remove commands, their aliases and documentation, and the tenant alert inventory sample that depended on the retired API.