-
Notifications
You must be signed in to change notification settings - Fork 6
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
Version 2.0 #29
Merged
Merged
Version 2.0 #29
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 3.8 tests failing because of: encode/starlette#1106 |
- Catch errors from before and after hooks to ensure the resulted body is JSON:API compliant. - Added request_context to handle_error. - Went back to the temporary partial implementation, since Starlette is still not supporting functools.partial over classmethods.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 2.0 proposal:
BaseResource.get_all
renamed toBaseResource.get_many
starlette >= 0.14.2
to install, for thefunctools.partial
supporthandle_{get, patch, delete, get_many, post}
in favor of partialsid
argument ofget
,patch
,delete
as required, because the framework already expects and passes it.before_request
andafter_request
hooksrequest_context
toBaseResource.handle_error
andBaseRelationshipResource.handle_error
_BaseResourceHandler
and moved / refactored common logicJSONAPIException
serialize itsdetail
even if a list of errors is giveninclude_resource_linkage=True
when creating aJSONAPIRelationship
BaseResource.register_routes
now optionally acceptsbase_path
BaseResource.prepare_relations
renamed toBaseResource.include_relations