-
Notifications
You must be signed in to change notification settings - Fork 244
fix: Issue-1403. Course sidebar not showing sections on pending courses #1679
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
base: master
Are you sure you want to change the base?
fix: Issue-1403. Course sidebar not showing sections on pending courses #1679
Conversation
Thanks for the pull request, @wgu-jesse-stewart! 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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1679 +/- ##
=======================================
Coverage 90.20% 90.20%
=======================================
Files 343 343
Lines 5747 5749 +2
Branches 1381 1382 +1
=======================================
+ Hits 5184 5186 +2
+ Misses 546 544 -2
- Partials 17 19 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi @wgu-jesse-stewart - I'm not a frontend engineer so I'm not the person to request for review. Generally reviews can take a bit of time, and we're under pressure for the Teak cut next Thursday so people may be short on time right now. |
Also could you add a test for this change so that future changes don't revert the fix? |
I will look at the existing tests and see if they can be expanded. Right now we see 100% coverage, but we could possibly find a way to test for this specifically. |
This is ready for review |
@wgu-jesse-stewart, thank you for this contribution! Since it's a user-facing change, it will need to go through product review as a first step. Please have a look at the instructions from the bot to get that process started. |
I reviewed my own code and decided a more straightforward approach would be create a new method for resolvedSectionId. const resolvedSectionId = |
@wgu-jesse-stewart - Happy to take a look/review if and when you get a moment to throw a screen recording of the fix on there for me. Thank you for taking on this bug fix! |
Fixes #1403
Description
When
Course Schedule > Course start date
is set to a future date or whenCourse Requirements > Prerequisite course
is set the Course outline is now shown on the front-end.Expected behavior:

Actual behavior:

Cause
isDisplaySequenceLevel is default to
true
when the page loads which prevents the UI from displaying the sectionsIds list. I don't believe this is the desired behavior because const sequenceIds = sections[selectedSection || activeSectionId]?.sequenceIds || [] will always be an empty array because selectedSection || activeSectionId are not set unless the course has been started.if we set the default value for isDisplaySequenceLevel to false, then the sectionsIds will display as expected. However, we need to be sure to set setDisplaySequenceLevel() if sequenceIds are available. This will ensure users that have started the course are given the correct navigation items.
Test coverage did not change.
