Skip to content

change PaidCourseRegistration.contained_in_order - #5012

Merged
jbau merged 1 commit into
masterfrom
jbau/fix-contained-in-order
Aug 28, 2014
Merged

change PaidCourseRegistration.contained_in_order#5012
jbau merged 1 commit into
masterfrom
jbau/fix-contained-in-order

Conversation

@jbau

@jbau jbau commented Aug 28, 2014

Copy link
Copy Markdown

now handles cases where the order has both a PaidCourseRegistration
and a CertificateItem

@chrisndodge @cdodge

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I decided to use isinstance after all, because this is a function within the PaidCourseRegistration class

@jbau
jbau force-pushed the jbau/fix-contained-in-order branch from 547004c to 7c1fed5 Compare August 28, 2014 17:12
@chrisndodge

Copy link
Copy Markdown
Contributor

Great! Thanks, looks like what I expected and thanks for the succeed/failed verification on the unit test (failed on old code, passed on new)

@jbau

jbau commented Aug 28, 2014

Copy link
Copy Markdown
Author

Test failures seems unrelated. They're in the JS unit tests and discussions:

17:18:04 DiscussionThreadView response count and pagination: correctly render for a thread with one response [fail]
17:18:04     Expected '' to equal '1 response'.
17:18:04     Expected '' to equal 'Showing all responses'.
17:18:04 
17:18:04 DiscussionThreadView response count and pagination: correctly render for a thread with one additional page [fail]
17:18:04     Expected '' to equal '2 responses'.
17:18:04     Expected '' to equal 'Showing first response'.
17:18:04     Expected '' to equal 'Load all responses'.
17:18:04 
17:18:04 DiscussionThreadView response count and pagination: correctly render for a thread with multiple additional pages [fail]
17:18:04     Expected '' to equal '111 responses'.
17:18:04     Expected '' to equal 'Showing first 2 responses'.
17:18:04     Expected '' to equal 'Load next 100 responses'.
17:18:04 
17:18:04 DiscussionThreadView response count and pagination on clicking the load more button: correctly re-render when all threads have loaded [fail]
17:18:04     Expected '' to equal '5 responses'.
17:18:04     Expected '' to equal 'Showing first response'.
17:18:04     Expected '' to equal 'Load all responses'.
17:18:04     Expected '' to equal '5 responses'.
17:18:04     Expected '' to equal 'Showing all responses'.
17:18:04 
17:18:04 DiscussionThreadView response count and pagination on clicking the load more button: correctly re-render when one page remains [fail]
17:18:04     Expected '' to equal '5 responses'.
17:18:04     Expected '' to equal 'Showing first response'.
17:18:04     Expected '' to equal 'Load all responses'.
17:18:04     Expected '' to equal '42 responses'.
17:18:04     Expected '' to equal 'Showing first 3 responses'.
17:18:04     Expected '' to equal 'Load all responses'.
17:18:04 
17:18:04 DiscussionThreadView response count and pagination on clicking the load more button: correctly re-render when multiple pages remain [fail]
17:18:04     Expected '' to equal '5 responses'.
17:18:04     Expected '' to equal 'Showing first response'.
17:18:04     Expected '' to equal 'Load all responses'.
17:18:04     Expected '' to equal '111 responses'.
17:18:04     Expected '' to equal 'Showing first 3 responses'.
17:18:04     Expected '' to equal 'Load next 100 responses'.
17:18:04 

I kicked off another manual test build

@chrisndodge

Copy link
Copy Markdown
Contributor

Yea, I've seen those fail on other PR branches as well.

@jbau

jbau commented Aug 28, 2014

Copy link
Copy Markdown
Author

same tests failed again, blargh

@wedaly

wedaly commented Aug 28, 2014

Copy link
Copy Markdown
Contributor

@jbau I ran into that issue the other day and was able to resolve it by rebasing onto master.

now handles cases where the order has both a PaidCourseRegistration
and a CertificateItem
@jbau
jbau force-pushed the jbau/fix-contained-in-order branch from 7c1fed5 to 63cfcd3 Compare August 28, 2014 18:27
@jbau

jbau commented Aug 28, 2014

Copy link
Copy Markdown
Author

ok. i rebased on master

@chrisndodge

Copy link
Copy Markdown
Contributor

@jzoldak @Lyla-Fischer FYI this is the fix we'd like to get on prod if there's going to be a hotfix going out this week. Should we merge this to master (when tests pass) and then potentially cherry-pick to the RC branch?

If there's no hotfix going out, then I wouldn't force one to happen to for this.

@jbau

jbau commented Aug 28, 2014

Copy link
Copy Markdown
Author

OK. Tests are finally passing

@chrisndodge

Copy link
Copy Markdown
Contributor

+1

jbau added a commit that referenced this pull request Aug 28, 2014
change PaidCourseRegistration.contained_in_order
@jbau
jbau merged commit 87068c4 into master Aug 28, 2014
@jbau
jbau deleted the jbau/fix-contained-in-order branch August 28, 2014 23:12
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.

4 participants