Skip to content
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: [FC-0044] Unit page - Manage access modal (unit & xblocks) #901

Conversation

ihor-romaniuk
Copy link
Contributor

@ihor-romaniuk ihor-romaniuk commented Mar 14, 2024

Settings

EDX_PLATFORM_REPOSITORY: https://github.com/openedx/edx-platform.git
EDX_PLATFORM_VERSION: master

TUTOR_GROVE_WAFFLE_FLAGS:
  - name: contentstore.new_studio_mfe.use_new_unit_page
    everyone: true

TUTOR_GROVE_MFE_LMS_COMMON_SETTINGS: |
  MFE_CONFIG["ENABLE_UNIT_PAGE"] = True
  MFE_CONFIG["ENABLE_NEW_EDITOR_PAGES"] = True

Description

This pull request introduces a crucial feature to our platform: the ability to manage content visibility, specifically access rights, for both course units and course XBlocks. We empower educators to finely control access rights.

Reuse the ConfigureModal component for consistency across the application.

Issue: openedx/platform-roadmap#321

Depends on:

Design

https://www.figma.com/file/YeKFwSpyLaJFDs3f3p3TSa/Studio-1%3A1-mock-ups?node-id=599%3A23595

image

Testing instructions

  1. Run master devstack.
  2. Start platform make dev.up.lms+cms+frontend-app-course-authoring and make checkout on this branch.
  3. Enable new Unit page by adding a waffle flad contentstore.new_studio_mfe.use_new_unit_page in CMS admin panel.
  4. Go to Course Unit page from the Course Outline page.
  5. Make sure the course you are viewing is not outdated.
  6. Publish all sections on the Course Outline page.

@ihor-romaniuk ihor-romaniuk requested a review from a team as a code owner March 14, 2024 15:07
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Mar 14, 2024
@openedx-webhooks
Copy link

Thanks for the pull request, @ihor-romaniuk! 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:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

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.

@ihor-romaniuk ihor-romaniuk force-pushed the romaniuk/FC-0044/unit-page-unit-visibility branch from 77d3a17 to 9f3b527 Compare March 14, 2024 15:17
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 97.61905% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 91.98%. Comparing base (99a144a) to head (8e145d3).
Report is 8 commits behind head on master.

❗ Current head 8e145d3 differs from pull request most recent head df8f44f. Consider uploading reports for the commit df8f44f to get more accurate results

Files Patch % Lines
src/generic/configure-modal/UnitTab.jsx 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #901      +/-   ##
==========================================
- Coverage   92.00%   91.98%   -0.02%     
==========================================
  Files         612      574      -38     
  Lines       10746    10246     -500     
  Branches     2305     2234      -71     
==========================================
- Hits         9887     9425     -462     
+ Misses        830      794      -36     
+ Partials       29       27       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ihor-romaniuk ihor-romaniuk added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Mar 14, 2024
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@mphilbrick211 mphilbrick211 added the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Mar 15, 2024
@ihor-romaniuk ihor-romaniuk force-pushed the romaniuk/FC-0044/unit-page-unit-visibility branch from 9f3b527 to 294962b Compare March 18, 2024 15:27
@ihor-romaniuk
Copy link
Contributor Author

Hello @arbrandes @KristinAoki
This Pull Request was rebased on the master branch and ready for review.

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@ihor-romaniuk ihor-romaniuk force-pushed the romaniuk/FC-0044/unit-page-unit-visibility branch from 294962b to a5476d1 Compare March 19, 2024 07:51
@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

Copy link
Contributor

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, except possibly for one nit. Waiting for sandbox to deploy to actually test it.

src/constants.js Outdated
@@ -49,3 +49,10 @@ export const DECODED_ROUTES = {
'/container/:blockId',
],
};

export const COURSE_BLOCK_NAMES = /** @type {const} */ ({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const COURSE_BLOCK_NAMES = /** @type {const} */ ({
export const COURSE_BLOCK_NAMES = ({

I'm all for JSDoc, but I'm not sure I like having it sprinkled piecemeal in a file. If we go for it, we should do it for all instances. (At least on a per-file basis.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely agree with you.
JSDoc was deleted for this case and resolved conflicts.

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@ihor-romaniuk ihor-romaniuk force-pushed the romaniuk/FC-0044/unit-page-unit-visibility branch from a5476d1 to 394fcbd Compare March 19, 2024 18:01
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@mphilbrick211 mphilbrick211 removed the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Mar 20, 2024
@ihor-romaniuk ihor-romaniuk force-pushed the romaniuk/FC-0044/unit-page-unit-visibility branch 2 times, most recently from aa383fc to c5f3a76 Compare March 21, 2024 11:39
@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@ihor-romaniuk ihor-romaniuk force-pushed the romaniuk/FC-0044/unit-page-unit-visibility branch from c5f3a76 to 8e145d3 Compare April 3, 2024 08:43
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@ihor-romaniuk ihor-romaniuk force-pushed the romaniuk/FC-0044/unit-page-unit-visibility branch from 8e145d3 to 1d6fb7b Compare April 8, 2024 10:16
@ihor-romaniuk
Copy link
Contributor Author

Hello @arbrandes @KristinAoki
The Pull Request was updated on the master and ready for review.
Please take a look.

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

Copy link
Member

@KristinAoki KristinAoki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the message.js files that you moved, can you add descriptions to each of the messages?

Copy link
Contributor

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great in general, but it would be good to add message descriptions, where apropriate. When done, this is good to merge, so I'll approve preemptively.

@ihor-romaniuk
Copy link
Contributor Author

@KristinAoki @arbrandes All new messages were covered by descriptions and it's ready for the final check.

@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@GlugovGrGlib
Copy link
Member

@arbrandes This is ready to be merged!

@KristinAoki KristinAoki merged commit 6ec44b5 into openedx:master Apr 22, 2024
4 checks passed
@openedx-webhooks
Copy link

@ihor-romaniuk 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@ihor-romaniuk ihor-romaniuk deleted the romaniuk/FC-0044/unit-page-unit-visibility branch April 23, 2024 06:35
@PKulkoRaccoonGang PKulkoRaccoonGang added create-sandbox open-craft-grove should create a sandbox environment from this PR and removed create-sandbox open-craft-grove should create a sandbox environment from this PR labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-sandbox open-craft-grove should create a sandbox environment from this PR open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants