Skip to content

Remove ungated update_groups_cache() call in upgrade script - #3394

Open
Lai Wei (weilai-irl) wants to merge 1 commit into
MOODLE_500_STABLEfrom
wip-135867-m500
Open

Remove ungated update_groups_cache() call in upgrade script#3394
Lai Wei (weilai-irl) wants to merge 1 commit into
MOODLE_500_STABLEfrom
wip-135867-m500

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings August 12, 2026 09:59
@weilai-irl Lai Wei (weilai-irl) self-assigned this Aug 12, 2026
@weilai-irl Lai Wei (weilai-irl) added this to the 2026-03 milestone Aug 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR removes an unconditional Microsoft Graph groups-cache warm-up from the local_o365 upgrade path to avoid triggering a potentially slow, tenant-wide Graph sync during plugin upgrades (especially when the relevant sync features are not enabled/configured).

Changes:

  • Removes the upgrade-time call to utils::update_groups_cache() (and its Graph client setup/exception handling).
  • Drops the now-unused local_o365\feature\cohortsync\main import.
  • Adds an explanatory inline comment documenting why the cache is not warmed during upgrade.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

O365 Call Teams Course synchronisation in upgrade event if course sync is disabled

2 participants