Step Builder: Interoperability for scale and plot blocks #86
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.
This PR follows up on #77 and #78 which introduced plot and scale blocks, respectively. More specifically:
The changes make sure that plots can access data from scale blocks.
The changes make the process for obtaining references to rating and scale blocks consistent in Studio. This means that instead of having to
course authors can now grab IDs from previews of rating questions:
For scale blocks this behavior was already in place.
Testing
Add Step Builder to a unit.
Add two Mentoring Step blocks and a Review Step block to Step Builder.
Add two Scale questions ("Ranged Value Slider") to the first Mentoring Step block.
Add a Plot block to the second Mentoring Step block.
For each Scale question, grab corresponding ID from preview.
Bring up the EDIT dialog for the Plot block and add the following to the "Claims and associated questions" field:
Make sure to replace the two hashes with the question IDs you grabbed in the previous step.
Publish the unit.
Complete the first step of the unit by submitting answers to the Scale questions.
Navigate to the second step. The plot should show the answers you gave in the form of a single point.