-
Notifications
You must be signed in to change notification settings - Fork 4k
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: add share link button when hide from toc is enabled in sections #34043
feat: add share link button when hide from toc is enabled in sections #34043
Conversation
Thanks for the pull request, @BryanttV! 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. |
35b6496
to
ffeb351
Compare
cms/djangoapps/contentstore/xblock_storage_handlers/view_handlers.py
Outdated
Show resolved
Hide resolved
0d8ee55
to
a2c07c2
Compare
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.
This is working as expected! Thank you.
You have to address one last comment I left. Thanks again!
855a2db
to
bb606e6
Compare
c64f1be
to
ed0e707
Compare
967fde4
to
9a97386
Compare
fb794a4
to
3203030
Compare
render: function() { | ||
var xblockInfo = this.model; | ||
var isTimeLimited = xblockInfo.get('is_time_limited'); | ||
var isProctoredExam = xblockInfo.get('is_proctored_exam'); | ||
var isPracticeExam = xblockInfo.get('is_practice_exam'); | ||
var isOnboardingExam = xblockInfo.get('is_onboarding_exam'); | ||
var enableHideFromTOCUI = xblockInfo.get('enable_hide_from_toc_ui'); |
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.
This would be better with isEnableHideFromTOCUI
but I understand you will have to change enable_hide_from_toc_ui
to is_enable_hide_from_toc_ui
so is just a minor suggestion
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.
Yes, this field was included in the dependency PR. I'll leave the name as it is so as not to affect any other PR related to the functionality.
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.
This is working as it was described in the cover letter. Thank you! I'll approve this PR, although it's blocked by #33952
Also, remember to address @johnvente's comments! Thank you
Hi @johnvente, I addressed your comments, can you check again? thanks! |
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.
LGTM!
Adds a new button in the child subsections of sections with Hide From TOC enabled. This button displays a new modal with two tabs. The first tab displays a button that allows you to copy the link of that subsection to the clipboard. The second tab displays a button that allows you to copy the embedded link of the same subsection to the clipboard. Ref: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/3853975595/Feature+Enhancement+Proposal+Hide+Sections+from+course+outline
3203030
to
1742431
Compare
@BryanttV 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
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. |
Description
This PR adds a new button in the child subsections of sections with Hide From TOC enabled. This button displays a new modal with two tabs. The first tab displays a button that allows you to copy the link of that subsection to the clipboard. The second tab displays a button that allows you to copy the embedded link of the same subsection to the clipboard.
In this way, instructors will be able to pass the link to their students so that they can access the subsections that are hidden from the interface.
Supporting information
These changes are part of the effort made to implement Feature Enhancement Proposal: Hide Sections from Course Outline
Dependencies
Important
This PR needs the changes made from this PR, which includes the new section visibility option from Studio UI.
Testing instructions
edx-platform
withtutor mounts add <path/to/edx-platform>
git checkout bav/add-share-link-button
git rebase MJG/configurable-hide-from-toc
and resolves conflicts by accepting both changes.FEATURES["ENABLE_HIDE_FROM_TOC_UI"] = True
tutor dev exec lms openedx-assets build --env=dev
to regenerate the assets.hft-share-link-demo.mp4
Deadline
This effort is part of the Spanish consortium project, so it'd be ideal to merge this before the end of the project.