-
Notifications
You must be signed in to change notification settings - Fork 95
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
refactor: remove references of ENABLE_HOME_PAGE_COURSE_API_V2 #1611
base: master
Are you sure you want to change the base?
Conversation
Thanks for the pull request, @bra-i-am! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
994e1b6
to
eb6203a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1611 +/- ##
========================================
Coverage 93.30% 93.30%
========================================
Files 1101 1100 -1
Lines 21856 21821 -35
Branches 4741 4624 -117
========================================
- Hits 20393 20361 -32
- Misses 1392 1395 +3
+ Partials 71 65 -6 ☔ View full report in Codecov by Sentry. |
95ebf9d
to
dfabaab
Compare
* fix: infinite requests when clearing filters * fix: some requests were being duplicated when changing filters
82b976e
to
c6b6c64
Compare
@bradenmacdonald: Can you help us review this PR which is part of the openedx/public-engineering#287 deprecation effort? Thank you! |
Hmm, I don't think I'll be able to answer these questions. Maybe @jristau1984 or @KristinAoki can answer? |
I think the ProcessingCourses component work should be moved to another PR. I have only seen it one time when a course creation job was hung. I am unable to say if it should be skipped or not. If you want to see the feature, you can manually force a course be in-progress by hard-coding the status. |
Description
This PR primarily aims to eliminate references to ENABLE_HOME_PAGE_COURSE_API_V2: it intends to use that API, enabling the pagination and the course filters by default without needing the flag. Moreover, it also solves some issues related to the requests to the API that make the UI blink or request more times than required.
Supporting information
https://github.com/eduNEXT/consulting-issues-mapping/issues/118
Side effects (pls help :D)
Archived Courses Tab
has been removed as it is no longer necessary because it relied on the previously used attributearchived_courses
, which is no longer in use. With the implementation of the courses API v2, courses are marked as archived when theisActive
attribute of the retrieved courses istrue
, as reviewed through the new filters.isEnablePagination
isfalse
. Since it cannot currently function this way, I assume this feature should be dropped. I wasn't able to make this work without hardcoding (I’m not sure if I'm doing something wrong or if the feature is not functioning). However, based on my review of the code, when a course is executed for re-run, it should transition to a in_process state, which I believe represents a background task, and this is indicated on the front end through the ProcessingCourses component. I’m unclear whether the element should be rendered or not with the new features (I didn't quite understand it), but currently, when the re-run is initiated, the user is redirected to a new route with its own loader button indicating the action being processed. Do you happen to know if this feature should be skipped or how I can get this to work for testing? Should we work this on another PR?Testing instructions
Mount this MFE on this specific branch in a Sumac/Nightly environment
Be sure you count with many courses (11 makes to appear the pagination component)
You should watch by default the search bar and filters without adding any env variable
Open the inspect and go to the Network tab, every time you change the search bar input or change any filter, you should see only one endpoint call is made