-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: make xmodule & openedx independent of code in cms #27874
Conversation
jenkins runs python |
jenkins run python |
44c54cd
to
53b5cf8
Compare
This is a minor refactoring in order to remove a code dependency of ./opendedx on ./cms
This is a minor refactoring in order to remove a code dependency of ./xmodule on ./cms
This is a minor refactoring in order to remove a code dependency of ./xmodule on ./cms
53b5cf8
to
7a26ec6
Compare
Your PR has finished running tests. There were no failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. 👍
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
EdX Release Notice: This PR has been deployed to the production environment. |
Description
In BOM-2576 (see draft PR), we will begin constraining imports in edx-platform. Two such constraints will be:
./common/lib/xmodule/xmodule
may not import from./cms
../openedx
may not import from./cms
.This PR makes three small refactorings (separated by commit) that make the above constraints true.
Why?
The
xmodule
andopenedx
packages both contain code that is common between LMS and CMS. Thecms
package is, of course, contains CMS-specific code.So, one prerequisite to extracting CMS into an independent service will be making sure that
lms
,common
,openedx
, and the projects in common/lib (xmodule
,capa
, etc.) are not coupled to any CMS-specific features.Testing instructions
None
Deadline
None