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

91 allow includes strings #93

Merged
merged 10 commits into from
Feb 28, 2018
Merged

Conversation

sjmog
Copy link
Contributor

@sjmog sjmog commented Feb 20, 2018

Closes #91

  • Includes would fail with an ArgumentError unless they were explicitly provided as symbols (see Allow includes to be strings #91).
  • This is solved by mapping the strings to symbols in the ObjectSerializer initializer.
  • No real impact on performance.

shishirmk and others added 9 commits February 1, 2018 20:21
Add missing attribute in README example
* Simple RSpec test that fails with a non-empty string but passes with a
non-empty symbol
* To run the test, rspec spec/lib/object_serializer_spec.rb
* Includes would fail with an ArgumentError unless they were explicitly
provided as symbols (see Netflix#97)
* This is solved by mapping the strings to symbols in the
ObjectSerializer initializer
* No real impact on performance here
@sjmog sjmog changed the title 97 allow includes strings 91 allow includes strings Feb 20, 2018
@shishirmk shishirmk changed the base branch from master to dev February 21, 2018 05:02
@guilleiguaran
Copy link
Contributor

@sjmog can you rebase this against dev branch?

@sjmog
Copy link
Contributor Author

sjmog commented Feb 28, 2018

@guilleiguaran done

@shishirmk shishirmk merged commit dfd215d into Netflix:dev Feb 28, 2018
andyjeffries pushed a commit to andyjeffries/fast_jsonapi that referenced this pull request May 25, 2018
* add hash benchmarking to performance tests

* Add missing attribute in README example

* Disable GC before doing performance test

* Enable oj to AM for fair benchmark test

* add information on performance methodology

* add oss metadata

* Make an error that demonstrates [Issue

* Simple RSpec test that fails with a non-empty string but passes with a
non-empty symbol
* To run the test, rspec spec/lib/object_serializer_spec.rb

* Map includes to symbols if they are provided as strings

* Includes would fail with an ArgumentError unless they were explicitly
provided as symbols (see Netflix#97)
* This is solved by mapping the strings to symbols in the
ObjectSerializer initializer
* No real impact on performance here
andyjeffries pushed a commit to andyjeffries/fast_jsonapi that referenced this pull request May 25, 2018
* add hash benchmarking to performance tests

* Add missing attribute in README example

* Disable GC before doing performance test

* Enable oj to AM for fair benchmark test

* add information on performance methodology

* add oss metadata

* Make an error that demonstrates [Issue

* Simple RSpec test that fails with a non-empty string but passes with a
non-empty symbol
* To run the test, rspec spec/lib/object_serializer_spec.rb

* Map includes to symbols if they are provided as strings

* Includes would fail with an ArgumentError unless they were explicitly
provided as symbols (see Netflix#97)
* This is solved by mapping the strings to symbols in the
ObjectSerializer initializer
* No real impact on performance here
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.

6 participants