Split Testing - #829
Conversation
There was a problem hiding this comment.
Why import waffle if it isn't used in this file?
|
I've addressed all comments except for @cpennington's note about the signature of tab generators. As I wrote above, should I still make this change given that use of the request argument by the _courseware tab generator won't be permanent? Once we conclude split testing on the tabs, the request argument won't be needed anymore. |
|
Arguments to the tab generators are now uniform, as per our earlier discussion. I'm going to hold off on merging this in until @dianakhuang has Paid Certificates sorted out. In the meantime, I'll be speaking with Devops about changes that need to be made to support this PR. 👍? |
There was a problem hiding this comment.
OK, I know this isn't your test, but...
Change self.mockuser0 and self.mockuser1 to actually indicate what's different about them (self.user and self.anonymous_user, or something?) Likewise for self.active_page*. I would also pull out the constant bits of the tab construction process into a helper method that just takes the variables that you want to vary (or takes all the variables, but defaults them to a standard set), to minimize the code on the assertion lines to just the things that are changing.
That will have a happy side effect of making it so that you only have to add FAKE_REQUEST in one place.
|
This public pull request refers to non-public documentation!?!? Really - somebody's got to fix that. |
|
@yarko, thank you for pointing that out. I'll get that documentation moved. |
|
@cpennington, I've refactored the tab tests as you suggested. Any other comments? @singingwolfboy? |
There was a problem hiding this comment.
Looks like this line should be removed.
|
@rlucioni You've got a failing unit test: Can you fix that? Once the tests pass, the only other thing you need is an entry in the CHANGELOG, and then I believe this is ready to merge. |
|
Done. @singingwolfboy and @cpennington? |
|
👍 |
There was a problem hiding this comment.
Python should be indented 4 spaces
|
Couple of nitpicks, but once those are cleared up: 👍 |
|
On Sep 18, 2013 1:06 PM, "Renzo Lucioni" notifications@github.com wrote:
+1
|
added ie warning banner to courseware; displayed by ie conditional style...
YONK-15: API optimisations using course blocks
And/sga0.8.2 3
…page when a user isn't logged in. (openedx#829) - changed format for displaying course start date
Before, for sections, it would link you to the chapter which would cause a JS error since the sequence endpoint expects sequentials. This updates to now link to the first subsection within a section when you hit the section breadcrumb
This PR gives us the ability to perform split testing on the LMS. For details, see the documentation. The changes in this PR will require DevOps to perform a migration to create the necessary tables, as well as clearance from them to activate the Django admin site on stage and prod. I'm currently speaking with them about the best way to do this.
The experiments to be performed on the LMS high-level tabs are verified, but have not been formally tested. This is because the experiments can be turned off instantly (without pushing new code), and the best-performing variation will be thoroughly tested before being added permanently to the codebase.
@cpennington and @singingwolfboy, could you please help me review this? (N.B. Although my internship ends on August 30, I'm continuing with edX on a limited hours basis during the school year, so this doesn't need to be reviewed and merged right this minute.)