Skip to content

Conversation

@markov00
Copy link
Member

@markov00 markov00 commented Jan 2, 2020

Summary

This commit fix the use case when no series specs are configured. Instead of throwing an error, it
will just display the "No data to display" message.

Screenshot 2020-01-02 at 17 39 56

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • This was checked for cross-browser compatibility, including a check against IE11
  • 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
  • Each commit follows the convention

This commit fix the use case when no series spec is configured. Instead of throwing an error, it
will just display the "No data to display" message.
@markov00 markov00 added the enhancement New feature or request label Jan 2, 2020
@codecov-io
Copy link

codecov-io commented Jan 2, 2020

Codecov Report

Merging #506 into master will increase coverage by 0.01%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #506      +/-   ##
==========================================
+ Coverage   84.56%   84.57%   +0.01%     
==========================================
  Files         158      169      +11     
  Lines        4736     4889     +153     
  Branches      965      985      +20     
==========================================
+ Hits         4005     4135     +130     
- Misses        716      738      +22     
- Partials       15       16       +1
Impacted Files Coverage Δ
src/state/utils.ts 100% <100%> (+14.28%) ⬆️
src/components/chart_container.tsx 55.73% <100%> (ø) ⬆️
src/state/selectors/is_initialized.ts 100% <100%> (ø) ⬆️
src/components/chart.tsx 77.01% <50%> (ø) ⬆️
src/mocks/series/series.ts 81.96% <0%> (ø)
src/mocks/specs/specs.ts 76.74% <0%> (ø)
src/mocks/scale/index.ts 100% <0%> (ø)
src/mocks/index.ts 100% <0%> (ø)
src/mocks/series/index.ts 100% <0%> (ø)
src/mocks/series/seriesIdentifiers.ts 93.33% <0%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d294b77...a5f8357. Read the comment docs.

Copy link
Contributor

@rshen91 rshen91 left a comment

Choose a reason for hiding this comment

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

Thanks for adding the tests - these changes make sense!

Copy link
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 👍

@markov00 markov00 merged commit ba1a67b into elastic:master Jan 3, 2020
@markov00 markov00 deleted the 2020-01-02_fix_zero_specs branch January 3, 2020 09:05
markov00 pushed a commit that referenced this pull request Jan 3, 2020
## [16.0.1](v16.0.0...v16.0.1) (2020-01-03)

### Bug Fixes

* **specs:** shows a chart message without series specified ([#506](#506)) ([ba1a67b](ba1a67b))
@markov00
Copy link
Member Author

markov00 commented Jan 3, 2020

🎉 This PR is included in version 16.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Jan 3, 2020
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
## [16.0.1](elastic/elastic-charts@v16.0.0...v16.0.1) (2020-01-03)

### Bug Fixes

* **specs:** shows a chart message without series specified ([opensearch-project#506](elastic/elastic-charts#506)) ([4112e62](elastic/elastic-charts@4112e62))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released Issue released publicly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants