-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix: Added xblock skill tag verification waffle switch #33399
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@irfanuddinahmad: Why is the execution of the
VerticalBlockChildRenderStartedandVerticalBlockRenderCompletedfilters now gated behindXBLOCK_SKILL_TAG_VERIFICATION_SWITCH? The filters are supposed to be a general extension mechanism for people to override unit rendering behavior, and is not specific to one feature.@tecoholic: As the original author that added the filters, please let me know if I'm reading this wrong.
FYI @nsprenkle, since this is an extension point you may want to use.
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.
Also FYI to @mariajgrimaldi ^
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.
@ormsbee Yes.
VerticalBlockChildRenderStartedandVerticalBlockRenderCompletedare in fact meant to be generic filters. For eg., we use it in a course to automatically inject content like hyper-links to edit OLX source material stored in a Git repo like Gitlab/Github.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.
@irfanuddinahmad: Also, when you're making a change like this, please put the reason why this change was done in the commit message. I'm assuming this was in response to some bug that was found, but I can't access that JIRA ticket to find out what it is or why it broke.
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.
@ormsbee ENT-7614 was in response to a downtime in Discovery and LMS due to delayed response originating from the XBlockSkillsAPI list endpoint that is responsible for gathering any skills linked to an xblock. This switch was added to quickly turn the feature on/off.
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.
@irfanuddinahmad: Thank you for the quick response. I think I understand what happened now.
This needs to get reverted. If 2U needs to be able to toggle off a plugin to make things more operationally robust, then the toggle and the conditional code should go inside that plugin. We absolutely cannot have this switch disable the entire filter pipelines that the plugin uses, since that will break everyone else who uses these extension points. The fact that this regression is hidden because the tests for it were altered to run with that switch enabled is also not an acceptable solution, since most people won't be running their instances that way.
This change made it into the Quince release. Per the release schedule, the next patch to Quince will be released on 2024-04-09.
Please have these changes reverted in master and back-ported into quince.master by 2024-04-02.
I want to give you folks the time to make a smooth transition here, but this is a breaking bug in Quince, and we need to get it patched.
Please reach out to me if you have any questions or concerns.
FYI @georgebabey: I'm making a request of your team here ⬆️.
Thanks folks.
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.
@ormsbee Here are the two PRs
#34348
#34347