Upgrade to Angular 10

Bug #1864371 reported by Jane Sandberg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned

Bug Description

Angular 9 is out. It's an exciting release, since it has the new Ivy renderer, which promises some performance improvements.

It also looks like we might be able to deprecate the eg-string component in favor of using $localize directly in the typescript code: https://blog.ninja-squad.com/2019/12/10/angular-localize/

Revision history for this message
Jane Sandberg (sandbergja) wrote :

A note that ng-bootstrap has an Angular 9-compatible release, but it deprecates ngb-tabset in favor of a new ngb-nav component. That will cause us some work during this upgrade...

Bill Erickson (berick)
Changed in evergreen:
status: New → Confirmed
Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
milestone: none → 3.6-beta
Revision history for this message
Bill Erickson (berick) wrote :

Work in progress here:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1864371-angular-v9

So far, so good. Note ngb-tabset is still available in ng-bootstrap 6.1.0 so it's not strictly required we replace all of the tabs. However, I have successfully migrated one set of tabs to see what the process looks like. It's not too bad. Here's the MARC editor tabs migration:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=commitdiff;h=e68712ab3e0bee82ae8c4b13d75aa0062025c871

Changed in evergreen:
status: Confirmed → In Progress
Revision history for this message
Bill Erickson (berick) wrote :

I propose we go ahead and make the jump to Angular 10!

https://blog.angular.io/version-10-of-angular-now-available-78960babd41

The release is by the Angular team's admission "smaller than typical". I was able to build eg2 using Angular 10 without any changes specific to Angular 10 apart from dependency updates.

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1864371-angular-v10

Ng-bootstrap does not officially support Angular 10 yet, but they tend to catch up pretty quickly. Plus, in my tests so far, things are working fine with ng-bootstrap 6.1.0. And we have a few months before this code would be released.

Bill Erickson (berick)
Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
status: In Progress → Confirmed
Revision history for this message
Galen Charlton (gmc) wrote :

And ng-bootstrap 7 now officially supports Angular 10.

Revision history for this message
Galen Charlton (gmc) wrote :

Noting that the consensus of today's dev meeting is to make the jump all the way to 10.

summary: - Upgrade to Angular 9
+ Upgrade to Angular 10
Revision history for this message
Jane Sandberg (sandbergja) wrote :

My testing went well. It will be nice to have those performance improvements from the newer AOT compiler! Signoff at user/sandbergja/lp1864371-angular-v10

tags: added: signedoff
Galen Charlton (gmc)
Changed in evergreen:
assignee: nobody → Galen Charlton (gmc)
Revision history for this message
Galen Charlton (gmc) wrote :

I've tested this and pushed a branch with a couple follow-ups:

- fix a lint complaint
- go ahead and update ng-bootstrap to 7.0.0

The ng-bootstrap change doesn't seem to have any immediate side-effects.

Branch is user/gmcharlt/lp1864371_signoff

Changed in evergreen:
importance: Undecided → Wishlist
Revision history for this message
Galen Charlton (gmc) wrote :

(Noting that bootstrap-css-only hasn't yet released a 4.5.1 yet, but that doesn't appear to be a problem at the moment.)

Changed in evergreen:
assignee: Galen Charlton (gmc) → nobody
Revision history for this message
Bill Erickson (berick) wrote :

Thanks, Galen. I'm going to give this a once-over with your updates.

Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

Sign off to Galen's 2 tip commits pushed:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1864371-angular-v10-2

I did a fresh install from the working branch, poked around, ran tests and lint, and did not have any issues.

Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

And.... merged to master. Thanks All!

Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
status: Confirmed → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.