#8449 jQuery Upgrade

v1.14.0
closed
None
General
2022-09-23
2022-08-01
No

Upgrade jQuery to the latest version.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2022-08-04
    • looks like you forgot to add jquery-migrate-3.4.0.js?
    • jquery-base.js can be deleted
    • there are 2 LICENSE file that mention jquery-base.js, we need to update those with the 3 new jquery related files
    • also update rat-excludes.txt for the new files. That is used by https://creadur.apache.org/rat/ to make sure we have acceptable licenses for all our files
    • https://jquery.com/upgrade-guide/3.0/#ajax says:

      Note that this does not have any impact at all on the ajax callbacks of the same name passed through the options object, which continue to exist and are not deprecated. This only affects the jqXHR methods.

    so I think we don't need to change (and maybe must not change?) code like this. Maybe Allura doesn't need any ajax changes?

                   $.ajax({
                     url: "%suser_search",
                     dataType: "json",
                     data: {
                       term: request.term
                     },
    -                success: function (data) {
    +                done: function (data) {
                       response(data.users);
                     }
                   });
    
     
  • Guillermo Cruz - 2022-08-05

    Yes, I did missed that notice about the ajax methods, thanks!. I reverted the commit with the ajax changes, tested and we really don't need them as you pointed out.

    I also added the missing jquery-migrate file and updated license files with new file paths.

     
  • Dave Brondsema

    Dave Brondsema - 2022-08-09
    • status: open --> closed
    • Reviewer: Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2022-09-23
    • Milestone: unreleased --> v1.14.0
     

Log in to post a comment.