Skip to content

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

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

Remove ungated update_groups_cache() call in upgrade script#3396
Lai Wei (weilai-irl) wants to merge 1 commit into
MOODLE_502_STABLEfrom
wip-135867-m502

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings August 12, 2026 10:01
@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

Removes an unconditional Microsoft Graph “groups cache warm-up” from the local_o365 plugin upgrade path to avoid triggering a potentially slow, tenant-wide sync during upgrade runs (especially when coursesync/cohortsync features are not enabled).

Changes:

  • Removes the ungated utils::update_groups_cache() call (and its dependency import) from the upgrade step that creates local_o365_groups_cache.
  • Replaces the warm-up logic with an explanatory comment noting the cache is populated by scheduled tasks.

💡 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