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

DM-10625: Make a copy of spec when resolving it #12

Merged
merged 1 commit into from May 26, 2017

Conversation

jonathansick
Copy link
Member

If a specification has a base that can't be resolved, then an exception is thrown in the resolve_document() method, indicating that it should be added to a retry pile. But we're also modifying that specification in the resolve_document() method. So when we do retry the resolution, the specification may not be in a good state.

Doing a deep copy of the original specification in resolve_document() solves all these things.

If a specification has a base that can't be resolved, then an exception
is thrown in the resolve() method, indicating that it should be added to
a retry pile. But we're also modifying that specification in the
resolve_document() method. So when we actually do retry the resolution,
the specification may not be in a good state.

Doing a deep copy of the original specification in resolve_document()
solves all these things.
@jonathansick jonathansick merged commit d1e998b into master May 26, 2017
@ktlim ktlim deleted the tickets/DM-10625 branch August 25, 2018 05:57
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

1 participant