-
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
Add Waffle flags to roll out the extracted XBlocks #35549
base: master
Are you sure you want to change the base?
Conversation
cabc843
to
64cf575
Compare
4ed8c6d
to
34d042c
Compare
cca34ec
to
b2dcc10
Compare
833b935
to
9820dd6
Compare
9eb768c
to
84aba33
Compare
84aba33
to
73ddfa0
Compare
Sandbox deployment failed 💥 |
Sandbox deployment failed 💥 |
a2e4584
to
73ddfa0
Compare
Sandbox deployment failed 💥 |
681020d
to
6c91c56
Compare
Sandbox deployment successful 🚀 |
Sandbox deployment successful 🚀 |
59bb65f
to
9091992
Compare
@kdmccormick @openedx/axim-aximprovements @ttqureshi PR is available for code review
|
164ab17
to
55dbfb2
Compare
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!
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.
Thanks for converting the flags to toggles. Just a couple more comments from me.
@kdmccormick @feanil Please squash & merge in time slot, if all seems ok |
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.
It looks like you had to correct various tests because the __name__
of the class changed. Is the name of the class also going to show up in exports or other serializations? If so, we should not update the name here or update the __name__
back to preserve the name in serializations.
Thanks for sharing your extensive thoughts @feanil On my recent testing experience with some Problem XBlocks, their UI is disturbed, it's fine on master Let's figure out the ripples and have its testing |
This is a good thing to keep in mind when changing the names of any classes which are persisted to the DB. In this particular case, though, I think we are OK. As far as I know, there are no features that depend on the literal class name of the block. The names that are used in de/serialization are the tag name(s) ( Looking through the test cases which were updated, it seems that they were checking the class name rather than the class itself only because the class itself ( |
@farhan Taking a look at your screenshot, it seems that either some CSS or JS (or both) is missing. And if you are able to still submit the problem's answer successfully, then that would imply that the JS is present, and that only the CSS is missing. If you haven't already, try re-building static assets ( |
One fix you could try, related to @feanil 's comment earlier, would be setting _BuiltInProblemBlock.__name__ = "ProblemBlock" This essentially tells Python "From the perspective of the module, the class goes by one name (_BuiltInProblemBlock), but I want it to appear to other objects as if it has a different name (ProblemBlock)". |
@kdmccormick Thanks for sharing thoughts
Next:
|
Sounds good @farhan . You may already know this, but just in case: if you are running on |
I had tried |
37f3a0d
to
ee8a459
Compare
ee8a459
to
8d99d1b
Compare
This reverts commit 948922c.
PR is available for code review. I have reverted the test case fixing commit. |
Add Waffle flags to roll out the extracted XBlocks
Flags will use to toggle between the old and new block quickly
without putting course content or user state at risk.
Testing notes:
It requires to restart lms/cms to put the waffle flag into effect
Ticket: #35308
Waffle Flags
Following built in blocks wafffle flags are in action in this PR and has been implemented:
Current Status:
Next action items: