-
Notifications
You must be signed in to change notification settings - Fork 71
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
Replaced PF3 charts with PF4 #1048
Conversation
Was the font changed back to Overpass? Is the color of the chart a PatternFly standard? |
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.
Travis CI is failing on yarn test
The standard ci build failed (initially) due to needing a pre-seed on ovirt-engine-nodejs-modules
ci test please |
Good catch, I forgot to change font.
Yes, this is default color for Donut in Patternfly 4, but in History charts I changed color to be same as in Patternfly 3. |
ci test please |
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 have a VM that uses the qemu guest agent and it isn't reporting disk partitions. This results in an empty graph with the old charts. With the new charts, the CustomLabel
errors out and the GlobalErrorBoundary kicks in:
Uncaught TypeError: number must be a number, an array of numbers or an object of numbers
at round (round.js:21)
at additionalLabel (DiskCharts.js:124)
at CustomLabel (BarChart.js:7)
at mountIndeterminateComponent (react-dom.development.js:13272)
at beginWork (react-dom.development.js:13711)
at performUnitOfWork (react-dom.development.js:15741)
at workLoop (react-dom.development.js:15780)
at HTMLUnknownElement.callCallback (react-dom.development.js:100)
at Object.invokeGuardedCallbackDev (react-dom.development.js:138)
at invokeGuardedCallback (react-dom.development.js:187)
error The above error occurred in the <CustomLabel> component:
in CustomLabel (created by BarChart)
in g
in VictoryBar (created by ChartBar)
in ChartBar (created by BarChart)
in g
in VictoryStack (created by ChartStack)
in ChartStack (created by BarChart)
in svg (created by VictoryContainer)
in div (created by VictoryContainer)
in VictoryContainer
in VictoryChart (created by Chart)
in Chart (created by BarChart)
in BarChart (created by DiskCharts)
in div (created by DiskCharts)
in div (created by CardBody)
in CardBody (created by DiskCharts)
in div (created by Card)
in Card (created by UtilizationCard)
in UtilizationCard (created by DiskCharts)
in DiskCharts (created by UtilizationCard)
From what I can tell, the error happens because the DiskCharts
component considers an empty diskDetails
(VM.statistics.disk.usage === []). This is ugly but will work:
const diskDetails = diskStats && diskStats.usage && diskStats.usage.datum && diskStats.usage.datum.length > 0 ? diskStats.usage.datum : false
I get the following error in the browser console when mousing over the history charts for Memory and Networking:
delaunator.js:80 Uncaught Error: No Delaunay triangulation exists for this input.
at new Delaunator (delaunator.js:80)
at new Delaunay (index.js:38)
at Function.Delaunay.from (index.js:158)
at Object.getVoronoiPoints (voronoi-helpers.js:151)
at Object.onMouseMove (voronoi-helpers.js:279)
at invokeFunc (debounce.js:95)
at leadingEdge (debounce.js:105)
at Object.debounced [as onMouseMove] (debounce.js:172)
at Object.onMouseMove (victory-voronoi-container.js:352)
at Object.onEvent (events.js:240)
src/components/VmDetails/cards/UtilizationCard/NetworkingCharts.js
Outdated
Show resolved
Hide resolved
src/components/VmDetails/cards/UtilizationCard/UtilizationCharts/DonutChart.js
Outdated
Show resolved
Hide resolved
src/components/VmDetails/cards/UtilizationCard/UtilizationCharts/DonutChart.js
Outdated
Show resolved
Hide resolved
CI tests appear to be failing because with the package.json files updated, jest is now
So in package.json, under the jest section, the transform block needs to be fixed. "transform": {
".+\\.(jsx?)$": "<rootDir>/config/jest/transform.js"
}, |
100953c
to
054d68c
Compare
ci build please |
ci test please |
1 similar comment
ci test please |
Thought: When we have to update the nodejs-modules, it would also be good to update the spec.in file here to require >= the new pre-seed version. That can help cut down on bad builds that happen after the pre-seed patch on nodejs-modules is merged but before the final artifact build is done and distributed as appropriate... |
ci build please |
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.
src/components/VmDetails/cards/UtilizationCard/UtilizationCharts/BarChart.js
Outdated
Show resolved
Hide resolved
src/components/VmDetails/cards/UtilizationCard/UtilizationCharts/DonutChart.js
Outdated
Show resolved
Hide resolved
src/components/VmDetails/cards/UtilizationCard/UtilizationCharts/BarChart.js
Show resolved
Hide resolved
Modified bar chart, updated version of react-charts, change size of donut charts
Suggest to wait until they fix this issue patternfly/patternfly-react#2486 (in worth case I'll fix it), to be more flexible in title and subTitle sizes. |
Created PR to speed up fixing: patternfly/patternfly-react#2488 |
Bug fix was released in version 4.4.17: patternfly/patternfly-react#2488 (comment) Current version in npm is 4.4.7. |
|
||
const AreaChart = ({ data, labels, id }) => { | ||
return ( | ||
<div id={id}> |
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.
@sjd78 suggested this to avoid tooltips being cut off outside of div
.area-container svg {
overflow: visible !important ;
}
As of this evening, the problem persists. I raised an issue with ovirt infra so hopefully it can get fixed soon and this PR can pass standard-ci. |
ci test please |
@bond95 - Reviewed, pre-seed is all set, and builds properly now. You should be good to hand it off to QE now. |
ci test please |
…patternfly/react-charts, changed size of DonutChart
since you opened https://gerrit.ovirt.org/#/c/102906/ - you should update the requirement in ovirt-web-ui.spec |
ci test please |
cf53302
to
e8e8b3a
Compare
ci test please |
LGTM |
- remove pre-seeds from 2018 - pre-seed for: - ovirt-web-ui 2019-06-24 (oVirt/ovirt-web-ui#1048) - ovirt-web-ui 2019-06-25 (oVirt/ovirt-web-ui#1047) - ovirt-engine-ui-extensions (https://gerrit.ovirt.org/101012) Change-Id: I360ef83f6e9ca8d7d2c7196b63644628bebd5d77 Signed-off-by: Scott J Dickerson <[email protected]>
Pull Request: oVirt/ovirt-web-ui#1048 Change-Id: I2e89d0d668a32b7fee1ee5003a6d6d46a1cdfbff Signed-off-by: Bohdan Iakymets <[email protected]>
Pull Request: oVirt/ovirt-web-ui#1048 Change-Id: I38a4846b12d9df08af9eb6e20e70820993b77711 Signed-off-by: Scott J Dickerson <[email protected]>
PR: oVirt/ovirt-web-ui#1048 Removed pre-seed for ui-extentions Patch: https://gerrit.ovirt.org/#/c/103041/ Change-Id: I662b8edd455e6448ad6a878ff9d63597b272a810 Signed-off-by: Bohdan Iakymets <[email protected]>
Fixes: #1031
Big screen

Small screen
