Skip to content

Conversation

@shruthilayaj
Copy link
Member

It seems because of the async nature of
the promises being resolved for widget
queries, simply concating raw results
doesn't work because the order isn't
ensured. Instead, we want to use the index
as a key here so that we can always
ensure the raw results are in the same
order as the widgetQueries.

Example of weird labels (Note how Releases and the NEW series have switched):
Screen Shot 2021-10-22 at 9 03 24 AM

Screen Shot 2021-10-22 at 9 02 07 AM

It seems because of the async nature of
the promises being resolved for widget
queries, simply concating raw results
doesn't work because the order isn't
ensured. Instead, we want to use the index
as a key here so that we can always
ensure the raw results are in the same
order as the widgetQueries.
@shruthilayaj shruthilayaj marked this pull request as ready for review October 22, 2021 13:04
@shruthilayaj shruthilayaj requested a review from a team October 22, 2021 13:04
@shruthilayaj shruthilayaj changed the title fix(dashboards): Fix inconsistent legends fix(dashboards): Fix inconsistent widget query legends Oct 22, 2021
@shruthilayaj shruthilayaj merged commit d9c9b96 into master Oct 22, 2021
@shruthilayaj shruthilayaj deleted the fix/legend-aliases-in-widget-modal branch October 22, 2021 15:20
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants