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

Extract operation resolvers and execute them after path helpers #152

Merged
merged 4 commits into from Oct 31, 2017

Conversation

yoichi
Copy link
Collaborator

@yoichi yoichi commented Sep 2, 2017

Solve #136
NOTE: This fix introduce incompatible change to extension mechanism.

Thanks,

Result of path helper of web framework extension will be resolved
by marshmallow extension regardless of the order of extensions.
@sloria
Copy link
Member

sloria commented Oct 28, 2017

@yoichi What about this PR is backwards-incompatible? Isn't this just exposing a new hook, or am I missing something?

@yoichi
Copy link
Collaborator Author

yoichi commented Oct 29, 2017

I thought extracting a part of functionality of path_helper introduce some incompatibility. But that was my misunderstanding.
Extensions can keep resolver functionality in path_helper, or change themselves to use new hook.

@@ -12,6 +12,7 @@ There are three types of helper functions:

Copy link
Member

Choose a reason for hiding this comment

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

Above line will need to be changed to "four".

@sloria
Copy link
Member

sloria commented Oct 29, 2017

@yoichi OK, thanks for the clarification. If this doesn't introduce backwards incompatibilities, then I think we should go ahead and merge this.


* Definition helpers
* Path helpers
* Operation resolvers
Copy link
Member

Choose a reason for hiding this comment

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

@yoichi Would it make sense to call these "Operation helpers" for consistency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. They don't have to resolve something and call them helpers like existing ones seems better. I'll push a change.
Thanks for the suggestion

Copy link
Member

@sloria sloria left a comment

Choose a reason for hiding this comment

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

Just a suggestion for a name change. Other than that, this looks good to merge.

@sloria
Copy link
Member

sloria commented Oct 31, 2017

Looks good to me. Thanks!

@sloria sloria merged commit 8b12d45 into marshmallow-code:dev Oct 31, 2017
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