-
Notifications
You must be signed in to change notification settings - Fork 11
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
Yuhsuan/1974 package update #2113
Conversation
a blind run of e2e tests is promising. no regression is observed. I will have some more detailed tests for each changed libraries. |
@YuHsuan-Hwang mostly it is looking good from manual tests. There is one issue about plotting profile data in points. Please refer to the following video for the problem. All the profile plotters with the three styles (step, line, point) have the same problem. Screen.Recording.2023-03-14.at.11.20.13.mov |
@kswang1029 Fixed by adjust the chartjs bug workaround. |
sounds like another workaround?🤔 |
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.
this is looking good now. no regression from e2e tests. With additional manual tests to chartjs plots, I do not see regressions as far as I can tell. 👍
Description
This PR is for #1974 package upgrades.
axios (for http request)
react-rnd (for floating widgets and dialogs)
Resizing floating widgets causes extra y position change. This is caused by the change of position definition in onResizeStop and is fixed by manually adding the height of the root menu.
video
Screen.Recording.2023-03-06.at.3.15.29.PM.mov
typescript
getSnippets()
react-scripts v5
There are several issues with webpack v5 configuration. We are using webpack via react-scripts, so we can not directly change the webpack configuration. Therefore, we create a patch version of react-scripts by patch-package. A react-scripts+5.0.1.patch file is created in the /patches directory, and now
npm install
calls"postinstall": "patch-package"
afterinstall
to apply the changes in the .patch file. (ref)details of the config changes
We get error messages from node modules created by webassembly, and this is because webpack v5 no longer supports some packages. It's a long-existing issue for create-react-app. Added devDependencies of the packages in Carta, and added package paths in the webpack config. (ref)
raw-loader
is deprecated in webpack v5. Replaced with asset modules. (ref)Extra warnings from webpack. This may be caused by the optimization in webpack v5 which does not allow editting files in node_modules directly. Fixed by adding snapshot.managedPaths config. (ref, ref)
CI node 12 and 14 fails with the new postinstall build process. It is because the Docker containers run as a root user, and root user is required for Github actions. This is fixed by adding file
.npmrc
with settingsunsafe-perm = true
. If we remove CI node 12 and 14 in the future, we can remove this file. (ref, ref)minor type fix in
StokesAnalysisComponent
Chart.js (for histogram plot, contour dialog histogram plot, render config histogram plot, XY profiler, Z profiler, stokes analysis widget QU/PI/PA line plots and QU scatter plot)
PlotContainerComponent
(migration doc)PlotContainerComponent
showLine: false
.showLine
is now always true, and the width of the lines is 0 when the plot type is points.major version jump
minor version jump
We can set react, testing-library, and konva upgrades as a ToDo after the blueprintjs upgrade is merged.
Checklist
For linked issues (if there are):
For the pull request:
changelog updated/ no changelog update neededprotobuf updated to the latest dev commit/ no protobuf update neededBackendService
unchanged /BackendService
changed and corresponding ICD test fix added