Skip to content

fix(xy): consider useDefaultGroupDomain on scale config#1119

Merged
markov00 merged 4 commits intoelastic:masterfrom
markov00:2021_04_14-fix_usedefaultgroupdomain
Apr 15, 2021
Merged

fix(xy): consider useDefaultGroupDomain on scale config#1119
markov00 merged 4 commits intoelastic:masterfrom
markov00:2021_04_14-fix_usedefaultgroupdomain

Conversation

@markov00
Copy link
Copy Markdown
Collaborator

Summary

The useDefaultGroupDomain was introduced to allow clustering of multiple series with a common Y domain.

The #1087 PR introduced a regression where the useDefaultGroupDomain was not considered when defined as the actual groupId for a specific group of series. This issue throws an error when a series use useDefaultGroupDomain with a groupId that doesn't exist in the chart configuration. This is an edge case but a legit one.

Checklist

Delete any items that are not applicable to this PR.

  • Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios

the elastic#1087 PR introduced a regression where the useDefaultGroupDomain was not considered when
computing the scale configs.
@markov00 markov00 added bug Something isn't working :data Data/series/scales related issue regression labels Apr 14, 2021
@markov00 markov00 requested a review from nickofthyme April 14, 2021 14:00
Copy link
Copy Markdown
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested locally.

Copy link
Copy Markdown
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@markov00 markov00 merged commit c1b59f2 into elastic:master Apr 15, 2021
@markov00 markov00 deleted the 2021_04_14-fix_usedefaultgroupdomain branch April 15, 2021 09:14
nickofthyme pushed a commit that referenced this pull request Apr 15, 2021
# [28.2.0](v28.1.0...v28.2.0) (2021-04-15)

### Bug Fixes

* **xy:** consider `useDefaultGroupDomain` on scale config ([#1119](#1119)) ([c1b59f2](c1b59f2)), closes [#1087](#1087)

### Features

* **a11y:** allow user to pass custom description for screen readers ([#1111](#1111)) ([2ee1b91](2ee1b91)), closes [#1097](#1097)
* **partition:** add debuggable state ([#1117](#1117)) ([d7fc206](d7fc206)), closes [#917](#917)
@nickofthyme
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 28.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickofthyme nickofthyme added the released Issue released publicly label Apr 15, 2021
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
# [28.2.0](elastic/elastic-charts@v28.1.0...v28.2.0) (2021-04-15)

### Bug Fixes

* **xy:** consider `useDefaultGroupDomain` on scale config ([opensearch-project#1119](elastic/elastic-charts#1119)) ([269ff1a](elastic/elastic-charts@269ff1a)), closes [opensearch-project#1087](elastic/elastic-charts#1087)

### Features

* **a11y:** allow user to pass custom description for screen readers ([opensearch-project#1111](elastic/elastic-charts#1111)) ([a0020ba](elastic/elastic-charts@a0020ba)), closes [#1097](elastic/elastic-charts#1097)
* **partition:** add debuggable state ([opensearch-project#1117](elastic/elastic-charts#1117)) ([08f8baf](elastic/elastic-charts@08f8baf)), closes [opensearch-project#917](elastic/elastic-charts#917)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working :data Data/series/scales related issue regression released Issue released publicly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants