Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add missing screenshot functions #697

Merged

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Jun 9, 2020

Summary

This PR adds the missing screenshot function to the Partition and Goal charts.

I've updated the export as PNG story to check how this mechanism behaves with different charts.

Integration tests are missing because of some difficulties in retrieving the downloaded image from the dockerized chromium (we don't have a shared volume to pick that image from).

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

@markov00 markov00 added enhancement New feature or request :export Exporting related issue labels Jun 9, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2020

Codecov Report

Merging #697 into master will increase coverage by 0.11%.
The diff coverage is 78.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #697      +/-   ##
==========================================
+ Coverage   73.13%   73.25%   +0.11%     
==========================================
  Files         271      271              
  Lines        8784     8789       +5     
  Branches     1747     1747              
==========================================
+ Hits         6424     6438      +14     
+ Misses       2309     2300       -9     
  Partials       51       51              
Impacted Files Coverage Δ
...art_types/goal_chart/layout/viewmodel/viewmodel.ts 3.12% <0.00%> (ø)
.../chart_types/goal_chart/state/selectors/tooltip.ts 41.66% <ø> (ø)
src/chart_types/index.ts 100.00% <ø> (ø)
..._types/partition_chart/layout/circline_geometry.ts 98.43% <0.00%> (ø)
src/chart_types/partition_chart/layout/geometry.ts 77.77% <ø> (ø)
...types/partition_chart/layout/types/config_types.ts 100.00% <ø> (ø)
...es/partition_chart/layout/types/viewmodel_types.ts 83.33% <ø> (ø)
...c/chart_types/partition_chart/layout/utils/math.ts 100.00% <ø> (ø)
...hart_types/partition_chart/layout/utils/measure.ts 100.00% <ø> (ø)
...tion_chart/layout/viewmodel/hierarchy_of_arrays.ts 88.88% <ø> (ø)
... and 340 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 23290be...cfe2245. Read the comment docs.

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.

Nice! Looks good to me. All chart types export png correctly. 🎉

@markov00 markov00 merged commit 5581c3c into elastic:master Jun 11, 2020
@markov00 markov00 deleted the 2020_06_08-fix_partition_screenshots branch June 11, 2020 09:40
markov00 pushed a commit that referenced this pull request Jun 15, 2020
# [19.5.0](v19.4.1...v19.5.0) (2020-06-15)

### Bug Fixes

* **tooltip:** show true opaque colors in tooltips ([#629](#629)) ([23290be](23290be)), closes [#628](#628)
* path of stacked area series with missing values ([#703](#703)) ([2541180](2541180))
* remove double rendering ([#693](#693)) ([ebf2748](ebf2748)), closes [#690](#690)

### Features

* **partition:** add 4.5 contrast for text in partition slices ([#608](#608)) ([eded2ac](eded2ac)), closes [#606](#606)
* add screenshot functions to partition/goal ([#697](#697)) ([5581c3c](5581c3c))
@markov00
Copy link
Member Author

🎉 This PR is included in version 19.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Jun 15, 2020
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
# [19.5.0](elastic/elastic-charts@v19.4.1...v19.5.0) (2020-06-15)

### Bug Fixes

* **tooltip:** show true opaque colors in tooltips ([opensearch-project#629](elastic/elastic-charts#629)) ([323b325](elastic/elastic-charts@323b325)), closes [opensearch-project#628](elastic/elastic-charts#628)
* path of stacked area series with missing values ([opensearch-project#703](elastic/elastic-charts#703)) ([93f063f](elastic/elastic-charts@93f063f))
* remove double rendering ([#693](elastic/elastic-charts#693)) ([1a9bbb9](elastic/elastic-charts@1a9bbb9)), closes [#690](elastic/elastic-charts#690)

### Features

* **partition:** add 4.5 contrast for text in partition slices ([opensearch-project#608](elastic/elastic-charts#608)) ([59d6d49](elastic/elastic-charts@59d6d49)), closes [opensearch-project#606](elastic/elastic-charts#606)
* add screenshot functions to partition/goal ([opensearch-project#697](elastic/elastic-charts#697)) ([6d2ff64](elastic/elastic-charts@6d2ff64))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request :export Exporting related issue released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants