Commit Graph

13 Commits

Author SHA1 Message Date
gfyoung dce26700b2 Enable frozen string in app/serializers/**/*.rb
Partially addresses #47424.
2018-07-23 11:27:39 -07:00
Bob Van Landuyt 4d79159973 Make sure we always return an array of hierarchies
Even when we pass an array of only a single object
2017-10-13 15:15:45 +02:00
Bob Van Landuyt e55886b30e Return `self` from `GroupChildSerializer#expand_hierarchy` 2017-10-10 16:55:02 +02:00
Bob Van Landuyt 23af161b79 Rename parameters to params 2017-10-05 13:12:40 +02:00
Bob Van Landuyt b92e7103fc Fix nesting bug when rendering children of a shared subgroup 2017-10-04 22:49:42 +02:00
Bob Van Landuyt cd85c22faa Rename hierarchies to descendants where applicable 2017-10-04 22:49:42 +02:00
Bob Van Landuyt ee2744c60d Don't wrap arrays twice: `children` are already wrapped in an array
We do the wrapping in an array in represent_hierarchy for children.
2017-10-04 22:49:41 +02:00
Bob Van Landuyt 22aa034427 Rename `GroupHierarchy` to `GroupDescendant` 2017-10-04 22:49:41 +02:00
Bob Van Landuyt 9781ac552d Include pagination when rendering expanded hierarchies 2017-10-04 22:49:41 +02:00
Bob Van Landuyt 3e6dd7d88d Use same response-body in groups-dashboard as we do for group-home 2017-10-04 22:49:41 +02:00
Bob Van Landuyt 8f6dac4991 Allow filtering children for a group
When fetching children for a group with a filter, we will search all
nested groups for results and render them in an expanded tree
2017-10-04 22:49:41 +02:00
Bob Van Landuyt 518216c062 Merge group hierarchies when parents are shared 2017-10-04 22:49:41 +02:00
Bob Van Landuyt d33e15574b Add serializer for group children 2017-10-04 22:46:49 +02:00