Skip to content

feat(attachments): add attachment mapping file support#8008

Draft
grantfitzsimmons wants to merge 5 commits intomainfrom
issue-4766-redux
Draft

feat(attachments): add attachment mapping file support#8008
grantfitzsimmons wants to merge 5 commits intomainfrom
issue-4766-redux

Conversation

@grantfitzsimmons
Copy link
Copy Markdown
Member

Fixes #4766

Realized that previously implemented logic covered most of the cases. We already supported matching files to previously selected files. So, now, we just make a new attachment dataset based on the selected csv. When user selects files, they will be matched to this dataset (which is based on csv) so we just preserve the parsed name.

I'll add more automated tests for this before making this open for review for everything seems to be working!

EDIT: I based it off @melton-jason coge-import because I realized I could reuse some of that code. I'm still considering directly using workbench's implementation though

image

image

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests
  • Add a reverse migration if a migration is present in the PR
  • Add migration function to
    def fix_schema_config(stdout: WriteToStdOut | None = None):

Testing instructions

@github-project-automation github-project-automation Bot moved this to 📋Back Log in General Tester Board Apr 21, 2026
@grantfitzsimmons grantfitzsimmons changed the title Issue 4766 redux feat(attachments): add attachment mapping file support Apr 21, 2026
Now this trims filename and parsed name values when importing mapping CSVs to avoid leading/trailing whitespace and undefined values. Adds a bunch of tests!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

Add Attachment Mapping File support

2 participants