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

Split multiput into smaller, reusable functions. #68

Merged
merged 1 commit into from
Jul 13, 2017
Merged

Conversation

stam
Copy link
Contributor

@stam stam commented Jul 12, 2017

In TMS we have some dependencies that are unresolvable by multi_put. We need to write some custom code to handle this edge case. Multi_put however currently is request in > response out. For the custom dependency we cannot reuse any of the multi_put code.

In this pull request we split the multi_put into tinier, reusable and overwritable functions, allowing custom endpoints to reuse request parsing, object collection, dependency calculation, object ordering and id_map constructing.

@stam
Copy link
Contributor Author

stam commented Jul 12, 2017

This would also be a solution for #58

@irfinnew
Copy link

lgtm

@irfinnew irfinnew merged commit 4c56611 into master Jul 13, 2017
@irfinnew irfinnew deleted the split-multiput branch July 13, 2017 12:16
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.

2 participants