-
Notifications
You must be signed in to change notification settings - Fork 211
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
feat: hide studio button for limited staff [BB-9082] #1436
Conversation
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 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. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by 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. |
394b9e0
to
9f2014f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
9f2014f
to
c3cd7da
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.
LGTM 👍
- I tested this: Tested in local devstack
- I read through the code
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 |
(cherry picked from openedx#1436)
(cherry picked from openedx#1436)
(cherry picked from openedx#1436)
(cherry picked from openedx#1436)
@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 CC @openedx/committers-frontend-app-learning @mphilbrick211 |
OSPR management note: Product review complete, see openedx/platform-roadmap#361 (comment). |
@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. |
@itsjeyd I will review this PR :) |
Thanks @farhaanbukhsh! |
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.
@0x29a is a small nitpick but once we fix this we are good to go.
src/tab-page/LoadedTabPage.jsx
Outdated
@@ -58,6 +59,7 @@ const LoadedTabPage = ({ | |||
courseId={courseId} | |||
unitId={unitId} | |||
tab={activeTabSlug} | |||
studioButtonVisible={hasCourseAuthorAccess} |
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.
studioButtonVisible={hasCourseAuthorAccess} | |
isStudioButtonVisible={hasCourseAuthorAccess} |
c3cd7da
to
8d42ae4
Compare
8d42ae4
to
627d4fd
Compare
@farhaanbukhsh Looks like this is ready for final 👍 and merge :) |
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.
👍
- ✅ I tested this on tutor devstack and all the flags are working properly
- ✅ I read through the code
- ❌ I checked for accessibility issues
- ❌ Includes documentation
- ❌ I made sure any change in configuration variables is reflected in the corresponding client's
configuration-secure
repository.
Description
Partially addresses openedx/platform-roadmap#361 issue, by implementing the second suggestion from here:
This fix relies on openedx/edx-platform#35313.
Testing
[email protected]
and[email protected]
.[email protected]
user to the staff course access role, and[email protected]
to the limited staff course access role.