Skip to content

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

Merged
labkey-martyp merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_delete_empty_tasks
May 19, 2026
Merged

Add Delete Empty Tasks admin action to ehr.tasks grid#1133
labkey-martyp merged 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>
Copy link
Copy Markdown
Contributor Author

@labkey-martyp labkey-martyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Admin only UI not needing additional tests.

@labkey-martyp labkey-martyp merged commit a6da8c2 into release26.3-SNAPSHOT May 19, 2026
8 of 10 checks passed
@labkey-martyp labkey-martyp deleted the 26.3_fb_delete_empty_tasks branch May 19, 2026 20:04
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