ruby-grape / ruby-grape/grape-entity
Collections of different objects
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 729
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I've seen other issues about doing nested collections of different data, but I believe my situation is slightly different. We have an ElasticSearch query that gets run across multiple indexes to return different content types. Is there a way to merge entities together or create a collection entity that would infer the entity from the object so we don't have to do a hacky feed using procs to conditionally expose stuff an entity?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how grape-entity represents collections and how the reported Elasticsearch query returns different content types. The issue names no files, tests, or entry points, so the relevant implementation area must first be located. Done would require an agreed design and support for merging heterogeneous entities without the proposed conditional proc workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, ruby
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100