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(api): cleanup exposed types #593

Merged
merged 5 commits into from
Mar 18, 2020

Conversation

markov00
Copy link
Member

Summary

This PR removes all the exposed type definitions that are not public, cleaning the API to the only public ones

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)
  • Each commit follows the convention

This commit removes all the exposed type definition of the library to cleanup the public API
@markov00 markov00 force-pushed the 2020_03_18-fix_api_internals branch from e941428 to f59c884 Compare March 18, 2020 12:43
@codecov-io
Copy link

codecov-io commented Mar 18, 2020

Codecov Report

Merging #593 into master will decrease coverage by 0.07%.
The diff coverage is 76.19%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #593      +/-   ##
==========================================
- Coverage   70.63%   70.55%   -0.08%     
==========================================
  Files         220      220              
  Lines        6409     6412       +3     
  Branches     1228     1186      -42     
==========================================
- Hits         4527     4524       -3     
- Misses       1863     1869       +6     
  Partials       19       19              
Impacted Files Coverage Δ
..._types/partition_chart/layout/circline_geometry.ts 3.12% <ø> (ø)
...hart_types/partition_chart/layout/config/config.ts 66.66% <ø> (ø)
src/chart_types/partition_chart/layout/geometry.ts 44.44% <ø> (ø)
.../chart_types/partition_chart/layout/utils/calcs.ts 27.77% <ø> (ø)
...art_types/partition_chart/layout/utils/d3_utils.ts 54.54% <ø> (ø)
...es/partition_chart/layout/utils/group_by_rollup.ts 26.82% <ø> (ø)
...c/chart_types/partition_chart/layout/utils/math.ts 75.00% <ø> (ø)
...hart_types/partition_chart/layout/utils/measure.ts 28.57% <ø> (ø)
...art_types/partition_chart/layout/utils/sunburst.ts 11.11% <ø> (ø)
...hart_types/partition_chart/layout/utils/treemap.ts 10.90% <ø> (ø)
... and 189 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 e8c89ec...dd5913d. 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.

LGTM thanks for doing this and adding a script in the package.json to make sure we add @internal to future code that doesn't need to be public 💪

@markov00 markov00 merged commit 544b7cc into elastic:master Mar 18, 2020
@markov00 markov00 deleted the 2020_03_18-fix_api_internals branch March 18, 2020 21:55
markov00 pushed a commit that referenced this pull request Mar 18, 2020
# [18.1.0](v18.0.0...v18.1.0) (2020-03-18)

### Bug Fixes

* add unicorn eslint as dev dependency ([#591](#591)) ([30fd07c](30fd07c))

### Features

* remove duplicate tick labels from axis ([#577](#577)) ([e8c89ec](e8c89ec)), closes [#445](#445)
* **api:** cleanup exposed types ([#593](#593)) ([544b7cc](544b7cc))
* **partition:** general sunburst via slice show control ([#592](#592)) ([5e6a30b](5e6a30b))
@markov00
Copy link
Member Author

🎉 This PR is included in version 18.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Mar 18, 2020
@markov00
Copy link
Member Author

🎉 This PR is included in version 18.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants