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

refactor(typings): prepare for upgrade TS to 3.7 #402

Merged
merged 2 commits into from
Nov 11, 2019

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Oct 3, 2019

Summary

There are currently to main issue that needs to be resolved before upgrading TS to 3.7:

BREAKING CHANGE:
We have few exported styles, used in the Theme that are changed: SharedGeometryStyle to SharedGeometryStateStyle and GeometryStyle to GeometryStateStyle

@reviewers please double check locally on your browsers if the behaviour of the mouse and the brush is the same (I've tested it on chrome, safari, firefox and IE11 using various chart configuration in the playground).

ref issue in Kibana: elastic/kibana#47188

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

There are currently to main issue that needs to be resolved before upgrading TS to 3.7: a duplicated
GeometryStyle type, that I renamed to GeometryStateStyle (the one used on the SharedGeometryStyle),
and an issue with the missing layerX and layerY property on the MouseEvent after this PR merged into
TS
https://github.com/microsoft/TypeScript/pull/32578/files#diff-46fd87925e4552c166ec188712741c3fL10335-L10336
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.

Tested locally, LGTM!

src/chart_types/xy_chart/utils/series.ts Show resolved Hide resolved
Copy link
Contributor

@monfera monfera left a comment

Choose a reason for hiding this comment

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

Good change; minor: would prefer the regular for (let i = 0; ...)

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.

This LGTM too

@codecov-io
Copy link

codecov-io commented Nov 5, 2019

Codecov Report

Merging #402 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #402      +/-   ##
==========================================
+ Coverage   97.39%   97.39%   +<.01%     
==========================================
  Files          41       41              
  Lines        2875     2876       +1     
  Branches      675      675              
==========================================
+ Hits         2800     2801       +1     
  Misses         66       66              
  Partials        9        9
Impacted Files Coverage Δ
src/utils/themes/theme.ts 100% <ø> (ø) ⬆️
src/chart_types/xy_chart/rendering/rendering.ts 96.61% <100%> (ø) ⬆️
src/utils/themes/theme_commons.ts 100% <100%> (ø) ⬆️
...onents/react_canvas/utils/rendering_props_utils.ts 100% <100%> (ø) ⬆️
src/chart_types/xy_chart/utils/series.ts 100% <100%> (ø) ⬆️

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 3bf5fd5...240ea99. Read the comment docs.

@joshdover
Copy link

Can this be merged? TypeScript 3.7 has now been released and we'd like to get Kibana upgraded.

@nickofthyme nickofthyme merged commit e2700de into elastic:master Nov 11, 2019
markov00 pushed a commit that referenced this pull request Nov 11, 2019
# [14.0.0](v13.6.0...v14.0.0) (2019-11-11)

### Code Refactoring

* **typings:** prepare for upgrade TS to 3.7 ([#402](#402)) ([e2700de](e2700de))

### BREAKING CHANGES

* **typings:** We have a few exported styles, used in the Theme that are changed: SharedGeometryStyle to SharedGeometryStateStyle and GeometryStyle to GeometryStateStyle
@markov00
Copy link
Member Author

🎉 This PR is included in version 14.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Nov 11, 2019
@markov00 markov00 deleted the prepare-for-ts37 branch November 25, 2020 11:44
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
# [14.0.0](elastic/elastic-charts@v13.6.0...v14.0.0) (2019-11-11)

### Code Refactoring

* **typings:** prepare for upgrade TS to 3.7 ([opensearch-project#402](elastic/elastic-charts#402)) ([039a587](elastic/elastic-charts@039a587))

### BREAKING CHANGES

* **typings:** We have a few exported styles, used in the Theme that are changed: SharedGeometryStyle to SharedGeometryStateStyle and GeometryStyle to GeometryStateStyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants