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: hide studio button for limited staff [BB-9082] #1436

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0x29a
Copy link
Contributor

@0x29a 0x29a commented Aug 14, 2024

Description

Partially addresses openedx/platform-roadmap#361 issue, by implementing the second suggestion from here:

Limited Staff should not see the button to "view this course in Studio" from the LMS. This will reduce chances for Limited Staff to land on Studio pages.

This fix relies on openedx/edx-platform#35313.

Testing

  1. Create two users, [email protected] and [email protected].
  2. In the instructor's dashboard, assign [email protected] user to the staff course access role, and [email protected] to the limited staff course access role.
  3. Verify that the limited staff user doesn't see "View in Studio" button. Cycle through different roles in "View this course as:" dropdown and verify that none can see this button.
  4. The same as №3, but staff user should see this button always.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Aug 14, 2024
@openedx-webhooks
Copy link

Thanks for the pull request, @0x29a!

What's next?

Please work through the following steps to get your changes ready for engineering review:

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.

🔘 Provide context

To 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:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads

🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

🔘 Let us know that your PR is ready for review:

Who will review my changes?

This repository is currently maintained by @openedx/committers-frontend-app-learning. Tag them in a comment and let them know that your changes are ready for review.

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:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@0x29a 0x29a force-pushed the 0x29a/BB-9082/hide-studio-button-for-limited-staff branch 4 times, most recently from 394b9e0 to 9f2014f Compare August 15, 2024 12:59
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.77%. Comparing base (7cbbc72) to head (c3cd7da).
Report is 43 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1436      +/-   ##
==========================================
+ Coverage   87.70%   87.77%   +0.07%     
==========================================
  Files         307      310       +3     
  Lines        5288     5319      +31     
  Branches     1311     1315       +4     
==========================================
+ Hits         4638     4669      +31     
  Misses        633      633              
  Partials       17       17              

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

Copy link
Contributor

@kaustavb12 kaustavb12 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

  • I tested this: Tested in local devstack
  • I read through the code

@itsjeyd itsjeyd added the product review PR requires product review before merging label Sep 7, 2024
@itsjeyd
Copy link

itsjeyd commented Sep 7, 2024

OSPR management note: User-facing change, so will likely need product approval before we can move forward with engineering review and merge.

Marking as blocked for now.

CC @openedx/committers-frontend-app-learning

0x29a added a commit to open-craft/frontend-app-learning that referenced this pull request Sep 9, 2024
0x29a added a commit to open-craft/frontend-app-learning that referenced this pull request Sep 9, 2024
0x29a added a commit to open-craft/frontend-app-learning that referenced this pull request Sep 9, 2024
kaustavb12 pushed a commit to open-craft/frontend-app-learning that referenced this pull request Sep 10, 2024
@itsjeyd
Copy link

itsjeyd commented Oct 11, 2024

@0x29a It looks like the conversation about how to proceed with this PR and openedx/edx-platform#35313 stalled, so I went ahead and brought it up in the #wg-product-core channel on the Open edX Slack. Could you please watch that thread and follow up as necessary?

CC @openedx/committers-frontend-app-learning @mphilbrick211

@itsjeyd itsjeyd added the product review complete PR has gone through product review label Oct 24, 2024
@itsjeyd
Copy link

itsjeyd commented Oct 24, 2024

OSPR management note: Product review complete, see openedx/platform-roadmap#361 (comment).

@itsjeyd itsjeyd added the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Oct 24, 2024
@itsjeyd itsjeyd requested a review from a team October 24, 2024 08:44
@itsjeyd
Copy link

itsjeyd commented Oct 24, 2024

@openedx/committers-frontend-app-learning This is ready for engineering review. Since it relies on openedx/edx-platform#35313 it would be great if you could have a look at that PR as well.

@farhaanbukhsh farhaanbukhsh self-requested a review October 28, 2024 10:29
@farhaanbukhsh
Copy link
Member

@itsjeyd I will review this PR :)

@itsjeyd
Copy link

itsjeyd commented Oct 29, 2024

Thanks @farhaanbukhsh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U product review complete PR has gone through product review product review PR requires product review before merging waiting for eng review PR is ready for review. Review and merge it, or suggest changes.
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

5 participants