Skip to content

Upgrade DataTables to v3.0.1 - #6497

Open
Amemeda wants to merge 7 commits into
apache:mainfrom
Amemeda:datatables-upgrade
Open

Upgrade DataTables to v3.0.1#6497
Amemeda wants to merge 7 commits into
apache:mainfrom
Amemeda:datatables-upgrade

Conversation

@Amemeda

@Amemeda Amemeda commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Upgrade DataTables v1.13.11 -> v3.0.1 (latest non-beta)
Updated project files for DataTables (upgrade files from https://cdn.datatables.net/3.0.1/):

  • accumulo/LICENSE: update DataTables version #
  • META-INF/LICENSE: update DataTables version #
  • resources/LICENSE: update DataTables version #
  • dataTables.js: (formerly jquery.dataTables.js) updated to v3.0.1
  • dataTables.bootstrap5.js
  • dataTables.bootstrap5.css
  • default.ftl: updated source path to new dataTables.js

Upgrade DataTables Buttons v2.4.2 -> v4.0.1 (latest non-beta)
Buttons must also be upgraded to meet compatibility requirements with DataTables 3.0.1.
Updated project files for DataTables Buttons (upgrade files from https://cdn.datatables.net/buttons/4.0.1/):

  • accumulo/LICENSE: update DataTables Buttons version #
  • META-INF/LICENSE: update DataTables Buttons version #
  • resources/LICENSE: update DataTables Buttons version #
  • buttons.bootstrap5.js
  • buttons.bootstrap5.css
  • buttons.colVis.js
  • dataTables.buttons.js

Upgrade DataTables ColReorder v1.7.0 -> v3.0.0 (latest non-beta)
ColReorder must also be upgraded to meet compatibility requirements with DataTables 3.0.1
Updated project files for DataTables ColReorder (upgrade files from https://cdn.datatables.net/colreorder/3.0.0/):

  • accumulo/LICENSE: update DataTables ColReorder version #
  • META-INF/LICENSE: update DataTables ColReorder version #
  • resources/LICENSE: update DataTables ColReorder version #
  • colReorder.bootstrap5.js
  • colReorder.bootstrap5.css
  • dataTables.colReorder.js

js/css Updates

  • the dom property has been deprecated, usages replaced with layout
  • DataTables initialization syntax updated to use new DataTable('#myTable', { . This feature was introduced in DataTables 2: "Both forms will still work! The change is primarily due to the increasing use of ES Modules where the DataTable object is imported without the need to also import jQuery.". While the original syntax is still usable for backwards compatibility, DataTables now has 0 dependencies as of 3.0.0-beta.1, including jQuery. So this pr uses the new syntax as DataTables moves to rely less on jQuery.

Compatibility Requirements with External JS Libraries:

  • JQuery v1.8+ (currently v3.7.1)
  • Bootstrap any version, recommended v4 or v5 (currently v5.3.8)
  • DataTables Buttons v3+ (upgraded to v4.0.1 in this pr)
  • DataTables ColReorder v3+ (upgraded to v3.0.0 in this pr)

Some Upgrade References:
https://cdn.datatables.net/releases.html (DataTables releases)
https://cdn.datatables.net/3.0.1/ (DataTables 3.0.1 upgrade files)
https://cdn.datatables.net/buttons/ (Buttons releases)
https://cdn.datatables.net/buttons/4.0.1/ (Buttons 4.0.1 upgrade files)
https://cdn.datatables.net/colreorder/ (ColReorder releases)
https://cdn.datatables.net/colreorder/3.0.0/ (ColReorder 3.0.0 upgrade files)
https://datatables.net/download/release-notes
https://datatables.net/download/upgrade/

This pr closes #4972

@Amemeda Amemeda changed the title Upgrade Datatables to v2.1.0 Upgrade DataTables to v2.1.0 Aug 6, 2026
@DomGarguilo

Copy link
Copy Markdown
Member

jquery.datatables.min.js contents needs to be updated but file is auto generated, how will this get updated?

I didn't think we had any minified (.min) files in the project (on purpose). Do you see that somewhere?

@Amemeda

Amemeda commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

these are probably not actually in the project then

image

@DomGarguilo

DomGarguilo commented Aug 6, 2026

Copy link
Copy Markdown
Member

these are probably not actually in the project then

image

No, looks like those are from Hadoop. So no work to do on our end 👍

@Amemeda Amemeda changed the title Upgrade DataTables to v2.1.0 Upgrade DataTables to v3.0.1 Aug 6, 2026
@dlmarion

dlmarion commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

I'm assuming that changes are coming to our monitor-related files too?

@DomGarguilo

Copy link
Copy Markdown
Member

Spun up an instance on this branch and things are looking good. Only two small issues that I could find. Fixed those in Amemeda#1. Once those things are incorporated here i think this is good to go

@Amemeda
Amemeda marked this pull request as ready for review August 12, 2026 18:46
@Amemeda

Amemeda commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author
 Copyright (c) 2008-2026 SpryMedia Ltd
    Licensed under the MIT license (see above)

All license info has been updated to 2026, however, the DataTables website has the copyright year starting at 2007 while our code is at 2008 for DataTables, Buttons, and ColReorder.

@DomGarguilo

Copy link
Copy Markdown
Member

All license info has been updated to 2026, however, the DataTables website has the copyright year starting at 2007 while our code is at 2008 for DataTables, Buttons, and ColReorder.

Our license files need to match whats listed in the distribution. The distributed files link to https://datatables.net/license/mit which has:

Copyright (C) 2008-2026, SpryMedia Ltd.

so our license should match exactly that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to DataTables 2 in monitor

3 participants