Update to Angular version 8

Bug #1830973 reported by Bill Erickson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned
Bill Erickson (berick)
Changed in evergreen:
status: New → In Progress
Revision history for this message
Bill Erickson (berick) wrote :

Note to self:

https://update.angular.io/#7.2:8.0

Going to pause this and give project dependencies (e.g. ng-bootstrap) some time to catch up.

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

ng-bootstrap now officially supports Angular 8. I have pushed a working branch that migrates current master from Angular 7 to Angular 8. It's a messy branch at the moment and needs a lot more testing, but wanted to get it posted:

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

Note it requires update Node (see changes in Makefile.install) and a 'rm -rf node_modules' and 'npm install'

Angular dev/prod, Angular tests and ng-lint all pass. Similarly AngularJS building does not appear to be negatively impacted by the NodeJS update.

Will test more and clean up branch soon.

Revision history for this message
Bill Erickson (berick) wrote :

Beware any Angular branches merged after this branch will require updates to be Angular8-compatible. There's a migration routine built in to automate the process (though in some cases it may require manual intervention).

The command:

ng update @angular/core --from 7 --to 8 --migrate-only

And when we do decide to flip the switch, I can redo the migration on current master.

Galen Charlton (gmc)
Changed in evergreen:
milestone: 3.4-beta1 → 3.next
importance: Undecided → Wishlist
status: New → Confirmed
Bill Erickson (berick)
Changed in evergreen:
milestone: 3.next → 3.5-alpha
Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

Updated branch pushed:

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

To test, first update dependencies:

$ wget -N https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz

$ sudo tar -C /usr/local --strip-components 1 -xJf node-v12.13.0-linux-x64.tar.xz

$ sudo npm install -g @angular/cli@^8.2.0

$ cd $EVERGREEN/Open-ILS/src/eg/ ; npm install

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

Looks good to me and spot-checking in the UI works. Signoff branch is working/user/gmcharlt/lp1830973_signoff

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

This has been pushed to master. Thanks, Bill and Galen!

Changed in evergreen:
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.