-
Notifications
You must be signed in to change notification settings - Fork 439
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 #1567
Upgrade to Angular 13 #1567
Conversation
This pull request introduces 1 alert when merging fd76e43 into 3ecb3c2 - view on LGTM.com new alerts:
|
2a52572
to
5870e26
Compare
53ec3d6
to
251479c
Compare
019f587
to
78dbe08
Compare
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.
@ybnd and @artlowel : Overall excellent job. I've tested this and found no obvious issues, it looks great. I've also reviewed the code, and overall it also looks good as well -- I noticed despite the size of the PR, it's rather easy to review, as it's mostly a lot of small fixes related to tslint -> eslint migration.
There's only one problem: this PR seems to have accidentally broken CodeCov reports. It's not really a fault of this PR, as it appears to be a bug in Codecov (see my inline comment below). But, I'd like us to find a way to workaround that bug so that Codecov still works (some ideas below).
Beyond that small (but obviously important) thing, I think the rest of this PR looks great!
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.
👍 Thanks @ybnd ! This PR looks good to me now. My minor feedback has been addressed as Codecov is now working on this PR again. As noted on Friday, I tested/reviewed this PR and found it works well & the code looks good.
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.
thanks @ybnd for this importatn PR
we made some test and found out the following problems
The problem with button spacing is due to the preserveWhitespaces
that has been disabled.
For the problem in the browse page i'm not sure if it depends on some new PR merged on the main branch that is not yet merged in this one.
Overall it seems all good, I've only one doubt regarding the fact that now Angular 13 by default use RxJS v7.4 but we are still using v6.6.3. If it's too effort to do in this PR we need a follow-up Pr to migrate it
Extend recommended ESLint rulesets, disable rules that are too noisy or would require major code changes to resolve errors Restore TSLint configuration as closely as possible
eslint-disable max-classes-per-file only works at the top of the file now
And set to true explicitly for MyDSpace action components to preserve look (see DSpace#903 (comment))
This reverts commit 62e7615.
a69a69e
to
f829721
Compare
|
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 reviewed it again and the previous issue are fixed.
I agree to move migration of RXJS and ng-dynamic-form together in a follow-up PR
References
Description
Upgrade to Angular 13
Dependencies
Major changes
webpack
v4 → v5postcss
v7 → v8tslint
toeslint
A few packages don't support Angular 13 (haven't encountered any issues yet)
@nicky-lenaers/ngx-scroll-to
ngx-sortablejs
@ng-dynamic-forms
Fixed SSR failures
Apparently it's the intended behavior of cypress-io/github-action@v2 not to shut down the app after running tests.
This caused the subsequest SSR check to fail sometimes; added an extra CI step to shut down the app to solve this.
Remaining issues / TODO
Upgrade
bootstrap
v4 → v5sass <1.33
forsass-loader
to suppress a bunch of warningsSeems better to address this in a separate PR
With TSLint we used the
indent
rule to enforce spaces for indentation. ESLint's Typescript plugin has a similar rule which is much more strict, but also broken. Because of this we've left it disabled for now.However, the parts of the new rule that do work highlighted some major potential improvements in terms of formatting consistency that we may want to address (e.g. with a formatting tool like Prettier)
Reviewing
dev
andprod
modeChecklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
→ most of the changes in
yarn.lock
yarn run lint
package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.