Add editing permissions condition to view/display Publish Modal#3108
Conversation
rtibbles
left a comment
There was a problem hiding this comment.
Looks like the right fix to me!
Codecov Report
@@ Coverage Diff @@
## unstable #3108 +/- ##
============================================
+ Coverage 85.76% 86.13% +0.36%
============================================
Files 298 305 +7
Lines 15908 16455 +547
============================================
+ Hits 13643 14173 +530
- Misses 2265 2282 +17
Continue to review full report at Codecov.
|
f6841e4 to
400d36c
Compare
|
Tested and verified as fixed at https://hotfixes.studio.learningequality.org/ |
|
Having some issues replicating this test scenario 😕 If I'm signed in as one of my Studio non-admin users (A), and I share one of their channels with my Studio admin user (B) choosing Actually, when I open any of the channels in the If I'm signed in as one of my Studio non-admin users (A), and I share one of their channels with another of my Studio non-admin users (C) choosing @marcellamaki hope the above makes sense, as I'm getting 😵 after writing this... |
|
@radinamatic - your description does make sense, but I can't figure out why it is happening -- if this is a new bug, or if there is something else with your admin permissions that would be causing this...I will do a little bit of investigation and see what I find. Thanks for reviewing and for the detailed explanation! |
|
@radinamatic Another change to fix this issue made it such that admin users are always able to edit and publish a channel. So proper replication of this should be with non-admin users only. I'll update the description. |
|
@bjester so the current implementation makes the concept of |
|
@radinamatic Yes, channels shown in the view-only tab would never show as view-only when editing as an admin |
|
Roger that, we'll need to amend the Gherkin for admin user workflow with view-only channels 👍🏽 |
Summary
Description of the change(s) you made
This PR adds a condition based on canManage to determine if Publish Modal is visible.
Fixes #3079
Manual verification steps performed
Screenshots (if applicable)
Before

After

Does this introduce any tech-debt items?
Not that I am aware of
Reviewer guidance
How can a reviewer test these changes?
Please follow the manual QA process above.
Are there any risky areas that deserve extra testing?
The Progress/Publish modal in general is a bit of a fragile piece of code, so going over more than once manually may be helpful (I have tested this a few times)
Comments
I was curious if this was also a problem with the "syncing" option of the progress modal but wasn't able to reproduce it. If it comes up, I can implement the same change for that portion of the modal as well.
Contributor's Checklist
PR process:
CHANGELOGlabel been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocslabel has been added if this introduces a change that needs to be updated in the user docs?requirements.txtfiles also included in this PRStudio-specifc:
notranslateclass been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages,components, andlayoutsdirectories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarnandpip)