(WIP) Randomized selection from content libraries - Do not merge, for internal review - #2
(WIP) Randomized selection from content libraries - Do not merge, for internal review#2bradenmacdonald wants to merge 5 commits into
Conversation
|
This checks out. I was able to get it running per the instructions and it works as advertised. I did notice an oddity that isn't mentioned in the instructions-- When first visiting the Content Library link, I get a very basic unstyled response with a statement saying there is no content library, and giving me a link to create one. When I click the link, the result is JSON that loads in the browser. Is that expected? The code itself doesn't raise any particular red flags for me. I'm good with this, if that previous note is expected and shall be resolved down the line as part of the project at large. |
|
@Kelketek Ah, right. I forgot to mention that in the instructions. Yes, that is the expected behaviour. It's unstyled and simple because this is just a proof of concept prototype. Once we have an approved design, and a UX plan, we will clean all those things up. |
There was a problem hiding this comment.
It's just a prototype so very minor at this point, but it could be worth moving the code selecting the blocks to its own method.
|
Superseded by #5. |
…2.0-v2 Upgrade: Font Awesome 4.2.0 - Take #2
Rue89: LMS Changes backport
…dback-update-2 Hash Update #2: Diagnostic-Feedback
Create the security fix #2 for the RC 2016-03-22
Syncing fork to the original repository
� This is the 1st commit message: BOM-149 python3 tests failures. � This is the commit message #2: BOM-149 python3 tests failures.
…guration_siteconfiguration_values_2.1 Rename values in SiteConfiguration (2/3) attempt #2
…me_site_configuration_siteconfiguration_values_2.1 Revert "Rename values in SiteConfiguration (2/3) attempt #2"
This reverts commit e6f58b6. This is our third (3rd!) attempt to deploy stage 2 of this column rename.
Fix for setting provider to none
This is a continuation of the prototype found in #1, extended to implement SOL-18 "As a content author, I am able to select a number of random content blocks that would be displayed in a LibraryContent block."
Testing instructions:
paver install_python_prereqsandpaver update_db~/cms.env.jsonand add"ENABLE_CONTENT_LIBRARIES": trueto theFEATURESobject.~/cms.auth.json. Go toMODULESTORE>default>OPTIONS>stores- it should contain two or three entries. Re-order the entries so that the store with"NAME": "split",comes first in thestoreslist. (This makes split the default modulestore for any new courses.)paver devstack studioand go tolocalhost:8001in your browser."library_content"to advanced_modules.course-v1:ProblemX+PR0B+2014+branch@library. (It's in the URL when you go to Content > Content Library, though the URL may not show the+branch@librarypart, so make sure to add that). Hit Save.localhost:8000. Browse into the course, and you should see that the block is replaced by random blocks from the library. To test the randomization, click the lowest "STAFF DEBUG INFO" link underneath the module, then click "Delete Student State", then refresh the page.