-
Notifications
You must be signed in to change notification settings - Fork 60
Refactored Step Builder Messages #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d0a09d7 to
cc9498c
Compare
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
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.
|
@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.) |
|
@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? |
|
@bradenmacdonald OK, we'll see then. Either I'm still available to take a final look, or it will have to wait until tomorrow. |
|
@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
|
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. |
|
@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. |
c6630e4 to
0365c76
Compare
|
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. |
|
Thanks a lot, @smarnach :) |
df0e884 to
7ddaa7b
Compare
282ee3e to
8b17cb4
Compare
|
All looking good, 👍. |
Refactored Step Builder Messages


This refactors step builder to:
Example: Editing a review step:

Example: A Conditional Message:
