-
Notifications
You must be signed in to change notification settings - Fork 77
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
Deserializer plug #222
Merged
jherdman
merged 25 commits into
beam-community:master
from
snewcomer:sn/deserializer-plug
Mar 18, 2020
Merged
Deserializer plug #222
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
fcac3f7
Deserializer plug
snewcomer 94d587a
credo fixes
snewcomer 4d4ebdb
address comments
snewcomer 2c38c03
Start working on flattening attributes
snewcomer 88811c3
Deserializer plug with tests
snewcomer 3f99aec
Merge branch 'master' into sn/deserializer-plug
snewcomer 4b691ee
just pipe rsult to drop
snewcomer b68680d
resolve some credo warnings
snewcomer d168567
Fix spec declaration
snewcomer 25d11b1
Add test for preserving query params
snewcomer 7fc8d65
Ensure relationship casing is same as configured field_transformation…
snewcomer d087b86
fix dialyzer
snewcomer adb61e6
Add nested relationships in includes block
snewcomer 39e5c8f
Update lib/jsonapi/utils/data_to_params.ex
snewcomer aeb231e
Use mime_type instead of string
snewcomer 4a16274
Update docs
snewcomer 738c2b9
Add tests around has many and lists of data
snewcomer 2481ee9
Add failing test
snewcomer e4ffe06
Process each relationship on its own
snewcomer 59efee6
remove eol
snewcomer 573c9ce
Move multiple function clauses to own function
snewcomer 83d9339
simplify callback
snewcomer 2b19fd8
fix credo
snewcomer 874042b
mix format
snewcomer d966739
Merge branch 'master' into sn/deserializer-plug
snewcomer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this mean you have a bug? Imagine a system like this... I have a super class called "Car", and I want to create two records, a "Ford" and a "Subaru". The way I'm reading this you've lost the typing information that the user provided — thus in my scenario I wouldn't know that a user was creating a "Subaru" and a "Ford".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! Great point.
2481ee9
e4ffe06