The challenge
NETSCOUT makes network performance monitoring software. Its nGenius Pulse UI was built entirely on AngularJS, and AngularJS was going end of life on June 30, 2021.
Discovery notes counted over 200 pages to migrate, and only five or six engineers were somewhat fluent in modern Angular. NETSCOUT had to decide whether to migrate in one release or several, and it also wanted a dark mode.
What we found
- The UI relied on $scope and $rootScope contracts.
- Test coverage was lacking.
- The startup flow was unclear.
- State and cache handling were unclear.
What we did
Assessed the architecture
We reviewed the AngularJS page framework and documented goals, findings and a proposed architecture.
Built a hybrid proof of concept
We built an Angular 9 and AngularJS hybrid on the site overview page, with a proposed page framework and hybrid router code.
Chose an incremental path
We recommended Angular Elements over ngUpgrade and an AngularJS to Angular bridge, so current development could continue during the migration.
Set a state and test strategy
We recommended separate data services, caching, NgRx state management, and unit and end-to-end test coverage of at least 90%.
Laid out the build-out
We planned three quarters of 3-week sprints covering TypeScript, the hybrid app, dark mode, NgRx state, tests and cross-training.
The impact
What changed for the business.
A plan before the deadline
NETSCOUT received the nGenius Migration Plan on March 27, 2020, more than a year before AngularJS end of life.
Root issues named
The assessment found $scope and $rootScope contracts, thin test coverage, and an unclear startup flow, state and cache.
Migration without a freeze
The plan used Angular Elements and an AngularJS bridge so current development could continue during the move.
Prototype under way
NETSCOUT moved into a prototype phase on the site overview page.