Skip to content

Move preview revocation to thumbnail-generator#1090

Merged
arturi merged 1 commit into
masterfrom
revoke-inside-thumbnail-generator
Oct 23, 2018
Merged

Move preview revocation to thumbnail-generator#1090
arturi merged 1 commit into
masterfrom
revoke-inside-thumbnail-generator

Conversation

@goto-bus-stop
Copy link
Copy Markdown
Contributor

This is a little clearer than doing it in core.

It now also deals with files being removed while a thumbnail generation job is still in the queue.

@goto-bus-stop goto-bus-stop requested a review from arturi October 8, 2018 11:09
@sponnet sponnet mentioned this pull request Oct 9, 2018
@arturi
Copy link
Copy Markdown
Contributor

arturi commented Oct 19, 2018

It now also deals with files being removed while a thumbnail generation job is still in the queue.

Tested by adding a bunch of files, then pressed “cancel” (which calls cancelAll, which does removeFile on all files), got this in console:

screen shot 2018-10-19 at 1 15 56 pm

Is that because those were already in progress, and not in a queue? 🤔

@goto-bus-stop
Copy link
Copy Markdown
Contributor Author

goto-bus-stop commented Oct 22, 2018

Hmm, I get the same behaviour without this patch (only for one thumbnail file though), but I'm not sure why it still happens with this patch.

Is that because those were already in progress, and not in a queue? 🤔

This sounds the most likely scenario to me. Actually, that code is not touched by this PR, so scratch the above heh.

@arturi
Copy link
Copy Markdown
Contributor

arturi commented Oct 23, 2018

Merging already 👌

@arturi arturi merged commit 7a137de into master Oct 23, 2018
@arturi arturi deleted the revoke-inside-thumbnail-generator branch October 23, 2018 20:05
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