-
Notifications
You must be signed in to change notification settings - Fork 15
-
Notifications
You must be signed in to change notification settings - Fork 15
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
[TC_LEARNER_39] Notes failed to load by default #227
Comments
Hi @cmltaWt0, thanks for the report. According to my investigations, this is a problem related to a discrepancy between the management of the notes in the MFE and the Iframe serving an xblock unit content. How it's decided if the student notes must be rendered when a courseware unit page is loaded? As I already mentioned, the unit content is loaded through an Iframe, for instance, the content here uses the Iframe loaded from here There's a decorator in https://github.com/openedx/edx-platform/blob/open-release/olive.master/lms/djangoapps/edxnotes/decorators.py which determines if the edxnotes visibility is enabled or not (check the specific line) and based on that value, notes are rendered on the page or not. This visibility value depends on a student preference stored in the table courseware_xmodulestudentinfofield. The preference name is "edxnotes_visibility". If the preference is not present for the currently logged-in user, the notes visibility is enabled by default. How the frontend-app-learning MFE determines if the notes are visible or not? The MFE does not determine if the notes should be highlighted the first time a unit page is loaded, however, it stores the notes visibility value, which is taken from a call to the courseware API (https://github.com/openedx/frontend-app-learning/blob/open-release/olive.master/src/courseware/data/api.js#L128). This API returns the values for notes in the format below:
And this API always returns the How to resolve the problem For me, the solution is to fix the MFE so it gets the notes visibility value properly, taking into account the edxnotes_visibility user preference. I'm not sure how to proceed in this case, for now, I'll open an issue directly in the frontend-app-learning MFE repo. Additional notes
|
Thank you for this great analysis Jhony.
So if I understand you correctly, the bug comes from the LMS which does not send the right reply to the API call? |
@regisb for me it seems that way. When you call the LMS API (for instance https://olive.demo.overhang.io/api/courseware/course/course-v1:edX+DemoX+Demo_Course) you'll always get notes visibility in |
label: olive testing |
I decided to publish this issue in the frontend-app-learning repo, I consider the problem resides there, even when the solution could involve a change in edx-platform repo. |
@arbrandes, do we have any news from the Frontend WG regarding this issue? |
@jalondonot, no news: noboby's picked the issue to work on, yet. |
I don't know if this is a high-priority task, @arbrandes. What do you think? should we highlight this issue in the FWG to encourage someone to pick it up and start working on it? |
@jalondonot I don't think at all it's a high-priority issue. This is a legacy issue coming from Nutmeg and last time I checked, it was also present in edx.org (the impact on the platform functionality is low). That said, we can validate if the issue is still happening, and as you suggest, add it to the FWG backlog to be taken and fixed in the next couple of months, preferably before Palma's cutoff. @arbrandes would you agree with this approach? |
Totally on board, though I couldn't guarantee this would actually be picked up by Palm. I could slap a "Palm.1" milestone on it, though, which would automatically make it higher priority. |
Notes failed to load by default.
Steps:
Status: FAILED
Important notes:
Hide Notes
and thanShow notes
again (literally reboot the PC and try it again)Links
The text was updated successfully, but these errors were encountered: