-
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
feat: Added XblockMixin for skill tagging #34130
Conversation
8d3e64a
to
0b7e273
Compare
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
Hey @irfanuddinahmad @saleem-latif , we'll need to revert this PR on April 29th (before the Redwood cut) because it adds non-core package reference to the core settings file: #34530 . To ensure that the revert has no impact on your prod environment, you can apply this same change to your private LMS settings file. |
@kdmccormick Can you please elaborate what do you mean by |
@muhammad-ammar By "private settings file" I mean a 2U-internal django settings module, which your production envs would point at by setting DJANGO_SETTINGS_MODULE. If the value of that is just |
@muhammad-ammar Sorry, I was confused, you don't need a private settings module to fix this! This can be done right in your internal XBLOCK_EXTRA_MIXINS:
- skill_tagging.skill_tagging_mixin.SkillTaggingMixin When your YAML is loaded into lms/envs/production.py, it will override the XBLOCK_EXTRA_MIXINS setting, which will get appended to XBLOCK_MIXINS: https://github.com/openedx/edx-platform/blob/master/lms/envs/production.py#L1094 |
@kdmccormick The above solution causes a import error for skill_tagging
|
@irfanuddinahmad , that's because NamedAttributesMixin was deprecated and removed in XBlock 3.0. The same ImportError must be happing in 2U production right now, but silenced due to the |
@kdmccormick the new version of skill tagging is working fine with the current XBLOCK_MIXINS in common.py |
Description
This PR adds a Xblock Mixin for verifying the skill tags associated with Xblocks. The Mixin class resides here.
Other information
The setting was previously reverted due to high number of LMS -> Discovery service calls. A probabilistic throttle has been added to reduce the calls frequency. A django Waffle switch has been added to quickly respond to any anomalous events.