Skip to content

Delete all attachments when deleting multi-folder lists#7512

Merged
labkey-adam merged 1 commit intorelease26.3-SNAPSHOTfrom
26.3_fb_orphaned_list_attachments
Mar 24, 2026
Merged

Delete all attachments when deleting multi-folder lists#7512
labkey-adam merged 1 commit intorelease26.3-SNAPSHOTfrom
26.3_fb_orphaned_list_attachments

Conversation

@labkey-adam
Copy link
Contributor

Rationale

We were orphaning attachments in multi-folder lists: https://github.com/LabKey/internal-issues/issues/984

Changes

  • Delete attachments in all containers, not just the definition container
  • Unhide a couple useful columns in the Documents table

@Override
public boolean accept(ListRow row)
{
return null != row.entityId();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This could be done as a SQL filter instead.

@labkey-adam labkey-adam merged commit d127f76 into release26.3-SNAPSHOT Mar 24, 2026
11 checks passed
@labkey-adam labkey-adam deleted the 26.3_fb_orphaned_list_attachments branch March 24, 2026 18:06
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.

3 participants