Repository navigation
[BB-3710] Stop rendering Visibility and Move buttons on libraries (koa.2a) - #323
Merged
lgp171188 merged 1 commit intoMar 22, 2021
Merged
Conversation
spokerman12
marked this pull request as ready for review
March 3, 2021 00:27
|
@spokerman12, a nit that I wanted to mention: 'access settings' and 'accessibility' are two entirely different things and I think the former is the right one for this task. Can you update the description to fix it? Also, once this is reviewed and merged, we should create a backport PR against the |
|
@spokerman12, now that the upstream PR has been approved and will soon be merged, can you backport the changes (if there are any additional changes made in the upstream PR) so that @shimulch can review and approve? |
spokerman12
force-pushed
the
danielf/BB-3710-opencraft-release
branch
2 times, most recently
from
March 22, 2021 14:13
1f22062 to
56755ca
Compare
spokerman12
force-pushed
the
danielf/BB-3710-opencraft-release
branch
from
March 22, 2021 14:19
c63b90a to
5bad74e
Compare
shimulch
approved these changes
Mar 22, 2021
shimulch
left a comment
There was a problem hiding this comment.
LGTM 👍
- I read through the code. It's just a backport of upstream PR.
- [N/A] I checked for accessibility issues
- [N/A] Includes documentation
- [N/A] I made sure any change in configuration variables is reflected in the corresponding client's
configuration-securerepository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
We're fixing an error that appears when you click the "edit access" button on an XBlock in the library page.
Supporting information
Libraries in the "Add library" page shouldn't have the accessibility config icon. Access settings for libraries are changed at the top, on Settings > User Access.
When clicking the access-button (the cog) on a Library, an error appears.
This is know to happen on koa.master and open-release/juniper.3.
More on "Other information"
Testing instructions:
(Sandbox link)
This happens due to the way XBlocks are rendered; as they get rendered initially, the previews are unaware of whether they're part of a library. We can confirm this by refreshing the page, this makes the button disappear.

This fix removes the cogwheel when the XBlock is part of a library. This doesn't affect the XBlocks imported to courses because those are rendered on a Randomized Content XBlock, which does have its access options.
Other information:
From library docs
From randomized content XBlock docs
On the error image, we see that this has to do with groups. Groups are handled by course runs, so the Edit Access button has no place in a library (which is different from the Randomized XBlock that uses the library, which does support changing its access settings)
Deadline:
None