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

Update dependency @elastic/charts to v16 #52619

Merged
merged 20 commits into from
Jan 4, 2020

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Dec 10, 2019

Summary

This PR contains the following updates:

Package Type Update Change
@elastic/charts dependencies major ^14.0.0 -> ^16.0.1

Release Notes

elastic/elastic-charts

16.0.1 (2020-01-03)

Bug Fixes

  • specs: shows a chart message without series specified (#506) (ba1a67b)

16.0.0 (2020-01-02)

Bug Fixes

  • external pointer: avoid recursive-loops on pointer events (#503) (c170f0d), closes #504

BREAKING CHANGES

  • external pointer: The onCursorUpdate Settings property is changed to a more generic
    onPointerUpdate. The same apply for the event type CursorEvent that is now PointerEvent and can assume a PointerOverEvent or PointOutEvent shape (see TS types)

15.0.5 (2019-12-12)

Bug Fixes

15.0.4 (2019-12-12)

Bug Fixes

15.0.3 (2019-12-05)

Bug Fixes

15.0.2 (2019-12-05)

Bug Fixes

  • crosshair: hide horizontal line when the pointer is outside chart (#484) (654d929), closes #483

15.0.1 (2019-12-02)

Bug Fixes

15.0.0 (2019-12-02)

Code Refactoring

BREAKING CHANGES

  • GeometryId is now SeriesIdentifier. customSeriesColors prop on SeriesSpec which used to take a CustomSeriesColorsMap, now expects a CustomSeriesColors type. LegendItemListener now passes the SeriesIdentifier type as the first callback argument.
  • SpecId,AxisId, AnnotationId types are down-casted to a string type. The getSpecId, getAxisId and getAnnotationId methods still exist and but return just the same passed string until deprecated in a future version. The spec ids, previously id, axisId,annotationId etc are now aligned to use the same prop name: id. The chart rendering status data-ech-render-complete and data-ech-render-count is no more at the root level of the echChart div, but on its child element: echChartStatus. The Spec has two new private properties called chartType and specType.

Compare Source

PR Notes:

The PR fix the hover issues discovered by @peteharverson in the ML charts.

Missing discussion points

#50513 (comment)

from: @nickofthyme to: @spalger

I wanted to verify with you. I kept getting the following error when react hooks since we are currently using react as a dependency not a peerDependency in @elastic/charts. Hopefully, this is changed soon 👉elastic/elastic-charts#378

Uncaught Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app

I was able to fix it by adding react to the yarn resolutions to force the version to match/use that of kibana but wanted to make sure this doesn't have any negative consequences that I'm not aware of, so long as all checks pass.


Checklist

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

For maintainers

@markov00 markov00 added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes dependencies Pull requests that update a dependency file v7.6.0 labels Dec 10, 2019
@markov00 markov00 requested a review from a team December 10, 2019 11:42
@markov00 markov00 requested review from a team as code owners December 10, 2019 11:42
@simianhacker
Copy link
Member

Is this a duplicate of #52621

@markov00
Copy link
Member Author

hey @jbudz @simianhacker could you please re-approve/review this PR? I've closed the Renovate one because someone (the Renovate bot, us or someone else) rebased the renovate bot PR removing our changes and to avoid losing again the changes I opened this one. Thanks and sorry for the noise.

@simianhacker simianhacker self-requested a review December 16, 2019 16:06
Copy link
Member

@simianhacker simianhacker left a comment

Choose a reason for hiding this comment

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

As I was testing I ran into this error. To reproduce:

  1. Go to Metrics Explorer
  2. Add a metric, wait for page to update.
  3. Delete the metric

image

I checked master and everything works as expected. Let me know if there is more we need to do on our end to prevent this.

@elastic elastic deleted a comment from elasticmachine Dec 17, 2019
@markov00
Copy link
Member Author

As I was testing I ran into this error. To reproduce:

  1. Go to Metrics Explorer
  2. Add a metric, wait for page to update.
  3. Delete the metric

image

I checked master and everything works as expected. Let me know if there is more we need to do on our end to prevent this.

@simianhacker I will add a missing check on your code. I will also update the library to fix that internally (the chart throw that error when you have a chart with no series in it

@elastic elastic deleted a comment from elasticmachine Dec 27, 2019
@markov00
Copy link
Member Author

blocked by elastic/elastic-charts#503

@markov00 markov00 changed the title Update dependency @elastic/charts to v15 Update dependency @elastic/charts to v16 Jan 3, 2020
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested ML charts and all LGTM. Confirmed that the hover issue is fixed, so if tooltip type is set as None, the highlighter on bars and points is no longer displayed.

@markov00
Copy link
Member Author

markov00 commented Jan 3, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@markov00 markov00 merged commit 9d5603a into elastic:master Jan 4, 2020
markov00 added a commit to markov00/kibana that referenced this pull request Jan 4, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 6, 2020
* master:
  increase delay to make sure license refetched (elastic#53882)
  Allow custom NP plugin paths in production (elastic#53562)
  [Maps] show custom color ramps in legend (elastic#53780)
  [Lens] Expression type on document can be null (elastic#53883)
  [SIEM] [Detection engine] Add user permission to detection engine (elastic#53778)
  Update dependency @elastic/charts to v16.0.2 (elastic#52619)
  Set consistent EOL symbol in core API docs (elastic#53815)
  [Logs UI] Refactor query bar state to hooks (elastic#52656)
  [Maps] pass getFieldFormatter to DynamicTextProperty (elastic#53937)
  Invalidate alert API Key when generating a new one (elastic#53732)
  [Logs UI] HTTP API for log entries (elastic#53798)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 6, 2020
* master:
  increase delay to make sure license refetched (elastic#53882)
  Allow custom NP plugin paths in production (elastic#53562)
  [Maps] show custom color ramps in legend (elastic#53780)
  [Lens] Expression type on document can be null (elastic#53883)
  [SIEM] [Detection engine] Add user permission to detection engine (elastic#53778)
  Update dependency @elastic/charts to v16.0.2 (elastic#52619)
  Set consistent EOL symbol in core API docs (elastic#53815)
  [Logs UI] Refactor query bar state to hooks (elastic#52656)
  [Maps] pass getFieldFormatter to DynamicTextProperty (elastic#53937)
  Invalidate alert API Key when generating a new one (elastic#53732)
  [Logs UI] HTTP API for log entries (elastic#53798)
  [kbn/pm] add caching to bootstrap (elastic#53622)
  adds createdAt and updatedAt fields to alerting (elastic#53793)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 6, 2020
* master:
  increase delay to make sure license refetched (elastic#53882)
  Allow custom NP plugin paths in production (elastic#53562)
  [Maps] show custom color ramps in legend (elastic#53780)
  [Lens] Expression type on document can be null (elastic#53883)
  [SIEM] [Detection engine] Add user permission to detection engine (elastic#53778)
  Update dependency @elastic/charts to v16.0.2 (elastic#52619)
  Set consistent EOL symbol in core API docs (elastic#53815)
  [Logs UI] Refactor query bar state to hooks (elastic#52656)
  [Maps] pass getFieldFormatter to DynamicTextProperty (elastic#53937)
  Invalidate alert API Key when generating a new one (elastic#53732)
  [Logs UI] HTTP API for log entries (elastic#53798)
  [kbn/pm] add caching to bootstrap (elastic#53622)
  adds createdAt and updatedAt fields to alerting (elastic#53793)
  [SR] Enable component integration tests (elastic#53893)
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jan 6, 2020
…nsole-dependencies

* 'master' of github.com:elastic/kibana: (33 commits)
  adds strict types to Alerting Client (elastic#53821)
  [Dashboard] Empty screen redesign (elastic#53681)
  Migrate config deprecations and `ShieldUser` functionality to the New Platform (elastic#53768)
  increase delay to make sure license refetched (elastic#53882)
  Allow custom NP plugin paths in production (elastic#53562)
  [Maps] show custom color ramps in legend (elastic#53780)
  [Lens] Expression type on document can be null (elastic#53883)
  [SIEM] [Detection engine] Add user permission to detection engine (elastic#53778)
  Update dependency @elastic/charts to v16.0.2 (elastic#52619)
  Set consistent EOL symbol in core API docs (elastic#53815)
  [Logs UI] Refactor query bar state to hooks (elastic#52656)
  [Maps] pass getFieldFormatter to DynamicTextProperty (elastic#53937)
  Invalidate alert API Key when generating a new one (elastic#53732)
  [Logs UI] HTTP API for log entries (elastic#53798)
  [kbn/pm] add caching to bootstrap (elastic#53622)
  adds createdAt and updatedAt fields to alerting (elastic#53793)
  [SR] Enable component integration tests (elastic#53893)
  Move index patterns: src/legacy/core_plugins/data 👉 src/plugins/data (elastic#53794)
  moved Task Manager server code under "server" directory (elastic#53777)
  Rename `/api/security/oidc` to `/api/security/oidc/callback`. (elastic#53886)
  ...

# Conflicts:
#	yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file release_note:skip Skip the PR/issue when compiling release notes v7.6.0 v8.0.0
Projects
None yet
6 participants