Skip to content

Conversation

@PartyNell
Copy link
Contributor

Description

This PR adapts the bulk-action system introduced in MapEntity to modules list views.

It adds a checkbox column to enable multi-selection on the current page or across the entire filtered queryset. An “Actions” button is always available, disabled when the user lacks permissions and showing an error if triggered with no selection.

Supported actions include bulk deletion (respecting Django permissions) and bulk editing via an auto-generated form with eligible fields only. Each field defaults to a “Do nothing” option. The system is extensible for future custom actions.

Related Issue

Checklist

  • I have followed the guidelines in our Contributing document
  • My code respects the Definition of done available in the Development section of the documentation
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes
  • I added an entry in the changelog file
  • My commits are all using prefix convention (emoji + tag name) and references associated issues
  • I added a label to the PR corresponding to the perimeter of my contribution
  • The title of my PR mentioned the issue associated

@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.47%. Comparing base (13dd405) to head (dde4690).
⚠️ Report is 10 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5161   +/-   ##
=======================================
  Coverage   98.47%   98.47%           
=======================================
  Files         272      272           
  Lines       22269    22363   +94     
=======================================
+ Hits        21929    22023   +94     
  Misses        340      340           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cypress
Copy link

cypress bot commented Dec 15, 2025

Geotrek-admin    Run #15102

Run Properties:  status check passed Passed #15102  •  git commit ddc1d2eb02 ℹ️: Merge dde4690698a5fe10285a39262254ad54ad6821a4 into b07dddc372217963d18f212ffb52...
Project Geotrek-admin
Branch Review refs/pull/5161/merge
Run status status check passed Passed #15102
Run duration 02m 18s
Commit git commit ddc1d2eb02 ℹ️: Merge dde4690698a5fe10285a39262254ad54ad6821a4 into b07dddc372217963d18f212ffb52...
Committer PartyNell
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 22
View all changes introduced in this branch ↗︎

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants