João Moura
792fb8a905
Adding Fragment Cache to AMS
...
It's an upgrade based on the new Cache implementation #693 .
It allows to use the Rails conventions to cache
specific attributes or associations.
It's based on the Cache Composition implementation.
2015-04-05 18:19:57 -03:00
Yohan Robert
6a0564a241
Fixed a bug that appears when a nil association is included
2015-04-03 12:50:05 +02:00
Josh Smith
589a5806ab
Add issue stats to README
...
We should probably make it clearer how active the development is and also how quickly we close issues. Will help motivate us to do better and also clarify to everyone else that we are _really_ active.
2015-03-28 00:28:55 -07:00
Alexandre de Oliveira
48ed7cf9ba
Merge pull request #861 from machty/patch-1
...
README: Add emphasis to single-word difference
2015-03-27 11:08:04 -03:00
Alex Matchneer
7a70cf7eb8
README: Add emphasis to single-word difference
...
Minor change to make the distinction b/w adapters and serializers jump out more.
2015-03-27 08:50:10 -04:00
Guillermo Iguaran
4891c22a78
Merge pull request #858 from mateomurphy/adapter-fixes
...
Included resource fixes
2015-03-25 03:33:10 -05:00
Mateo Murphy
9aebc6cb11
Fix bugs with included resources
...
Make sure they're cached along with the including resource and remove duplicates
2015-03-24 20:07:25 -04:00
Mateo Murphy
5e560ddbef
Fix skipped test and add test for duplicate links
2015-03-24 19:46:30 -04:00
Alexandre de Oliveira
db788a5f68
Merge pull request #853 from mateomurphy/jsonapi-format-updates
...
RC3 Updates for JSON API
2015-03-24 16:40:24 -03:00
Mateo Murphy
9480b567ef
Refactor TestUser in SerializationScopeNameTest
...
Use the same base class we use for other test models
2015-03-23 13:44:30 -04:00
Mateo Murphy
90c7005c79
Don't store the root as we don't need it elsewhere
2015-03-23 12:38:15 -04:00
Mateo Murphy
b6951809b0
Add test for required fields
2015-03-22 20:43:57 -04:00
Mateo Murphy
ef3bfdd1e9
Update README.md
...
Indicate support for RC3 of JSON API
2015-03-22 20:43:56 -04:00
Mateo Murphy
4fcacb0b16
Update CHANGELOG.md
2015-03-22 20:43:56 -04:00
Mateo Murphy
946d1dba14
Remove debug include
2015-03-22 20:43:56 -04:00
Mateo Murphy
294d06624f
Remove unused embed option
2015-03-22 20:43:56 -04:00
Mateo Murphy
33f3a88ba0
Implement included and id and type as per spec
2015-03-22 20:43:56 -04:00
Mateo Murphy
d82c599c68
Always use plural for linked types
...
Although spec is agnostic about inflection rules, examples given are plural
2015-03-22 20:43:11 -04:00
Mateo Murphy
0f55f21266
Update format of links
2015-03-22 20:41:20 -04:00
Mateo Murphy
83c2854094
Rename add_linked to add_included
...
Better reflect generated output
2015-03-22 20:38:30 -04:00
Mateo Murphy
da86747a3e
Use symbol for root in jsonapi, fix tests
2015-03-22 20:38:29 -04:00
Mateo Murphy
3ba4386bda
Root is always "data" for jsonapi
2015-03-22 20:37:25 -04:00
Guillermo Iguaran
b68d7f4826
Merge pull request #852 from mateomurphy/serializer-options-fix
...
Fix options merge order in `each_association`
2015-03-22 18:54:07 -05:00
Guillermo Iguaran
e901a2108f
Merge pull request #850 from mateomurphy/association-override-fix
...
Use association value for determining serializer used
2015-03-22 18:53:45 -05:00
Mateo Murphy
03372ea61d
Fix options merge order in each_association
...
Custom association serializers were getting clobbered when using an each serializer.
2015-03-20 00:22:46 -04:00
Mateo Murphy
ca985e1afd
Use association value for determining serializer used
...
Ensures overridden association value works when orignal association does not return a result.
2015-03-19 23:28:00 -04:00
Alexandre de Oliveira
9cf45e7476
Merge pull request #843 from rails-api/remove-mailing-list-from-readme
...
Remove the mailing list from the README
2015-03-19 19:29:42 -03:00
Josh Smith
9058d5fce7
Merge pull request #842 from rails-api/add-contribution-process
...
Add notes on how you can help to contributing documentation
2015-03-15 23:01:14 -07:00
Josh Smith
65cf7d41c9
Add suggestions from João
2015-03-15 20:26:33 -07:00
Josh Smith
cd2f2c8884
Remove the mailing list from the README
...
We discussed this previously, but I think it's time for the mailing list to be removed from the README. Every day more discussion, issues, and pull requests happen here then ever before. The mailing list is not representative of this activity and only dilutes the purpose of the blossoming community we're finding here.
A related note: I think we should actively encourage folks to ask questions on StackOverflow with the AMS tag, and put some documentation in here about that. I can open a separate PR for this later, but it would require more than a few of us to actively monitor SO and help where we can. If we successfully do this, then I think we effectively cover all the use cases the mailing list originally may have had.
2015-03-15 19:53:19 -07:00
Josh Smith
89ebba239c
Add notes on how you can help to contributing documentation
2015-03-15 19:44:34 -07:00
Alexandre de Oliveira
0446a9714d
Merge pull request #833 from lsylvester/cache-serializers-for-class
...
Cache serializers for class
2015-03-13 19:55:49 -03:00
Lachlan Sylvester
270b31258f
remove the thread_safe dependency. Relay on rails for this
2015-03-12 16:01:48 +11:00
Guillermo Iguaran
4b32e3913c
Merge pull request #837 from rails-api/store-options-in-array-serializers
...
Store options in array serializers
2015-03-11 15:50:52 -05:00
Alexandre de Oliveira
af81a403e3
Passes serializer options down into associations
2015-03-11 16:37:14 -03:00
Alexandre de Oliveira
bcd3844e58
Stores passed in options in array serializers
...
This is supported in single serializers. This adds support for passing
options from array serializers to each serializer in it.
2015-03-11 16:14:09 -03:00
Guillermo Iguaran
73aeba4177
Merge pull request #836 from rails-api/stores-passed-in-options
...
Makes passed in options accessible inside serializers
2015-03-11 13:21:36 -05:00
Alexandre de Oliveira
3e8325b63e
Merge pull request #773 from sweatypitts/master
...
Make json api adapter 'include' option accept an array
2015-03-11 14:59:39 -03:00
Alexandre de Oliveira
48650ecf7e
Makes passed in options accessible inside serializers
...
In some cases, we want to pass arguments from the controller and we want
to serializer a resource according to that. This allows serializers to
use the `options` method to retrieve whatever was passed in via
arguments.
2015-03-11 14:53:57 -03:00
Robbie Pitts
ad5677c4ec
Make json api adapter 'include' option accept an array, accommodate comma delimited string for legacy reasons
2015-03-11 10:01:44 -04:00
Guillermo Iguaran
b8df4b57a1
Merge pull request #830 from JoshSmith/add-contributing-readme
...
Add contributing readme
2015-03-10 19:23:49 -05:00
Lachlan Sylvester
980d1ced81
add explicit thread_safe dependency
2015-03-11 11:15:17 +11:00
lsylvester
2b0c5ee084
clear the cache between requests
2015-03-11 09:53:47 +11:00
lsylvester
3fb560908e
cache the serializers for a class
2015-03-11 09:53:47 +11:00
Guillermo Iguaran
d55f3b33b4
Merge pull request #811 from mateomurphy/scope
...
Reimplement serialization scope and scope_name
2015-03-10 10:16:06 -05:00
Josh Smith
c6d6021f32
Add link to our labels
2015-03-08 12:33:00 -07:00
Josh Smith
fa4a6a7ae7
Add CONTRIBUTING.md and update README.md to point to it
2015-03-08 12:30:43 -07:00
Alexandre de Oliveira
3389218fd3
Merge pull request #725 from ggordon/has_one_support
...
Support has_one to be compatible with 0.8.x
2015-03-05 15:08:25 -08:00
Alexandre de Oliveira
32343d4575
Merge pull request #822 from bf4/fix_has_one
...
Replace has_one with attribute in template
2015-03-03 11:13:29 -08:00
Gary Gordon
c6044286ef
Workaround order dependent test failure
2015-03-01 13:47:40 -05:00