Skip to content

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

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

Remove ungated update_groups_cache() call in upgrade script#3393
Lai Wei (weilai-irl) wants to merge 1 commit into
MOODLE_405_STABLEfrom
wip-135867-m405

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

Removes an unconditional Microsoft Graph groups-cache warm-up during the plugin upgrade step that creates local_o365_groups_cache, avoiding potentially slow tenant-wide API syncing at upgrade time.

Changes:

  • Removes the ungated update_groups_cache() invocation (and its Graph client setup) from the 2023100901 upgrade step.
  • Adds explanatory inline comments 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