-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Refactor Association into Field like everything else #1897
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
Conversation
@bf4, thanks for your PR! By analyzing the annotation information on this pull request, we identified @beauby, @ehsanyousefi and @groyoh to be potential reviewers |
@NullVoxPopuli Where do you think a regression test for something like #1857 (comment) should go? |
791ae53
to
032b078
Compare
@bf4, maybe in It looks like both test files don't do anything with polymorphic belongs_to |
# Association.new(:comments, { serializer: CommentSummarySerializer }) | ||
# | ||
Association = Struct.new(:name, :serializer, :options, :links, :meta) do | ||
class Association < Field |
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.
👍
I'm a fan overall. |
032b078
to
6956c47
Compare
@NullVoxPopuli rebased I"m not sure what your comment is referring to. (The file is |
you asked:
? or did you mean something else? |
Looks like the inflection testing in test/adapter/json_api/type_test.rb is really testing |
That should probably move to the test file for resource_identifier then. |
@NullVoxPopuli oh, github presentation of doc led me not to see your comment as a response to mine 🤦 |
I'm not planning any more changes for this PR. Anything you suggest? |
Nope, this is a good chunk of good changes :-) I like when things get less convoluted :-) I'll merge when CI passes |
Intended to simplify work in #1857