appbaseio / appbaseio/dejavu

Bug: Array of Objects values show up incorrectly

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
8.5k
Forks
512
PR merge metrics
No merged PRs in 30d

Description

When displaying values for an array of objects, they're displayed incorrectly.

**Example:**

In the below example, the `experience` field contains an array of objects, values for which can't be accurately represented in a single value field.

However, the values shown right now are incorrect.

![](https://i.imgur.com/AIgU5Vs.png)

**Recommendation:** We can do one of the following,

- One possibility is to show the first parsed value in this case. This is not accurate, but at least, there is a pattern to it and this should be an easy change to make.

OR

- Another alternative is to show flattened values. This would require a change in the UI component used to display the cell value, but the column type and filtering behavior shouldn't change. This might not be as easy to do, but is the most accurate way to display the data.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with an array of objects in the UI component used to display cell values, then trace how the displayed value is parsed. Done means the array values are represented accurately, while the column type and filtering behavior remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.