Upgrade AngularJS 1.5 to Angular 7.0


#1

OFN uses AngularJS 1.5.
After version 2.0 AngularJS was renamed to Angular.
LTS for Angular version 4 ended on September, 2018
Angular is now on version 7.

This is obviously a major problem in terms of maintaining up to date frameworks and libraries in OFN.

I believe this has not been discussed in the community so far.
An alternative better seen by most current developers (but not obviously the easiest or the best) is to drop angular and pick a new framework like React to build the OFN frontend.

Not an easy decision, but we recently agreed we need to raise this topic for awareness…


#2

An alternative better seen by most current developers (but not obviously the easiest or the best) is to drop angular and pick a new framework like React to build the OFN frontend.

yes, I’m afraid a rewrite in React is not the most affordable solution :sob: Wouldn’t the frontend benefit as well from being split into domains? I wonder if there’s a way to gradually migrate to an up-to-date framework, whichever.


#3

angular code will be moved to domains as the domains start to emerge.
This is described here: https://github.com/openfoodfoundation/openfoodnetwork/wiki/Tech-Doc:-How-OFN-is-organized-in-Domains-using-Rails-Engines#technical-structure
and already done here: https://github.com/openfoodfoundation/openfoodnetwork/tree/master/engines/web/app/assets/javascripts/web

we can then migrate one domain at a time to a diff tech or version of angular.


#4

dependabot thought of start this automatically :slight_smile: