-
Notifications
You must be signed in to change notification settings - Fork 10
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 dependencies (#173, #235) #236
Update dependencies (#173, #235) #236
Conversation
…CSV to work with new types(?)
…ge usage of ConfigService to use { infer: true }
4f25549
to
9819bf0
Compare
ccm_web/package.json
Outdated
@@ -19,98 +19,93 @@ | |||
"author": "", | |||
"license": "ISC", | |||
"dependencies": { | |||
"@kth/canvas-api": "^3.0.3", | |||
"@kth/canvas-api": "^3.3.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.
I guess this is still technically a pre-release. Should we wait to adopt this?
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 decided to wait on this change, I reverted the commit, see fbece5d
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.
Okay, because of the OAuth issue caused by an error type change, I had to change my approach here again. I am going with 4.0.0-0
, which required some method name changes as well.
"morgan": "^1.10.0", | ||
"notistack": "^1.0.5", | ||
"papaparse": "^5.3.0", | ||
"mysql2": "^2.3.2", |
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.
mysql
was already available before because of litjs
, but because we're using it without ltijs
, it seems like we should specify it going forward.
I'm opening this up for review (will probably do more testing though). Please read the notes above, as they should explain most of the changes I made (or did not make). As an aside, I found this tool helpful for checking for new versions: https://github.com/raineorshine/npm-check-updates |
I plan to review it sometime in the afternoon. |
The pagination seems to be broken once you upload the csv file. I checked the with the version on the Dev instance and that is working fine. |
I still see this error nothing new we did not know about. We were hoping upgrade to the libraries might fix this. This issue is commented here #75. Should we create a new issue to handle it or we still believe that resolving #75 will fix this?
|
I think the best way to fix this will be to upgrade to Material UI 5. I think that version will have better support for |
Upgrade to MUI-5 is in Icebox, so should we let this Warning be logged in Console log for user? Your estimate of MUI-5 upgrade is non-trival. I think we need to set the expectation to all that this Warning will happen so ignore for now. WDYT? |
Canvas Auth flow revoking the authorization in canvas is not working. I verified it is working in CCM-Dev
If you want to get around this you need to delete the token from DB then the pre-Auth page comes in to generate the token. |
Darn, okay, I will look into it. |
Another test case odd behavior around Canvas Auth testing
I Think it is erring out but somewhere in BE it is allowing the API call I think this might be somewhat related to this but not exactly the same #104 |
Testing the app from both prod and local mode
Found some issue around Canvas Auth flow but if those issues are fixed then this PR is good to go. This is a Huge dependency update and it might not possible to check every single case. I looked at the major integration point. Pesky little bugs might come up and we should handle it as we go as more people test this. |
@pushyamig, please try testing the OAuth workflow after these changes: 2211bbc To elaborate on the issue, KTH introduced a new |
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.
Looks Good!
@@ -1,7 +1,6 @@ | |||
import React, { useEffect, useState } from 'react' | |||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' | |||
import { Route, Switch, useLocation } from 'react-router-dom' |
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.
Why did you removed BrowserRouter as Router
and used useLocation
instead. what was your thinking behind this? or this is something new with version update?
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 alluded to this in the above note, this is part of changes that thereact-router-dom
is recommending, using their new hooks and <Route>{children}</Route>
instead of <Route render={() => {}} />
. See https://reactrouter.com/docs/en/v6/upgrading/v5 and https://reacttraining.com/blog/react-router-v5-1/. It will make it easier to switch to react-router-dom
6 in the future.
@pushyamig, thank you for the speedy and thorough review; you caught a couple very important issues and I would have been disappointed (in myself) if I committed them to |
This PR updates most project dependencies, with some changes being held back or deferred. See the tasks list below for more information. The PR aims to resolve #173 and #235.
Task list
node
14 (npm
6) tonode
16 (npm 8
). (This resulted in many changes topackage-lock.json
.) Contributors should switch to usingnode
16 locally (i.e. install usingbrew
or other approach and update yourPATH
environment variable).unknown
). See here for more info.@nestjs
version 7 to version 8. Changes include the new use of@nestjs/axios
library (whereHttpModule
was moved), tweaks to howrxjs
was used withHttpModule
due to a deprecation of.toPromise()
, and a new approach to type inference of config variables and declaring they are defined when returned fromConfigService.get
.@kth/canvas-api
that provides native TypeScript support (allowing us to remove our custom types, yay!) (This required some adjustments to handle breaking changes related to method names, see https://github.com/KTH/canvas-api/releases/tag/v4.0.0-1).Grid
components in response to deprecations/interface changes.papaparse
(specificallyPapa.unparse
).docker-compose-prod.yml
sowait-port
is used by overridingentrypoint
.client/src/index.tsx
andclient/src/App.tsx
for latermui
5 andreact-router-dom
6 changes (see https://reactrouter.com/docs/en/v6/upgrading/v5).package.json
because they are unnecessary or will be installed automatically bynpm
8 as they are peer dependencies:@types/helmet
(helmet
has its own types),reflect-metadata
(peer)@types/sequelize
(sequelize
has its own types),eslint-plugin-import
(peer),eslint-plugin-node
(peer), andeslint-plugin-promise
(peer).Postponements
eslint-config-with-standard
doesn't seem to support it yet (see Support ESLint 8 mightyiam/eslint-config-love#728).react-router-dom
6 was just released a few days ago (as of 11/9), so I am waiting on this one. I may make the switch (which involves breaking changes) at the same time as work on Upgrade Material UI #220.