Skip to content

feat: enable edxnotes by default and add OAuth client fixture for tests#388

Merged
alenkadev merged 4 commits into
release-ulmofrom
alenka/turn-on-notes
Jul 24, 2026
Merged

feat: enable edxnotes by default and add OAuth client fixture for tests#388
alenkadev merged 4 commits into
release-ulmofrom
alenka/turn-on-notes

Conversation

@alenkadev

@alenkadev alenkadev commented Jul 16, 2026

Copy link
Copy Markdown

PR Description
Summary

Enables the Student Notes feature by default for all courses by changing InheritanceMixin.edxnotes default from False to True, so courses no longer require manual opt-in via Advanced Settings when the platform-level ENABLE_EDXNOTES flag is on.

Jira: LP-952: turn Notes on by default](https://2u-internal.atlassian.net/browse/LP-952)

Copilot AI review requested due to automatic review settings July 16, 2026 11:20

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 turns Student Notes (edxnotes) on by default at the course-field level (while still gated by the platform-level FEATURES['ENABLE_EDXNOTES'] flag), and updates test infrastructure so the edxnotes decorator can run safely in the test environment.

Changes:

  • Changed InheritanceMixin.edxnotes default from False to True, enabling Notes by default for courses that don’t explicitly override the field.
  • Added an autouse pytest fixture to ensure the edx-notes OAuth2 Application exists in DB-backed Django unittest-style tests when ENABLE_EDXNOTES is enabled.
  • Patched/updated a handful of tests to explicitly disable/enable ENABLE_EDXNOTES as needed for mock runtime limitations and updated expectations.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
xmodule/modulestore/inheritance.py Enables edxnotes by default via course-field default change.
conftest.py Adds an autouse fixture to create the edx-notes OAuth2 client in tests when needed.
xmodule/tests/test_split_test_block.py Disables ENABLE_EDXNOTES for split test classes to avoid mock runtime rendering issues.
openedx/core/djangoapps/course_apps/tests/test_notes_app.py Updates test expectations to match “enabled by default” behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread conftest.py Outdated
Comment thread conftest.py Outdated
Comment thread conftest.py Outdated
Comment thread openedx/core/djangoapps/course_apps/tests/test_notes_app.py
Comment thread xmodule/modulestore/inheritance.py
Copilot AI review requested due to automatic review settings July 17, 2026 07:07
@alenkadev
alenkadev force-pushed the alenka/turn-on-notes branch from efdda41 to 3a554f8 Compare July 17, 2026 07:07

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread openedx/core/djangoapps/course_apps/tests/test_notes_app.py Outdated
Comment thread lms/djangoapps/edxnotes/decorators.py Outdated
Copilot AI review requested due to automatic review settings July 17, 2026 07:19
@alenkadev
alenkadev force-pushed the alenka/turn-on-notes branch from 3a554f8 to 45940a9 Compare July 17, 2026 07:19

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment thread lms/djangoapps/edxnotes/decorators.py Outdated
Comment thread conftest.py
Comment thread lms/djangoapps/edxnotes/decorators.py Outdated
Copilot AI review requested due to automatic review settings July 21, 2026 10:02
@alenkadev
alenkadev force-pushed the alenka/turn-on-notes branch from 45940a9 to d3de2db Compare July 21, 2026 10:02

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread conftest.py
Comment thread conftest.py
Copilot AI review requested due to automatic review settings July 21, 2026 10:18

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread lms/djangoapps/edxnotes/decorators.py Outdated
@alenkadev
alenkadev merged commit 8b51657 into release-ulmo Jul 24, 2026
64 checks passed
@alenkadev
alenkadev deleted the alenka/turn-on-notes branch July 24, 2026 11:04
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.

3 participants