Skip to content

Progressing #2704 - #3076

Merged
lovelydinosaur merged 1 commit into
encode:masterfrom
jpadilla:issues/2704
Jun 25, 2015
Merged

lovelydinosaur merged 1 commit into
encode:masterfrom
jpadilla:issues/2704

Conversation

@jpadilla

Copy link
Copy Markdown
Contributor

Don't merge this yet.

@lovelydinosaur

Copy link
Copy Markdown
Member

Thanks for moving forward with this. Assume the upshot of this is to not call .all() on querysets in releationships but still try to ensure we don't revert #2602 in the process.

@jpadilla

Copy link
Copy Markdown
Contributor Author

@tomchristie just pushed a failing test to demo the revaluation issue from #2602. That obviously fails with the change to to_representation(), while our previous test passes. If we add revaluation of manager/queryset back, this last tests pases while our previous fails.

Comment thread tests/test_model_serializer.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this be in an Issue2602TestCase class?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, done.

@lovelydinosaur

Copy link
Copy Markdown
Member

@jpadilla Okay, good progress, and basically resolved I think.

See here: #2602 (comment)

Essentially #2602 is invalid. We should remove the test for it, and merge this.

@lovelydinosaur

Copy link
Copy Markdown
Member

We might want to think about if there's any ways we can guard against queryset caching between views being called, but don't know if it'll really be possible or not.

@lovelydinosaur

Copy link
Copy Markdown
Member

Closes #2704

@lovelydinosaur lovelydinosaur added this to the 3.1.4 Release milestone Jun 25, 2015
@lovelydinosaur

Copy link
Copy Markdown
Member

@jpadilla Think I'm happy with this now, ready to merge when you are.

@jpadilla

Copy link
Copy Markdown
Contributor Author

@tomchristie all yours. Thanks!

lovelydinosaur added a commit that referenced this pull request Jun 25, 2015
@lovelydinosaur
lovelydinosaur merged commit df7c114 into encode:master Jun 25, 2015
@lovelydinosaur

Copy link
Copy Markdown
Member

Go team!

@lovelydinosaur lovelydinosaur modified the milestones: 3.1.4 Release, 3.2.0 Release Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants