Closed Bug 1364888 Opened 7 years ago Closed 6 years ago

Update from AngularJS 1.5 to 1.6

Categories

(Tree Management :: Treeherder: Frontend, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

We're currently using 1.5.11.

The 1.6 release includes a number of bug fixes and performance improvements:
https://github.com/angular/angular.js/blob/master/CHANGELOG.md#160-rainbow-tsunami-2016-12-08

Upgrade guide:
https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6
Depends on: 1375891
No longer blocks: 1364010
Component: Treeherder → Treeherder: Frontend
Blocks: 1067846
Keywords: perf
Priority: P3 → P2
The Renovate bot PR for this is here:
https://github.com/mozilla/treeherder/pull/3044
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Comment on attachment 8939012 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3073

I've deployed this plus the React 16 PR, plus the Angular UI-router PR all to https://treeherder-prototype.herokuapp.com/ to allow for testing - in case that helps :-)
Attachment #8939012 - Flags: review?(cdawson)
Comment on attachment 8939012 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3073

Just one little thing.  Thanks for doing this!!  :)
Attachment #8939012 - Flags: review?(cdawson) → review-
Comment on attachment 8939012 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3073

I've updated the PR to fix the pre-existing bug - good spot :-)

It's been rebased on master and deployed to prototype for testing, along with PR 3101 (the unused DI parameter one).
Attachment #8939012 - Flags: review- → review?(cdawson)
Blocks: 1364894
Comment on attachment 8939012 [details] [review]
Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3073

Works now.  Thanks for doing this upgrade!  :)
Attachment #8939012 - Flags: review?(cdawson) → review+
Commits pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/27e516ff4efe1f4379bcf71c1612501407e21a1d
Bug 1364888 - Stop using deprecated $http callback methods

Angular v1.4.4 deprecated `$http`'s `.success()` and `.error()`
callbacks in favour of `.then()` and `.catch()`. The deprecated forms
are finally removed in Angular 1.6, so we need to stop using them:
https://docs.angularjs.org/guide/migration#-http-

https://github.com/mozilla/treeherder/commit/3ada44e0192d37b4badb4d0756ed105bf5b1b667
Bug 1364888 - Upgrade to AngularJS 1.6

The previous commit switched us away from the deprecated `$http`
callback methods, meaning the only other breaking change that affects
us is the `hashPrefix` change, which we revert by manually setting
it back to the empty string, so that existing URLs still work:
https://docs.angularjs.org/guide/migration#commit-aa077e8

For more details, see:
https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6
https://github.com/angular/angular.js/blob/master/CHANGELOG.md#160-rainbow-tsunami-2016-12-08

Closes #3044.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Depends on: 1428958
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: