Skip to content

Conversation

@bradenmacdonald
Copy link
Member

This refactors step builder to:

  • Make the Review step code simpler
  • Split the parts of the review screen up into XBlocks that are more flexible and re-orderable.
  • Make the Step Builder block preview/work in Studio as students would see it in the LMS

Example: Editing a review step:
screen shot 2015-11-01 at 8 36 53 pm

Example: A Conditional Message:
screen shot 2015-11-01 at 8 06 24 pm

@bradenmacdonald bradenmacdonald force-pushed the step-builder-reviews-refactor branch from d0a09d7 to cc9498c Compare November 2, 2015 05:34
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it the implicit behaviour to fall back to the student view? (No need to change anything, it's fine to keep this explicit in any case. I'm just curious.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but if it renders student_view as a fallback, Studio will wrap the XBlock in a bunch of HTML (header, edit controls) that we don't want. Studio looks at the name of the view that's being rendered when deciding to wrap the element or not.

@smarnach
Copy link
Contributor

smarnach commented Nov 2, 2015

@bradenmacdonald Nice, this makes the code indeed more readable! I've done a first past through the code, but haven't done any testing yet. To facilitate getting this merged until tomorrow morning, I'll do the testing after the meeting, so if anything comes up you will still have a bit of time to address any issues.

How much time will you need for the tests? If you can finish them soon, I might be able to give a thumbs up today. (I'll be available until about 22:00 UTC.)

@bradenmacdonald
Copy link
Member Author

@smarnach Thanks for the initial review! Yes I'm happy with how this has improved the code :-)

I'll work on addressing your comments and updating the tests right after the meeting, but I'm not sure how long it will take. A couple hours perhaps?

@smarnach
Copy link
Contributor

smarnach commented Nov 2, 2015

@bradenmacdonald OK, we'll see then. Either I'm still available to take a final look, or it will have to wait until tomorrow.

@bradenmacdonald
Copy link
Member Author

@smarnach I've addressed your initial review comments and fixed a small bug. Now I'm just continuing to get the tests passing again.

* Change conditional message configuration to strings (better XML)
* Don't use student_view for embedded content in Studio or XBlock workbench
@smarnach
Copy link
Contributor

smarnach commented Nov 2, 2015

When adding a new Per-Question Feedback block and cliking "Edit" on it, I get this error:

screenshot_2015-11-02_22-07-52

(This is on a relatively current version of the solutions devstack.)

@bradenmacdonald
Copy link
Member Author

@smarnach Good catch. Fix just pushed: ee49a27

(I also just pushed two other fixes and will "soon" push a commit that makes the tests pass, hopefully)

@smarnach
Copy link
Contributor

smarnach commented Nov 2, 2015

Does the new version have to be backwards compatible to existing course data? When loading my pre-existing Step Builder example in Studio, one of the messages was displayed with the heading "INVALID MESSAGE". I also still had the old "Message shown when complete/incomplete" blocks, and things didn't properly work when tested in the LMS. I'll try again with a newly created version.

@bradenmacdonald
Copy link
Member Author

@smarnach I'm aware of that, but I think it's fine. I don't believe this is yet in use in any courses. The important thing is that the authors are able to do the conversion.

@smarnach
Copy link
Contributor

smarnach commented Nov 2, 2015

If you add multilple conditional messages and view them from the Step Builder top level in studio, it's hard to see which condition belongs to which message, since the condition is separate from the message by a horizontal rule, while the messages aren't separated from each other at all:

screenshot_2015-11-02_22-26-45

@bradenmacdonald bradenmacdonald force-pushed the step-builder-reviews-refactor branch from c6630e4 to 0365c76 Compare November 2, 2015 21:50
@smarnach
Copy link
Contributor

smarnach commented Nov 2, 2015

I reviewed everything that's there up to now. The code is looking good, and everything is working fine with the latest changes as well. So the only thing left is to make the tests pass. :)

I'll take a final look tomorrow morning, and will merge and do the hash update on the Solutions fork of edx-platform if everything looks good.

@bradenmacdonald
Copy link
Member Author

Thanks a lot, @smarnach :)

@bradenmacdonald bradenmacdonald force-pushed the step-builder-reviews-refactor branch from df0e884 to 7ddaa7b Compare November 2, 2015 22:29
@bradenmacdonald bradenmacdonald force-pushed the step-builder-reviews-refactor branch from 282ee3e to 8b17cb4 Compare November 3, 2015 01:19
@smarnach
Copy link
Contributor

smarnach commented Nov 3, 2015

All looking good, 👍.

smarnach added a commit that referenced this pull request Nov 3, 2015
@smarnach smarnach merged commit ff271b2 into master Nov 3, 2015
@xitij2000 xitij2000 deleted the step-builder-reviews-refactor branch December 13, 2019 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants