fix: make "fs" service available in XBlock preview module system - #610
Merged
ArturGaspar merged 2 commits intoJan 17, 2024
Merged
Conversation
Author
|
Need to merge open-craft/RecommenderXBlock#1 to fix the build for this. |
viadanna
previously requested changes
Dec 22, 2023
viadanna
left a comment
Member
There was a problem hiding this comment.
Just a few small changes and we're good to go
Member
There was a problem hiding this comment.
Sorry I didn't mention this, but this is added via Grove, we don't need it in all our instances
Member
There was a problem hiding this comment.
Can you remove the reference to openedx-django-pyfs in base.in?
Author
There was a problem hiding this comment.
@viadanna There is no direct reference to openedx-django-pyfs in base.in, it is pulled by the xblock requirement.
Member
There was a problem hiding this comment.
Alright, that's where we need to bump openedx-django-pyfs
ArturGaspar
force-pushed
the
artur/xblock-preview-fs-service
branch
2 times, most recently
from
December 27, 2023 21:05
73ca602 to
a3cd17a
Compare
Member
|
👍
|
ArturGaspar
dismissed
viadanna’s stale review
January 17, 2024 08:06
Changes done but Paulo is on holidays.
ArturGaspar
force-pushed
the
artur/xblock-preview-fs-service
branch
from
January 17, 2024 08:07
a3cd17a to
b726cd2
Compare
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
The "fs" XBlock runtime service is not made available in Palm when in preview mode (e.g. in Studio).
This causes an error when trying to use this service while editing an XBlock, e.g. uploading a screenshot for the Recommender XBlock:
Traceback
This is fixed in master, possibly in 18fea86, however that is part of openedx#31472 which is a rather large change. This is a smaller fix.
Testing instructions
Install and enable the Recommender XBlock
In Studio, add a recommender component to a course.
Add a resource in the recommender component, upload a preview screenshot.
Details
Save it. Make sure there are no errors and that it was saved correctly.
Reload the page. See the newly added item and that the screenshot loads on hover.
Deadline
None
Other information
Private-ref: https://tasks.opencraft.com/browse/BB-8077