-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Decouple XModule styles from LMS/Studio styles (attempt 3) #32237
Decouple XModule styles from LMS/Studio styles (attempt 3) #32237
Conversation
Thanks for the pull request, @andrey-canon! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
This basically changes how the xmodule static files are generated and consumed in order to separate the Xblock styles from general style files. Addressing the issue openedx#31624
1c6ad4c
to
b9417ec
Compare
@kdmccormick :) |
Thanks @andrey-canon . Let me make sure I understand this correctly. from Slack:
So, the base
I don't think I completely follow this, a couple more questions:
|
the edx.org-next build worked previous to my changes because the xmodule-styles were compiled inside the context of build-course, I will try to clarify this with the whole flow, but I will focus just in one file not the whole compilation when someone runs the command
So these decouple changes move the xmodule styles to its own files, that means that the styles won't be compiled inside lms-course.scss instead of that we will have a new main file for each xblock in this list, so each xblock will run independently therefore we have to ensure that every file has the whole context Short answer is: that worked because the xmodule styles where compiled after the step 3 base/build
Nop, probably in another context but here I just want to preserve the current styles but in a different files, so if pink is defined by
it's the same
bootstrap/variables completely overrides the content that is present in both, if there are a variable called |
I think that makes sense @andrey-canon . Just to make sure I understand correctly, I've tried to summarize. Let me know if I am mistaken.
|
@kdmccormick that's right |
Great! I'm testing it out manually now. Assuming all goes well, I'll merge tomorrow morning. |
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.
Tested it with edx.org-next and labxchange themes, looks good 👍🏻
@andrey-canon 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
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. |
1 similar comment
EdX Release Notice: This PR has been deployed to the production environment. |
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. |
1 similar comment
EdX Release Notice: This PR has been deployed to the production environment. |
@kdmccormick @andrey-canon Looks like devstack(lms+studio) is broken due to this change. Any idea how can this be fixed without spinning up a new devstack? |
@muhammad-ammar Others have ben able to fix this with:
Let us know if that doesn't resolve the issue. |
Description
Addressing this issue #31624
This PR is the third attempt of this #32018 but this now include some fixes to make this compatible with custom comprehensive themes
Testing instructions
docker exec -it tutor_nightly_dev-lms-1 /bin/bash
openedx-assets xmodule
and check the generation partopenedx-assets common
and check the compilation partFor theme testing (Using tutor)
/end/build/openedx/themes
tutor dev start
[--mount=./some path if you want to set a edx-platform volume
] and waitdocker exec -it tutor_nightly_dev-lms-1 /bin/bash
openedx-assets themes --theme-dirs /openedx/themes /openedx/themes/parent-folder-of -your-theme --themes name-of-your-theme