-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix: the get_completion JS handler should not ignore FBE blocks #27422
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,7 +78,7 @@ | |
| } | ||
|
|
||
| try { | ||
| module = new window[moduleType](element); | ||
| module = new window[moduleType](element, runtime); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mikix @MatthewPiatetsky This seems to have caused a regression for the Conditional Block. After cherry-picking it, the See https://openedx.atlassian.net/browse/TNL-8318 for details.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah geeze sorry - let me work on a fix.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PR for fix: https://github.com/edx/edx-platform/pull/27625 (needs some more local testing, but I think that's the idea)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! 🙂 |
||
|
|
||
| if ($(element).hasClass('xmodule_edit')) { | ||
| $(document).trigger('XModule.loaded.edit', [element, module]); | ||
|
|
||
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.
I think this is a part I don't have a great understanding of. The runtime already has a method defined to handle this? I don't see any other changes related.
Uh oh!
There was an error while loading. Please reload this page.
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.
I don't fully understand this concept of a runtime either. It's a versioned JS specific runtime that only seems to have this method?
But it's how the rest of the modern xblock JS code gets handler URLs.
https://github.com/edx/edx-platform/blob/master/lms/static/lms/js/xblock/lms.runtime.v1.js#L32