Skip to content

Removes deprecated SharePoint alert commands. Closes #6865 - #7562

Open
waldekmastykarz wants to merge 2 commits into
pnp:mainfrom
waldekmastykarz:waldekmastykarz-update-spo-site-alert-commands
Open

Removes deprecated SharePoint alert commands. Closes #6865#7562
waldekmastykarz wants to merge 2 commits into
pnp:mainfrom
waldekmastykarz:waldekmastykarz-update-spo-site-alert-commands

Conversation

@waldekmastykarz

Copy link
Copy Markdown
Member

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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@waldekmastykarz waldekmastykarz added the pr-major PR for the next major release label Sep 2, 2026
@MartinM85
MartinM85 requested a lite review from Copilot September 4, 2026 13:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 remove command 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.

Comment thread docs/docs/about/release-notes.mdx Outdated
Comment thread src/m365/spo/commands.ts
@MartinM85
MartinM85 marked this pull request as draft September 5, 2026 08:03
- 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>
@waldekmastykarz
waldekmastykarz marked this pull request as ready for review September 9, 2026 07:06
@MartinM85 MartinM85 self-assigned this Sep 10, 2026

@MartinM85 MartinM85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @waldekmastykarz 🚀. New release note is under the wrong section, but I will moved it during release notes update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-major PR for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update spo site alert commands

3 participants