-
Notifications
You must be signed in to change notification settings - Fork 68
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
Upgrade to Angular 13 #1249
Upgrade to Angular 13 #1249
Conversation
Loading service still works CATcher.3.5.2.-.CATcher-org_bugreporting.-.Google.Chrome.2024-03-04.12-02-31.mp4 |
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.
LGTM for the most part! 🚀 code looks fine
Works alright on my machine as well
We have upgraded to Angular 13. Lets bump ngx-markdown to v13 to support the newer Angular version.
This line gave me typescript erorr TS2362.
In Angular 13, FactoryComponent and FactoryComponentResolver API got deprecated. This commit removes the deprecated API in favor of other APIs where Component classes can be used directly. The affected classes are loading.service.ts and its spec file.
The `[email protected]` library does not support Angular 13. As such, we are upgrading to `[email protected]`. With this change, there are several breaking changes that we must add to our codebase. See: Migration guide to apollo-angular v3 https://the-guild.dev/graphql/apollo-angular/docs
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.
LGTM 🚀 Again, most of the changes are dependency based, and seems to work alright.
SystemOS: macOS Sonoma 14.4.1 Actions Run
Tested Phases
No bugs found |
Once we use Node 16 for the GitHub CI tests we need to update the branch protection to require |
Finally got the CI working. This comment will detail the changes made to the environment for the Angular 13 upgrade:
|
SystemOS: Windows 10 Actions Run
All success Tested Phases
No bugs found |
Thanks for the fix @cheehongw! I have some comments on the octokit dependency.
|
Thanks for the review @chunweii
|
SystemOS: Ubuntu 22.04 Actions Run
All success Tested Phases
No bugs found |
This old version of octokit (v16) does not support the use of ESM imports (I don't see it in the documentations), which imo makes the type checking better. Furthermore, one of the dependencies in octokit/rest is causing the problem of installing an incompatible version of octokit/core. I tried installing v18 and there were no issues with installation afterwards (but I could also have tried 17, or some other version) But I agree we should not upgrade octokit in this PR |
Summary:
Upgrade to Angular 13 and Node 16
This pull request addresses some of the outdated packages in our application.
Partially addresses #1192
Changes Made:
Upgrade to Angular 13 using ng update
See: https://update.angular.io/?l=3&v=12.0-13.0
tslint config got removed in
angular.json
due to it being deprecated.Upgrade dependency
[email protected]
from12.0.1
to support Angular 13ComponentFactory
andComponentFactoryResolver
got removed in Angular 13. UpdatedLoadingService
and its spec file to use the component directly.MatSpinner
got renamed toMatProgressSpinner
in Angular 13Upgrade
[email protected]
to3.0.1
to support Angular 13ApolloModule
under AppModuleUpdated
karma.conf.js
because tests with--code-coverage
were failing. Fix was found hereProposed Commit Message: