Bulk Actions and Progress
Bulk actions process a defined record population. Specialized attendee, credential, badge-print and enrollment operations can persist a ModelBulkAction progress/results row. The generic BulkActionJob is a separate queued update/delete implementation; it is not itself persisted as that progress row.
Operation and run identity
ModelBulkAction records operation type, project, initiator, selection/payload, counts, failed IDs, errors and optional export linkage. Its status vocabulary is pending, processing, completed, partial_failure and failed. The terminal helper chooses partial failure when both success and failure counts are nonzero, failed when only failures are counted, otherwise completed. Skipped counts are separate; completed alone does not mean every selected record changed.
The generic job accepts update/delete, explicit IDs or perform_on_all, an update payload when required, and a result channel. It rejects delete-all in that generic path. Specialized deletion workflows have their own contracts; this restriction is not a universal description of every bulk tool.
The generic job mints runKey once when constructed, retaining it through queue redelivery. For a registered entity type it opens a workflow batch manifest within the same transaction as its work, iterates records by keyset rather than offset, and records successful work into that manifest. A rolled-back transaction does not leave a committed manifest describing successful changes. This does not make every record mutation safe to repeat after a committed run or every external effect transactional.
Older serialized payloads can lack runKey. The source warns and declines to open a manifest for that payload rather than creating a new retry identity. Treat missing aggregate workflow evidence as a distinct condition from whether the underlying bulk work ran.
Select the population
Check whether the UI action targets selected records, the current page, or all records matching a query. Review the count and active filter before confirming. Keep the authorized project and resource scope in the server-side selection, rather than trusting a list supplied by a browser.
Track completion
Treat action creation, job dispatch, each batch's result and final completion separately. Inspect stored counts/errors and the final resources. A successful queue response does not prove all rows changed or that a partially failed run can be blindly repeated.
Project progress/detail views scope rows to the project. The backup-download request requires a linked completed export. Creating a rollback import uses the separate prerequisites below, including backup availability and cancellation checks; signed-download expiry alone does not decide rollback eligibility. Follow the actual operation's progress and error surface rather than assuming the generic job creates the same stored row.
For explicit-ID generic jobs, the source compares processed count with the number of unique requested IDs and logs a mismatch warning. It does not turn every shortfall into a failure: an ID may have disappeared or belong to another parent. Inspect final resources and diagnostics rather than treating a generic success result as proof that every requested ID changed.
Inspect results in the dashboard
Open the project's Batch Operations list at /p/{team}/{project}/bulk-actions on the dashboard host and select the operation ID. This is a monitoring/recovery list; start a new bulk action from the owning attendee, enrollment or other supported resource screen, where its selection and confirmation controls are defined. The list shows operation, status, counts, initiator and creation time. Search matches initiator name, operation type or status; the server also supports status and operation-type filters. Confirm that you are inspecting the intended project and run before using its results.
The detail screen has Overview and Change Log tabs. Review failed and skipped counts alongside the status, then inspect affected records. Exporting the log queues an export; retrieve the finished file from Exports rather than treating the queued notification as the download itself.
For operations using the shared progress component, updates arrive through a private realtime channel with periodic HTTP status polling as a fallback. A refused status request (403 or 404) stops tracking and reports status unavailable; it does not prove the job failed. Recheck project access and the operation ID before retrying work. A percentage is a progress indicator, not evidence that every selected record succeeded.
Where an operation has a backup, the detail screen offers Rollback Data. Its confirmation describes creating an import for review and approval, rather than immediately restoring records. A cancelled backup disables this action. Review the proposed import against subsequent edits before approving it; do not assume a backup captures changes made after the original operation.
History and API response contracts
The project list clamps per_page to 1–200 (default 25), defaults to creation-time descending order, and selects sort columns from an allowlist. Standard AJAX listing returns a message plus a paginator under data; the audit endpoint returns the paginator directly. Check that response shape when building a custom dashboard consumer.
Bulk action history selects audit rows by an exact bulk_action:<ID> tag boundary, not just a substring of the ID. Attendee operations join current attendee records to display names/emails and mark missing or deleted attendees. Those labels can reflect later edits; use the recorded old/new audit values when reviewing what changed at execution time. The audit endpoint defaults to oldest-first ordering and supports its own allowed sort/search fields.
The checked project detail, history, export, update and rollback paths reject a bulk action from another project with 403. Linking a backup also verifies that the export belongs to the project. These project checks are not proof of the complete route permission matrix. The separate system bulk-action controller explicitly gates viewAny through ModelBulkActionPolicy, which requires a super admin; do not assume that system-management policy describes every project action's authorization.
A backup download request requires a linked completed export. A cancelled backup returns 422; an absent or unready backup returns 404. A successful request sends a download-ready notification rather than returning the file body. Log export is a separate queued operation.
Attendee rollback requirements
Creating an attendee rollback import requires permission to view the backup export and create imports. The export must belong to the current project and team, and its stored file must still be available. A visible rollback control alone is not proof that the request will be authorized.
The rollback import matches attendees by their internal id, so changing an email address does not change the matching key. It starts pending, requires review and has automatic processing disabled. Inspect field mappings, proposed changes and any later edits before approving the import. This is an attendee import from a snapshot; it is not a general reversal of notifications, printed badges or external workflow effects.
If initialization fails after an import has been created, the response can include an import ID. Preserve that ID for support and inspect the existing import before starting another rollback. If the backup file is missing, resolve its availability before attempting recovery.
Realtime access and reconciliation
BulkActionProgressEvent broadcasts immediately on the private bulk-action.<ID> channel. The channel callback rejects a missing operation and allows only its initiator or a super admin through the web/admin guards. Another administrator with project viewing permission may therefore need HTTP status polling rather than receiving this realtime stream; project visibility alone is not the channel grant.
Intermediate event payloads contain the operation ID, processed count and total count. Detailed status and success/failure/skip fields are included when status is non-null. Consumers must accept intermediate payloads without those fields. The shared progress composable listens for the progress event and requests final HTTP status when a status-bearing event arrives; dispatch is not proof that a browser received it.
The composable ignores HTTP responses for an action no longer tracked. A 403/404 stops tracking and invokes status-unavailable handling; its local completion/failure indicators are UI state, not a durable job failure. Inspect the stored operation before resubmitting work.
Operation-specific effects
Bulk attendee updates can affect groups, identities and downstream workflows. Credential assignment/transfer and badge printing affect operational resources. Enrollment jobs have session/audience/capacity consequences. Use the corresponding action's supported configuration and validation rather than assuming the generic job handles every behavior identically.
Attendee update setup and request
Use the selected project's attendee bulk-update controls. The dashboard route names are dashboard.project.attendees.bulk-update-preview and dashboard.project.attendees.bulk-update; these are admin-session routes, not the plugin API. Both controller actions authorize Attendee update, mapped to update_attendees in the current project/team policy context. The request's authorize() returning true does not grant that permission.
Choose one population mode:
| Mode | Request | Server selection |
|---|---|---|
| Selected records | apply_to_all: false and integer ids | Intersects IDs with the project's attendees |
| Matching population | apply_to_all: true, optional condition_groups and search | Project-scoped advanced search plus optional basic search; ids is prohibited |
With a configured updatable text attendee field first_name, a selected-record body is:
{
"apply_to_all": false,
"ids": [101, 102],
"payload": {"first_name": "Updated"},
"send_notifications": false
}
Replace IDs with existing authorized project attendees. Request-level ID validation checks integers, not existence or a permission grant. Empty/missing matches are rejected by execution with 422. Payload must contain at least one supported updatable field; system/identity fields such as id, uuid, project_id, password and the raw attendee_fields container are rejected. The updatable-field service also excludes unsupported/encrypted fields. attendee_type is a project-owned type slug, not an arbitrary attendee_type_id. Field-specific attendee validation still applies.
Preview reports field impact and will_change_count; it does not reserve that population. Execution resolves it again and excludes attendees already holding the target values. If every matched attendee is unchanged, it stores a completed progress row with skipped count and returns without dispatching update jobs. Otherwise it chunks changed IDs into jobs of up to 200 and returns bulk_action_id, total and skipped counts.
Final settlement derives status from success/failure counts, flushes the project cache and dispatches affected dynamic-group refresh. The final attendee progress event uses success + failed for processed count while skips are separate. Group refresh and notification completion are not barriers established by the action response or final badge. Inspect membership and side effects separately before retrying or relying on the result.
Attendee operation status access
The attendee-specific status route accepts update/delete attendee operation types and checks the corresponding update_attendees/delete_attendees ability, current team, project and initiator-or-super-admin identity. It is a different interface from the generic project Batch Operations detail endpoint. Project viewing permission alone is not sufficient for this status route.
For a legacy action with no initiator, this method assigns the requesting admin as initiator before its final identity check. Status polling can therefore update that legacy row; it is not universally a read-only probe. Preserve the operation ID and use the intended authorized monitoring flow. These source checks do not establish deployed middleware/binding acceptance or allow another project to claim an action.
Attendee deletion and confirmation
Attendee deletion is a specialized flow, separate from the generic job's delete-all refusal. The dashboard dashboard.project.attendees.bulk-delete route authorizes Attendee delete, mapped to delete_attendees.
| Mode | Confirmation/selection | Response and execution |
|---|---|---|
| Selected IDs | Explicit integer ids, at most 200 per request; cannot combine with apply-to-all | Runs the project-scoped service in the request and redirects with 303; it does not automatically create the queued delete-all progress row |
| All matching attendees | apply_to_all: true, current filters and a positive integer expected_count; ids prohibited | Re-resolves the project population at confirmation, rejects a changed count with 422, then queues the fixed resolved IDs and returns bulk_action_id/total_count |
A matching count is a confirmation check, not an immutable preview snapshot or proof that exactly the same identities matched earlier. Review the current filter and audience before confirming. New attendees that begin matching after IDs are resolved are not added by rerunning that filter inside each queued job. Request validation is not a substitute for controller authorization or the project-scoped query.
The service hydrates and deletes models in keyset chunks so deletion observers run and removing earlier records does not shift an offset-based page. Selected IDs outside the project or already excluded by the model scope do not become authorized by appearing in the request. An interrupted in-request delete can require state reconciliation; a redirect is not a backup or reversal guarantee.
Queued deletion uses chunks of up to 200 IDs. The worker counts the difference in live matching rows before/after an attempt in finally, including partial work before an exception. Already soft-deleted rows fall outside a later attempt's default query. Native synthetic tests exercise that retry/count behavior; it is not a universal guarantee that every observer, workflow or external side effect is safe to replay.
Delete settlement differs from the other count-only finalizers described here: finishBulkDelete sets failed count to total minus recorded success before selecting terminal status. An early-exit/cancelled chunk can therefore be reflected as unfinished failure rather than silently completed work. Inspect actual records and diagnostics; a computed failed count does not guarantee a complete per-ID failure explanation.
If batch dispatch throws, the service records failed status and rethrows; its stored queue-failure message must not replace reconciliation after an ambiguous infrastructure outcome. Final broadcasting is rescued and notification errors are logged separately, so missing UI/email delivery does not prove deletion failed. Keep production worker recovery separate and do not treat the attendee rollback-import workflow as reversal of every deleted-resource or external effect.
Badge-print setup and readiness
The attendee bulk-print preview/execution routes are dashboard.project.attendees.bulk-print-preview and dashboard.project.attendees.bulk-print. Both inspected controller actions authorize Attendee viewAny, mapped to view_attendees; do not promise an additional print-specific permission check in this path. Preserve the enclosing admin/project context and test the actual deployed route.
Select a credential type in the current project, an active access point in that project and the attendee population. Both preview and execution use BulkPrintAttendeesRequest, which requires the credential type and access point. The request validates project ownership and active access-point state at submission; it does not prove the device remains available later.
{
"apply_to_all": false,
"ids": [101, 102],
"credential_type_id": 6,
"access_point_id": 9
}
Replace all IDs with the intended authorized project records. Use explicit booleans. Unlike the update request, this print request does not prohibit ids with apply_to_all: true; the controller's query mode ignores those selected IDs and resolves the matching population. Do not assume update/print scope-validation rules are interchangeable.
Preview finds existing credentials of the selected type for the selected attendees, returns pages of up to 20 previews and reports missing credentials separately. A preview-rendering exception is logged and can yield a null image rather than failing the entire preview. Preview does not assign missing credentials or reserve a printer. Its credential count and execution's attendee-based total need not describe the same unit if data contains multiple matching credentials per attendee.
Execution rejects an empty resolved attendee population, creates a progress row and dispatches chunks of up to 200 attendees. The worker rechecks credential-type project ownership, queries matching project credentials and counts attendees without one as skipped. For each credential it creates a PrintJob in ready_to_print with requires_approval: false, then creates the print audit record before incrementing success. This means generated print requests, not confirmed PDF output, device delivery or physical badges.
There is no enclosing per-credential transaction around those two creates in the inspected worker. An audit failure can follow an already-created print job, and the job assigns a fresh random idempotency key each time. That key alone does not deduplicate replay of the same bulk run. Before retrying, reconcile existing print jobs/audits and device outcomes to avoid creating a second print request for already-generated work. The worker's one-attempt setting is not a guarantee against manual replay or every queue failure scenario.
The batch finalizer derives status from success/failure counts, sends a final progress event with processed equal to total, flushes caches and attempts notification. A full bar or completed status does not certify hardware output, missing-credential resolution or notification receipt. Use the print-server flow for the downstream pipeline, whose runtime acceptance remains separate.
Enrollment skip counts
Enrollment progress can separate skipped_capacity_count, skipped_conflict_count and skipped_window_count from the aggregate skipped_count. These count recognized business-rule skips, not successful enrollments. The shared reason mapper rejects an unknown exception type rather than silently assigning it to a known category.
In the group-enrollment job, agenda and attendee lookup are project-scoped. A missing agenda increments failures for the requested attendee population; missing attendees contribute failures. Capacity/conflict/window exceptions contribute skips, while other caught exceptions contribute failures. The admin enrollment call bypasses the enrollment window and uses the supplied capacity/conflict bypass options; a window-skip counter is available but does not imply that this path enforces the public signup window.
The job flushes counts periodically and dispatches progress using success + failed + skipped as processed count. Progress therefore includes records that did not enroll. Its handle method returns early for a cancelled batch or missing progress row and does not itself assign the terminal status. Inspect the owning batch completion path before interpreting cancellation, a stalled percentage or a status transition. These are group-job semantics, not a blanket description of import/copy/credential jobs.
Group preview and batch settlement
Group enrollment preview reports current membership, existing enrollments, conflicts and available capacity. It subtracts already-enrolled and blocking-conflict counts from its estimated new enrollment count; it is not a capacity reservation or a guarantee of the later job population. Membership and session state can change between preview and execution.
Execution resolves the group attendees again and counts attendee/session pairs as total operations. It creates one job per session and each chunk of up to 500 attendees, then stores the dispatched batch ID. The group request checks that the group and every agenda ID exist in the current project and validates bypass flags as booleans. Its authorize method returns true, so caller permission must be established elsewhere. The agenda ID rules do not declare distinct; callers should submit unique targets rather than assuming the request removes duplicates.
The batch finally callback reloads the progress row and derives terminal status from success/failure counts. Skips do not make it failed, and settlement does not compare those counts with total_count. A cancelled or interrupted batch can therefore require inspection beyond the final status. Notification errors are logged after the status update; they do not change that status. The final progress event includes success, failure and skip counts, but dispatch does not prove browser delivery.
Enrollment action permissions and response
The bulk enrollment page, group preview and group execution controller authorize create on AgendaItemEnrollment. Its policy inherits the dashboard permission mapping, where create maps to manage_agenda_item_enrollments; viewing status authorizes viewAny, mapped to view_agenda_item_enrollments. Verify these grants in the current project/team context rather than relying on the request's authorize method alone.
Group execution passes the validated capacity/conflict bypass flags to the service and returns bulk_action_id plus total_count. The checked controller does not add a separate bypass-specific permission check; do not promise that choosing a bypass requires an additional role beyond the action's authorization.
The enrollment status response includes all count categories and processed_count. Unlike the project Batch Operations detail controller, this status method does not itself compare the bulk action's project_id with the route project. The enclosing dashboard project route group enables scopeBindings and uses Laravel's SubstituteBindings middleware; Project::bulkActions delegates to its project-owned modelBulkActions relation. The source therefore scopes operation resolution through the route project. Preserve that nested route and middleware in custom consumers; deployed cross-project refusal still needs endpoint verification.
Enrollment CSV validation and copy execution
Enrollment CSV upload accepts CSV/TXT files up to 10,240 KiB. The controller parses physical lines with str_getcsv, lowercases/trims headers and trims cell values. Use a simple single-line-per-record CSV; this parser is not a general multiline CSV reader. Rows whose column count differs from the header count become parse errors rather than valid rows.
Validation returns total_rows, valid_count and errors. It caches only valid rows under a UUID token for one hour, recording the project and administrator. Execution requires that token, pulls the draft from cache and checks the project/admin and nonempty rows. It returns 422 for an expired, missing, mismatched or empty draft. Because the pull occurs before those checks, a rejected attempt can consume the draft; re-upload rather than assuming the token remains reusable. This source flow is not proof of cache concurrency guarantees.
Review every reported error before executing: the draft contains the valid subset, so executing it does not repair or include rejected rows. Job-time project/resource and enrollment checks still apply to the cached rows. CSV validation does not reserve capacity or guarantee later execution success.
A minimal UUID-based file has this shape; replace the example identity and slug with existing records in the selected project:
attendee_uuid,agenda_item_slug,status,notes
test-uuid-1,keynote,confirmed,Documentation example
For email matching, use attendee_email instead of attendee_uuid. The validator selects attendee_uuid with null-coalescing before attendee_email, so an included but blank UUID cell prevents fallback to a populated email cell. Prefer one identity column for the file. It looks up the selected identifier against project UUIDs first and then project emails; duplicate email identities are not rejected by this mapping, so UUID is preferable for unambiguous matching.
agenda_item_slug is required. status accepts confirmed, waitlisted or pending; omitted/blank status defaults to confirmed. Header names are normalized, but status values are not lowercased by the parser, so use the exact lower-case values. notes is optional. The validator resolves these into attendee/session IDs for the cached draft; it does not create missing attendees or sessions.
Existing native tests verify UUID/email resolution, unknown identities/slugs, invalid status and blank/missing status defaults. That evidence tests service rows, not a production file upload or multiline parsing.
Copy preview/execution require different source and target sessions in the current project. The status filter accepts confirmed or active and defaults to confirmed. Execution uses the validated capacity/conflict bypass options and returns a new bulk_action_id/total_count. Preview is not an immutable snapshot; inspect final counts and target enrollments after completion.
Compare enrollment execution modes
| Mode | Source marker | Window handling | Capacity and conflict handling |
|---|---|---|---|
| Group | admin | Bypassed | Uses supplied bypass options; defaults false |
| Copy | admin | Bypassed | Uses supplied bypass options; defaults false |
| CSV import | import | Bypassed | Both bypassed by the job |
CSV import passes the validated row's status and notes into enrollment. Its built-in bypasses mean validation and execution should not be described as enforcing session capacity or conflict restrictions. Group/copy options have different semantics even though all modes share progress counters and finalization.
All three jobs still resolve resources in their project and call the enrollment service. Bypassing these checks does not promise every enrollment succeeds: missing records and other service errors can still produce failures. The existing synthetic enrollment suite verifies representative group/import project checks and capacity/copy behavior; it does not establish every retry or external side effect.
Restricted system bulk-action monitor
System Bulk Actions at /system/bulk-actions is a cross-project inspection surface, separate from the controls that launch an attendee update, deletion, credential assignment, enrollment or print job. It inherits the system-host super-admin, two-factor, authenticated/verified account, team-context and password-confirmation gates. The controller also authorizes viewAny, and JSON detail authorizes view; the registered policy requires a super administrator. Deployed ordinary-account/record isolation still needs acceptance.
Find an action and its owning context
Use the list's ID, Operation, Status, Counts, Project/team, Initiated By and Created columns to locate the intended action. Retain the action ID and actual project/team identity rather than matching only a familiar operation label. Default ordering is Created descending with 25 rows; the index accepts 1–100 per page. Search covers project name, team name, administrator name, operation type and status. Request filters also support exact status and operation type; the reviewed page does not expose a dedicated filter widget for every accepted parameter.
The query joins projects and teams and left-joins the initiator account. A missing initiator name displays as System; that fallback does not prove an automated system principal initiated it. A paginated result or missing joined record is not a complete audit or a reliable count of every historical action. Retain original identifiers when asking the platform owner to reconcile an absent entry.
Inspect saved details and related workflow
Expand a row for read-only Actionable Type, Apply to All, success/failure information, error message and recorded Search Filters where present. Filter JSON describes saved selection conditions; it is not the actual per-record result set or a reservation of a population. The system routes expose index and show only, and show returns JSON with project/initiator relations. The reviewed page expands list data without wiring a separate show fetch, so do not assume opening the row refreshed its status.
Use the originating project workflow and the operation-specific guidance above to inspect actual record changes. This monitor does not provide an action editor, universal retry/cancel, rollback, printer acceptance or final message-receipt control. Do not invent a mutation request from its status labels or repeat the original operation as a status check.
Interpret status and counts
The displayed vocabulary is Pending, Processing, Completed, Partial Failure and Failed. Count badges separately show total, successes, skipped and failures; zero-valued success/skipped/failure badges can be hidden. A missing badge is not a missing counter definition. Compare saved counts/status and actual operation results at the same observation time; a Completed label does not establish that every external effect completed or that skipped records were processed successfully.
Apply to All indicates recorded selection mode, not every team/project on the platform. The monitor's global visibility is distinct from the original action's project scope. Read the saved conditions, actionable type and owning project before interpreting a count, then verify actual affected records or the intended device/provider outcome through that operation's acceptance checks.
Recover stalled or uncertain observations
Reload/refetch the same action ID before diagnosing stale expanded details. Preserve its status, counts, timestamp, project/team, initiator reference and returned error. For a missing action, check search/pagination, identity and joined project/team availability before launching a replacement. For Processing or Partial Failure, reconcile committed/skipped/failed effects through the originating workflow and have the platform owner inspect the existing job/queue state before any authorized retry.
The monitor does not certify idempotency, cancellation, worker health, aggregate count consistency or rollback. Keep worker recovery and production data-repair procedures in private runbooks. Error text and saved filters may contain personal or operational data; use the intended support channel with the minimum diagnostic facts. No real bulk update, deletion, enrollment or print is needed merely to confirm that this screen is available.
Recovery and tests
Test a small controlled population, invalid/excluded records, partial failure and interrupted execution. Preserve the action/run identity for diagnosis. Before retrying, inspect which effects were committed and whether the action's implementation makes reprocessing safe. Use relevant tests and operational runbooks in the repository for worker recovery; detailed production procedures remain outside the public hub.
Verification scope
Source and document-reader evidence is recorded in repository docs/bulk-actions-review-2026-10-14.md and docs/coverage/bulk-actions-source-snapshot.json. Checks are separately scoped: native generic-job construction/pre-deploy guards, five native mocked frontend progress cases, 39 enrollment service/job cases (89 assertions), exact attendee-update request validation (one case/five assertions), exact print-request validation (one case/eight assertions), and native delete-job/service behavior (11 cases/25 assertions). They were not one full production acceptance run.
The delete suite exercises synthetic database rows, observers, retries, partial progress and count settlement; notification/event fakes do not establish live delivery. Request fixtures do not establish controller policies or execute update/print operations. Deployment acceptance remains necessary for route/team/project/principal isolation, queue cancellation/redelivery and aggregate workflow behavior, backups/rollback imports, browser progress, notification delivery and actual printer/external outcomes. Detailed worker recovery stays in private operator runbooks.
System bulk-action monitor guidance was supplemented on 2026-10-15 at platform 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093. This is source/reader evidence, not a new job execution or live monitor/authorization acceptance.