Problem/Motivation

After Updating to 1.0.1 it takes a good 3 minutes to load the `/admin/reports/audit-trail` route due to our audit table being extremely large, and I think the pagination is no longer working causing the HTML table produced to be thousands of '<tr>` the browser can barely handle it.

Steps to reproduce

Have a very large audit trail, visit `/admin/reports/audit-trail` I don't see any pagination and all records are put into a single table.

I think this code change broke pagination
Screenshot

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

NicholasS created an issue. See original summary.

nicholass’s picture

Issue summary: View changes

nicholass’s picture

Status: Active » Needs review
nicholass’s picture

Issue summary: View changes
sonnykt’s picture

Status: Needs review » Reviewed & tested by the community

I have tested MR with these results:
* Diff file can be applied cleanly to admin_audit_trail 1.0.1 via composer.

Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/admin_audit_trail (1.0.1): Extracting archive
  - Applying patches for drupal/admin_audit_trail
    https://git.drupalcode.org/project/admin_audit_trail/-/merge_requests/9.diff (Latest Release Breaks Pagination - https://www.drupal.org/project/admin_audit_trail/issues/3316835)

* Before applying MR the diff file, admin_audit_trail displays all 300 rows in one page
* After applying the MR diff file, admin_audit_trail now displays the correct paginated results in 15 pages.

yovince’s picture

tested MR, looks good to me.

eason xu’s picture

rajab natshah’s picture

Priority: Normal » Critical
rajab natshah’s picture

Title: Latest Release Breaks Pagination » Fix pagination breaks in latest release which was not applied with Drupal ~0
rajab natshah’s picture

Title: Fix pagination breaks in latest release which was not applied with Drupal ~0 » Fix pagination breaks in latest release which was not applied with Drupal ~10
rajab natshah’s picture

Faced the same issue in #3330106: Fix not applied pagination
Committing the better fix by Nicholas.

rajab natshah’s picture

Title: Fix pagination breaks in latest release which was not applied with Drupal ~10 » Fix pagination and sorting for latest release which was not applied with Drupal ~10

rajab natshah’s picture

Status: Reviewed & tested by the community » Fixed
rajab natshah’s picture

rajab natshah’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.