openedx / openedx/openedx-platform

Fix: runtime.user_id is deprecated. Use block.scope_ids.user_id or the user service instead.

Open
#33,587 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

This warning is appearing during provisioning. It clutters logs and hinders dev experience (https://github.com/openedx/edx-platform/issues/32888).

The warning is logged here: https://github.com/openedx/edx-platform/blob/355779983ee2be08358e6ca258e35013680df44a/xmodule/x_module.py#L1073

AC

  • The warnings stop cluttering logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at xmodule/x_module.py line 1073, where the warning is logged, and review the related context and issue 32888. Confirm the provisioning path that triggers it and determine how the deprecated runtime.user_id warning is produced. Done means provisioning no longer emits these warnings and logs are no longer cluttered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.