Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for selecting an existing attachment #5343

Open
grantfitzsimmons opened this issue Oct 23, 2024 · 1 comment
Open

Add support for selecting an existing attachment #5343

grantfitzsimmons opened this issue Oct 23, 2024 · 1 comment
Labels
1 - Request Improvements or extensions to existing behavior 2 - Attachments Issues that are related to attachments

Comments

@grantfitzsimmons
Copy link
Member

grantfitzsimmons commented Oct 23, 2024

          It would be very nice to have a tool that allowed you to link an existing attachment from another record with a new record.

Originally posted by @grantfitzsimmons in #84 (comment)

At this time, attachments can only be linked to a single record from the interface in Specify, though the tables in the database are configured so that a single attachment can be linked to multiple records.

e.g. Collection Object -> Collection Object Attachment -> Attachment

Multiple Collection Object Attachment records can link to the same Attachment, so adding an interface to search existing attachments and make the join in the UI would be desirable.

Requested By: Several users (KU Invertebrate Paleontology, KU Ichthyology, University of Copenhagen, and others)

@grantfitzsimmons grantfitzsimmons added 2 - Attachments Issues that are related to attachments 1 - Request Improvements or extensions to existing behavior labels Oct 23, 2024
@maxpatiiuk
Copy link
Member

This would be really nice, and not complicated on the front-end.
The back-end might be tricker though - we might have to adjust the cascade deletion rule for attachments to not delete the attachment when related record is deleted as long as attachment is still used in some record

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Request Improvements or extensions to existing behavior 2 - Attachments Issues that are related to attachments
Projects
None yet
Development

No branches or pull requests

2 participants