Issue Feature Closed

#81310Add "select all records in all pages" button to Recycler

Christian Toffolo 05/23/17, 08:20 updated 11/19/26, 10:36

Description

Recycler has pagination of records displayed and a “select all” button that selects all records in current page.
But if there are many pages, it’s useful to have a “select all records in all pages” button.

As an example, Gmail has a button that select all mails in current page and then a link appear with the text like “Select all 41,707 conversations in All Mail” that, when clicked, select everything.

Reviews 3

History 1024

  1. Gerrit Code Review pushed patch set 5 for master to change 54849 status New Under Review <span data-processor="relativetime" data-value="2017-11-29T19:56:06+00:00" > 11/29/17, 19:56 </span>

  2. Łukasz Uznański commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2018-03-06T08:00:05+00:00" > 03/06/18, 08:00 </span>

    Applied in changeset commit:7ef327081a503fc2e4e60b6d2cb413943f68469e.

  3. Andreas Kienast commented and changed status Resolved Accepted <span data-processor="relativetime" data-value="2018-04-12T14:34:53+00:00" > 04/12/18, 14:34 </span>

    This change is going to be reverted.

  4. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2020-08-30T20:43:29+00:00" > 08/30/20, 20:43 </span>

    Instead of selecting all the records on all pages (a performance killer) what about making the number of records per page configurable ? (in Install Tool, maybe?). Thus the site administrator can find a number that fits his/her environment (25, 50, 100…).

  5. Christian Toffolo commented <span data-processor="relativetime" data-value="2020-08-30T21:24:54+00:00" > 08/30/20, 21:24 </span>

    Could another solution be an option “Delete all X records in table Y” that bypass javascript and deletes all records via php?
    Y is the name of the table and X is the total of the records marked as deleted in the selected table. The option is enabled only if a table is selected.

  6. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-05-26T19:44:04+00:00" > 05/26/24, 19:44 </span>

    Right now Gmail recycler displays a permanent link on the top of the deleted email list: “Empty the recycler now” that deletes everything (similar link on the spam folder)

    Maybe it could be useful to perform such operation using the CLI or the scheduler (empty deleted items older than X days … BTW there’s an extension for that AFAICS https://extensions.typo3.org/extension/commands)

  7. Benni Mack commented and changed status Accepted Closed <span data-processor="relativetime" data-value="2026-11-19T10:36:29+00:00" > 11/19/26, 10:36 </span>

    A first implementation (Gerrit 54849) was merged in 2018 and reverted in #84700 because it was too slow with large record sets.

    The use cases mentioned here are covered by existing features nowadays:
    • mod.recycler.recordsPageLimit (user TSconfig) raises the number of records per page, so “select all” covers more records at once.
    • The scheduler task “Recycler: Remove deleted records” (EXT:recycler) permanently removes deleted records of selected tables after a given period.
    • The CLI command cleanup:deletedrecords (EXT:lowlevel) supports --pid, --depth, --min-age and --dry-run.

    A real “apply to all matching records” action in the module would have to work on the server side (filter instead of a list of uids) to avoid the performance problems of the reverted patch. If that is still needed, please open a new issue for it.

    Closing this one.