Skip to content

GH Issue 1870: Keep archive attachment files paired with their rows on import - #8310

Open
labkey-jeckels wants to merge 2 commits into
developfrom
fb_di_attachment_export_order_1870
Open

labkey-jeckels wants to merge 2 commits into
developfrom
fb_di_attachment_export_order_1870

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

This PR keeps folder and list archive imports from attaching same-named files to the wrong rows (GH Issue 1870). Export numbered duplicate file names in database order while the data file was sorted by key, and import matched files to rows by position, so rows sharing an attachment name could silently swap contents.

Tested with new integration tests for a list round trip, a list merge import into a folder that already holds rows, and a data class round trip, plus the existing list module tests and ExpDataTableImpl$TestCase.

Related Pull Requests

None

Changes

  • List and data class export write attachment files in the same row order (and folder scope) as the exported data.
  • Import numbers duplicate file names for every row, including rows whose attachment is unchanged during a merge.
  • A missing attachment on list export no longer shifts the files of later rows.

…n import

Attachment export now uses the data file's sort and filter, and import numbers duplicate file names for every row, including unchanged rows during a merge.
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.

1 participant