Skip to content

add is_collection parameter to force corresponding serialization#239

Merged
shishirmk merged 3 commits intoNetflix:devfrom
ababich:master
Jul 4, 2018
Merged

add is_collection parameter to force corresponding serialization#239
shishirmk merged 3 commits intoNetflix:devfrom
ababich:master

Conversation

@ababich
Copy link
Copy Markdown
Contributor

@ababich ababich commented Jun 7, 2018

This PR addresses #229 and generalize is_collection handling for different DB toolkits

Also, supports and includes improvement similar to #234
for autodetection

@shishirmk shishirmk changed the base branch from master to dev June 10, 2018 19:21
@shishirmk
Copy link
Copy Markdown
Collaborator

@ababich please add documentation that the user can pass in an optional key to force serialization as a collection. May be as part of this https://github.com/Netflix/fast_jsonapi#collection-serialization

and notes re. default autodetect logic
@ababich
Copy link
Copy Markdown
Contributor Author

ababich commented Jun 11, 2018

Thanks for the documentation comment, just updated the PR

@shishirmk
Copy link
Copy Markdown
Collaborator

@ababich sorry for the delay in getting back to you. This looks good. please fix the conflicts so that i can rebase and merge

@ababich
Copy link
Copy Markdown
Contributor Author

ababich commented Jun 24, 2018

Hi! I'm in a travel mode now, but I believe merge was done properly, thanks!

@shishirmk shishirmk merged commit ecb92f0 into Netflix:dev Jul 4, 2018
ababich added a commit to ababich/fast_jsonapi that referenced this pull request Jul 18, 2018
* upstream/master: (25 commits)
  bump up version to 1.3
  Add README instructions for using sparse fieldsets
  Use record type instead of reflected record type
  Set the record type for inherited serializers
  Remove unused code
  Update spec with included documents with no explicitly given fields
  Allow the serializer to return sparse fieldsets
  Add proc shortcut use case to README
  Add spec for proc methods with optional arguments
  Allow passing procs with variable arguments when declaring an attribute
  add is_collection parameter to force corresponding serialization (Netflix#239)
  remove options param from Link class
  fix relationship id_hash method
  create link class
  make include_relationship? a public method and use it in get_included_records method
  move add_relationship to each class method
  make fetch_associated_object a public method on relationship class so it can be called from SerilizationCore class
  WIP
  all tests are passing, but still need to write tests for relationship class
  working on new relationship class
  ...
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