Skip to content

upgrade elastic/charts from v57 to v66#226

Merged
marjisound merged 1 commit intomainfrom
upgrade-elastic/charts-dependancy
Jul 17, 2024
Merged

upgrade elastic/charts from v57 to v66#226
marjisound merged 1 commit intomainfrom
upgrade-elastic/charts-dependancy

Conversation

@marjisound
Copy link
Contributor

@marjisound marjisound commented Jul 17, 2024

What does this change?

Upgrade elastic/charts from v57.0.0 to v66.1.0. The only usage of this dependancy is in TimeHistogram.js and the upgrade does not have any breaking changes in our code base apart from the chart colour which I fixed.

I updated this as an attempt to fix the d3-color vulnerability in https://github.com/guardian/giant/security/dependabot/2 that's suggesting the vulnerable version is introduced by elastic/charts. But it seems that this vulnerebility is also introduced by d3-scale which is also a sub dependancy of the latest version of elastic/charts. So this change doesn't seem to be fixing the main issue of d3-color vulnerability. But it's still good to have the most recent version

How to test

tested locally

The only change in the UI is that the default number of desired ticks in the Y-Axis from 10 to 5. I left it to be default since it's mentioned in the actual elastic chart PR that this helps a bit more when rendering short charts and will help reduce the clutter.
elastic/elastic-charts#2005

before

image

after

image

@marjisound marjisound requested a review from a team as a code owner July 17, 2024 08:54
Copy link
Contributor

@philmcmahon philmcmahon left a comment

Choose a reason for hiding this comment

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

👍🏻

@marjisound marjisound merged commit 190cac6 into main Jul 17, 2024
@marjisound marjisound deleted the upgrade-elastic/charts-dependancy branch July 17, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants