Patch #44748
openCheck all on webhook edit page
Description
When configuring a webhook for many projects, selecting every project individually is slow. The events section already provides Redmine's standard "Check all | Uncheck all" links, but the project list does not.
This patch adds `check_all_links 'webhook_project_ids'` to the webhook project fieldset, so the existing nested project list can be selected or cleared in one click. It also adds a functional test asserting that both links are rendered.
The patch is against current trunk (r25456 / 7872c0d).
Tests:
- bin/rails test test/functional/webhooks_controller_test.rb
- bundle exec rubocop test/functional/webhooks_controller_test.rb
Files
Updated by Go MAEDA 15 days ago
Thank you for the patch.
The project list on the webhook form already allows selecting or deselecting all projects at once: clicking the checkmark icon to the left of the "Projects" legend toggles all checkboxes (highlighted in red in the attached screenshot).
In addition, none of the other screens where projects are selected with checkboxes, such as the tracker form, the project visibility setting of custom fields, the email notification preferences, and the form for adding projects to a user or group, has "Check all | Uncheck all" links. Adding them only to the webhook form would make it inconsistent with these screens.
For these reasons, I think the current behavior is sufficient.
