-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix: [FC-0044] Course unit - Replaced the LMS endpoints #882
fix: [FC-0044] Course unit - Replaced the LMS endpoints #882
Conversation
Thanks for the pull request, @PKulkoRaccoonGang! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #882 +/- ##
==========================================
+ Coverage 90.64% 91.19% +0.54%
==========================================
Files 578 578
Lines 10037 9913 -124
Branches 2142 2122 -20
==========================================
- Hits 9098 9040 -58
+ Misses 899 839 -60
+ Partials 40 34 -6 ☔ View full report in Codecov by Sentry. |
Sandbox deployment successful 🚀 |
fix: [AXIMST-424] Course unit - Fixed network connection behavior (#138) * fix: [AXIMST-424] fixed network connetcion behavior * fix: added placeholder for unsuccessful loading for the page * refactor: code refactoring
713ca4b
to
e396b1c
Compare
Sandbox deployment successful 🚀 |
Sandbox deployment successful 🚀 |
Sandbox deployment successful 🚀 |
This PR seems to depend on openedx/edx-platform#34055 and openedx/edx-platform#34337 , so I don't think it should be merged until those ones are merged. Also, the error handling is not great; when I didn't have those PRs checked out, I just see something like this: Instead of "Error loading navigation" or "Error loading components" or something. |
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.
@PKulkoRaccoonGang, in the future, please make an explicit note in the description when the PR depends on another one being merged first. That way we avoid merging broken stuff accidentally.
It might also make sense to always have such PRs be drafts. Let's discuss this further.
Also, what @bradenmacdonald said. We probably need to improve the error handling.
@arbrandes The current PR is independent and does not depend on other open PRs. |
@arbrandes @bradenmacdonald thanks 👍
Yes, it would be great to handle errors that may occur and show a user-friendly message. We discussed this with the team today and propose to do this later in a separate PR. |
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 love PRs that remove more code than they add. Nice, approved! I do have one question below, though it's not blocking.
courseExitPageIsActive: data.course_exit_page_is_active, | ||
certificateData: camelCaseObject(data.certificate_data), | ||
entranceExamData: camelCaseObject(data.entrance_exam_data), | ||
timeOffsetMillis: getTimeOffsetMillis(headers && headers.date, requestTime, responseTime), |
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.
Just curious: what did we need this for, before?
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.
Previously, we transferred functionality from MFE Learning, so the data received from the LMS endpoint is formatted there. We decided not to refactor the code that was awaiting replacement and after switching to Studio endpoints, delete it.
@PKulkoRaccoonGang 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Settings
Description
This PR is the final stage in the process of replacing the LMS of endpoints for navigation on the units of the course.
The primary features were implemented:
Issue: openedx/platform-roadmap#321
Developer notes
Testing instructions
contentstore.new_studio_mfe.use_new_unit_page
in the CMS admin panel.ENABLE_UNIT_PAGE=true
is enabled.Screen.Recording.2024-03-10.at.17.21.22.mov