Skip to content

Comments

Fix/disconnect annexes for new files#565

Merged
tsubik merged 5 commits intodevelopfrom
fix/disconnect-annexes-for-new-files
Jan 7, 2026
Merged

Fix/disconnect annexes for new files#565
tsubik merged 5 commits intodevelopfrom
fix/disconnect-annexes-for-new-files

Conversation

@tsubik
Copy link
Collaborator

@tsubik tsubik commented Nov 20, 2025

When uploading a new operator document, or removing an existing one, all annexes should be disconnected (still connected with the history of document)

JIRA: https://gfw.atlassian.net/browse/OPEN-356

@tsubik tsubik requested a review from santostiago November 20, 2025 14:28
f.input :mission_type, as: :select, collection: ObservationReport.translated_mission_types
f.input :publication_date, as: :date_time_picker, picker_options: {timepicker: false, format: "Y-m-d"}
f.input :attachment, as: :file, hint: f.object&.attachment&.file&.filename, input_html: {accept: "application/pdf"}
f.input :attachment, as: :file, hint: preview_file_tag(f.object.attachment), input_html: {accept: "application/pdf"}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is part of active admin or the extension we're using?
Anyway, cool, much cleaner.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is extension in app/helpers/file_helper.

@tsubik tsubik force-pushed the fix/disconnect-annexes-for-new-files branch from 46be4e4 to c44d966 Compare November 27, 2025 09:19
@tsubik tsubik merged commit ff92e9a into develop Jan 7, 2026
4 checks passed
@tsubik tsubik deleted the fix/disconnect-annexes-for-new-files branch January 7, 2026 10:47
@tsubik tsubik mentioned this pull request Jan 9, 2026
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