-
Notifications
You must be signed in to change notification settings - Fork 377
Bump victory 34.0.x #3556
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
Bump victory 34.0.x #3556
Conversation
|
PatternFly-React preview: https://patternfly-react-pr-3556.surge.sh |
aljesusg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGFM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've build Cost Management with 34.0, which seems to work fine.
My concern is that this will force app's to update their own dependency? For example, I'd likely need to update Cost Management's Victory packages. We install Victory mainly to define some data types; DomainTuple, VictoryStyleInterface, etc.
Perhaps we can create a peer dependency with a version of "^33.0|^34.0"?
That said, the activePoints prop would not be available in the existing ChartTooltip. We would need to add the new prop there to make it available to users.
Not sure to understand, I don't know how Cost Management dependencies are managed, isn't it a simple dependency to PF that transitively pulls victory? So victory packages are automatically updated when you update patternfly?
This is not actually the Tooltip component that gets this new props, but the internal Flyout and Label components... which can be customized. So it doesn't necessitate changes in pf's So it's in CustomFlyout and CustomLabel that we can get |
|
It appears that VictoryTooltip has a new |
|
@dlabrecq sorry, yes there's this new props what I wanted to say is that it's not required to have it formalized in If that can help, here's a workflow example: User creates So the ChartTooltip here is transitory and user doesn't act upon it for |
dlabrecq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talking with the PatternFly infrastructure team and this will need to wait for a breaking change release. That is, considering apps may need to update their own version of Victory as well (e.g., for customization, types, etc.)
While we update to 34.0.x, we should also update @types/victory.
| "victory": "^34.0.1", | ||
| "victory-core": "^34.0.0", | ||
| "victory-tooltip": "^34.0.1", | ||
| "victory-voronoi-container": "^34.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We import VictoryVoronoiContainer from the victory package, so probably don't need to add victory-voronoi-container here?
I'd like to bump victory charts to 34.0.x, to get a patch I did there: FormidableLabs/victory#1474
This will enable having better / more customized tooltips. Like here in kiali:
This version upgrade (33.x to 34.x) is supposedly a breaking change but I'm not sure if it can have any impact on patternfly. There's actually just a single breaking change: https://github.com/FormidableLabs/victory/blob/master/CHANGELOG.md#3400-2019-12-20
It's about using react's context API. I've built and did some smoke tests locally without seeing anything broken.