Add Studio support for cohorted courseware - #6227
Conversation
|
@explorerleslie @catong @talbs @cahrens @dan-f - I've completed a read-only version of the Studio component visibility modal. You can check it out on my sandbox with this project: It correctly handles all the different cases (no cohort groups, staff only inheritance, missing/deleted groups etc). Next I'm going to work on implementing save which will be based upon the work we did in the hackathon. |
There was a problem hiding this comment.
Just a reminder not to miss this NOTE :)
|
@andy-armstrong @talbs great work! Couple of comments:
|
|
@andy-armstrong @talbs @explorerleslie I'm wondering about the wording of "Set visibility to". Sorry I didn't think about this in the previous pass. |
|
In this sandbox, should I be seeing some of the changes I think that @talbs made to the wording of the note: "The Unit this component is contained in is hidden from students..."? |
|
Thanks @explorerleslie.
|
0649573 to
68fc2b1
Compare
|
I ran into an issue when writing my python unit tests - depending how I instantiated Looks like |
There was a problem hiding this comment.
This was another strange thing I ran into when writing these tests. This was coming from deep in the modulestore. Perhaps @dmitchell could kindly shed some light on this? The exception had a message about mongo not wanting to accept a non-string key.
There was a problem hiding this comment.
Can you reproduce this w/ me looking over your shoulder and we'll debug it together?
|
I'm seeing a strange empty-scrollbar area next to the name of the groups. |
There was a problem hiding this comment.
You are not using relative_url, instead hard-coding /js/xblock/authoring.js.
There was a problem hiding this comment.
@andy-armstrong what is the purpose of relative_url?
There was a problem hiding this comment.
Given the TODO below, I have the feeling this code was not done.
There was a problem hiding this comment.
The intention was to use relative_url instead of the constant string as @cahrens pointed out. The idea was to isolate the STATIC_URL hack into one place as we start to add other dependencies.
9f1bfea to
fa62d45
Compare
|
@andy-armstrong and @dan-f I think I'm done with the visibility state updates (text in publishing sidebar, "eyeliner" when appropriate). Bok choy tests still need to be written, but they should be trivial once the rest of the bok choy test setup is done. I squashed my work into a single commit and force pushed. |
|
@explorerleslie @catong @talbs @cahrens @dan-f @jimabramson - I've implemented saving of the visibility state and I've updated my sandbox: My test course now demonstrates the various combinations of error states:
I'm going to kick off an update to pick up @cahrens's changes too. |
07935de to
cc53782
Compare
|
looking good to me. Is this final changes at this point? If so, 👍 . If not, ping me again before merge. |
There was a problem hiding this comment.
I'm not crazy about mentioning "xblocks" to users, but not sure what generic term can replace it. Perhaps reword to skirt the issue: "The referenced content group configuration is invalid or has been deleted."?
There was a problem hiding this comment.
@catong This is a good catch, thanks. I was thinking about plugging in the xblock type, so it would read as:
This unit refers to...
or
This problem refers to...
Does that work? Note that I tweaked the wording so that it works for both one invalid reference as well as for two or more. So your suggested rewording would need both singular and plural forms.
A problem with my suggestion is that I don't know if we have localized xblock type names, so we might need to use quote the name.
There was a problem hiding this comment.
@explorerleslie I'm thinking about the case when we support visibility controls on things other than just components. This code will work just as well for sections, subsections and units, so I don't want to call them components.
There was a problem hiding this comment.
@dan-f Let's work out a plan for this...
23ab6ed to
b4ba648
Compare
0d560e2 to
893894b
Compare
|
👍 |
There was a problem hiding this comment.
Nit: I'd make this an inner function, as it is only used in test_no_visibility_set.
15afacc to
f8f7adc
Compare
There was a problem hiding this comment.
Why the abbreviation?
|
I'm finished with my review. Nice work everyone! There are just a few minor issues to iron out. |
|
👍 once the 'xblock' is removed from the two messages (however you choose to do it). |
f8f7adc to
6dd561f
Compare
a66401c to
ba43e44
Compare
6dd561f to
5695dda
Compare
5695dda to
33aef62
Compare
ef1f765 to
942e31b
Compare
942e31b to
cb2cb9e
Compare
Add Studio support for cohorted courseware
TNL-652