You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Marko Nikolić <ma...@gmail.com> on 2017/05/04 22:13:58 UTC
AngularJS version
Hello,
Is there some reason for keeping the AngularJS version that is almost two
years old (1.3.16)? I am asking because I am expriencing angular bug
https://github.com/angular/angular.js/issues/13380 in my extension, which
is solved in the more recent version of angular.
Regards,
Marko
Re: AngularJS version
Posted by Al Gore <co...@securityresearch.us>.
Hey not to bring up an old thread, but I have been diving into this program
extensively for the past few months.
It is possible to upgrade the front end web application directly to 1.4.14.
This could be changed and tested very easily, I have been running this for a
while now (although to be fair, it's an extremely modified version of your
angular app).
To upgrade to 1.5, the primary issue is that many times objects {} are sent
into orderBy (such as on the client page) which is no longer supported (they
must be arrays now). I plan to make a "object property-to array" service to
fix this.
To upgrade to 1.6, the primary issue is with the extensive use of
$http(...).success(). This no longer exists. This would be a large
undertaking as every instance of
$http(...).success(function (headers, data, etc) {})
would need to be changed to
$http(...).then(function (response) { response.headers, response.data,
response.etc } )
I will be doing this soon. Let me know if you would like me to to fork and
upgrade your project when I'm done.
--
View this message in context: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/AngularJS-version-tp913p1020.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at Nabble.com.
Re: AngularJS version
Posted by Mike Jumper <mi...@guac-dev.org>.
On Thu, May 4, 2017 at 5:34 PM, Marko Nikolić <ma...@gmail.com>
wrote:
> The last comment in the bug report says it is fixed in 1.4.9.
>
The description for the bug report itself also says this is a regression
introduced in 1.4.0, and that it does not occur in 1.3.20. If that is true,
then upgrading to 1.3.20 might be a more reasonable solution for the time
being. Doing that shouldn't result in things breaking. If you want to give
that a shot, you can do so by editing guacamole's pom.xml:
https://github.com/apache/incubator-guacamole-client/blob/1c0ee41d0ecd5bc4a3550804b74b73b901e074c2/guacamole/pom.xml#L337-L361
and index.html:
https://github.com/apache/incubator-guacamole-client/blob/1c0ee41d0ecd5bc4a3550804b74b73b901e074c2/guacamole/src/main/webapp/index.html#L59-L63
and then rebuilding. If angular-translate breaks as a result, that may need
to be upgraded, too.
As for the actual full-blown update to 1.4.x, it's worth doing, but it's a
substantial task:
https://docs.angularjs.org/guide/migration#migrating-from-1-3-to-1-4
Given the effort involved there, I'd say we may as well look into what
would be involved bringing things all the way to the latest (1.6.4), but
again ... it's a very large task. It should be done, but cannot be done
quickly/soon.
- Mike
Re: AngularJS version
Posted by Marko Nikolić <ma...@gmail.com>.
The last comment in the bug report says it is fixed in 1.4.9.
Marko
пет, 5. мај 2017. 02.31 Mike Jumper <mi...@guac-dev.org> је
написао/ла:
> On May 4, 2017 3:14 PM, "Marko Nikolić" <ma...@gmail.com>
> wrote:
>
> Hello,
>
> Is there some reason for keeping the AngularJS version that is almost two
> years old (1.3.16)?
>
>
> The main reason is compatibility. The entire UI would need to be retested.
> Not all AngularJS versions are 100% compatible with each other, so
> upgrading it can be a major task.
>
> I am asking because I am expriencing angular bug
> https://github.com/angular/angular.js/issues/13380 in my extension, which
> is solved in the more recent version of angular.
>
>
> How recent?
>
>
Re: AngularJS version
Posted by Mike Jumper <mi...@guac-dev.org>.
On May 4, 2017 3:14 PM, "Marko Nikolić" <ma...@gmail.com> wrote:
Hello,
Is there some reason for keeping the AngularJS version that is almost two
years old (1.3.16)?
The main reason is compatibility. The entire UI would need to be retested.
Not all AngularJS versions are 100% compatible with each other, so
upgrading it can be a major task.
I am asking because I am expriencing angular bug https://github.com/
angular/angular.js/issues/13380 in my extension, which is solved in the
more recent version of angular.
How recent?