Add user info to review endpoint return
JoseRenan opened this issue · 1 comments
JoseRenan commented
Is your feature request related to a problem? Please describe.
We need to show on the track page not only the track reviews but also the context about who reviewed, so the route GET /tracks/:id/reviews should return instead of the authorUid only, return an object like:
author: {
displayName: string,
avatarUrl: string,
authorUid: string
}
This object don't need to be on the database, but recovered always the endpoint is called, to keep a single source of truth (it would be worse if we keep this data on the reviews entry and the user update that info...)
JoseRenan commented
If you get this task, it's good to update the front where this endpoint is being used, since it's a change on the return, maybe something will break