Skip to content

Add Delete Empty Tasks admin action to ehr.tasks grid#1133

Open
labkey-martyp wants to merge 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_delete_empty_tasks
Open

Add Delete Empty Tasks admin action to ehr.tasks grid#1133
labkey-martyp wants to merge 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_delete_empty_tasks

Conversation

@labkey-martyp
Copy link
Copy Markdown
Contributor

@labkey-martyp labkey-martyp commented May 18, 2026

Rationale

Provide an admin-only way to clean up empty ehr.tasks rows directly from the tasks grid.

Related Pull Requests

  • none

Changes

  • Add DiscardEmptyTasksButton — a More Actions menu item on the ehr.tasks grid, gated on EHRDataAdminPermission.
  • Add an EHRController endpoint that deletes the selected ehr.tasks rows after verifying none have referencing rows in study.studydata. Tasks with associated study dataset data are rejected with an error; data in other schemas is not checked.

Adds a More Actions menu item, gated on EHRDataAdminPermission, that
deletes the selected ehr.tasks rows after verifying none of them have
referencing rows in study.studydata. Tasks with associated study dataset
data are rejected with an error; data in other schemas is not checked.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants