Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix propagation of "partial" to Nested containers #1230

Merged
merged 2 commits into from Jun 9, 2019

Conversation

lafrech
Copy link
Member

@lafrech lafrech commented Jun 4, 2019

Attempt to fix passing partial to Nested containers.

This passes the test case provided in #779 (comment) and does not break any other test.

I didn't think much about the implications.

TODO:

  • Check this is the right way (review welcome).
  • Add tests.

@lafrech lafrech force-pushed the propagate_partial_to_nested_containers branch from 5a57d5a to fe85631 Compare June 5, 2019 08:30
@lafrech
Copy link
Member Author

lafrech commented Jun 5, 2019

I added tests and fixed the fix.

There might be a slight performance penalty when partial is a collection as the "remove prefix" logic is executed for all fields, not only Nested fields.

There will be a merge conflict with #1229 in test_fields.py. I can rebase when the first of the two is merged.

@lafrech lafrech marked this pull request as ready for review June 5, 2019 08:34
@lafrech lafrech requested a review from sloria June 5, 2019 13:59
@sloria sloria merged commit 0d718a2 into dev Jun 9, 2019
@sloria sloria deleted the propagate_partial_to_nested_containers branch June 9, 2019 21:47
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.

None yet

2 participants