ruby-grape / ruby-grape/grape-roar

Nested representers

Open
#27 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug? question
Dominant language
Ruby
Stars
59
Forks
14
PR merge metrics
No merged PRs in 30d

Description

I'm having nested representers as following:
notifications_representers
** notification_representers
**** comment_representers
****** post_representers
******** image_representers

When I render a list of notifications with a type of comment and post title and post's image. But I see there are a few records that have image's attributes override to whole post attributes. Please tell me any wrong?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the nested representer structure described in the issue and inspect the rendered notification records. Compare the post and image attributes in cases where image data replaces post data; done means nested comment, post, and image representations retain their own attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.