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

Properly handle case when master file has been deleted #4932

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Oct 25, 2022

Resolves #4931

Related: #3475

…r file and derivatives on disk

Flipping this flag for derivatives should resolve issue where derivative files would get deleted when a thumbnail is generated after initial master file processing
@cjcolvar cjcolvar force-pushed the thumbnail_craziness branch from 88ea0d8 to f957f2e Compare November 11, 2022 22:26
@cjcolvar cjcolvar marked this pull request as ready for review November 11, 2022 22:32
source = FileLocator.new(self.derivatives.where(quality_ssi: 'high').first.absolute_location)
options[:master] = false
options[:non_temp_file] = true
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this is the key change for keeping derivative files from getting deleted by the unlinking on line 639. I changed the key to better reflect the expectations around this.

doug-hahn added a commit to TAMULib/avalon that referenced this pull request Nov 14, 2022
Properly handle case when master file has been deleted avalonmediasystem#4932
Copy link

@doug-hahn doug-hahn left a comment

Choose a reason for hiding this comment

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

I applied these changes to our 7.3.0 install and it fixed the thumbnail issues were were having.

Copy link
Contributor

@masaball masaball left a comment

Choose a reason for hiding this comment

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

Looks good!

@cjcolvar cjcolvar merged commit cd75a4a into develop Nov 14, 2022
@cjcolvar cjcolvar deleted the thumbnail_craziness branch November 14, 2022 17:40
@cjcolvar cjcolvar mentioned this pull request Nov 29, 2022
26 tasks
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