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

Clear uploaded manifests on startup #51

Closed
wants to merge 2 commits into from
Closed

Clear uploaded manifests on startup #51

wants to merge 2 commits into from

Conversation

richdouglasevans
Copy link

closes #13

[Because uploaded] manifests are stored under [a local directory which] never gets cleared and fills up over time.

Bit Old This Issue Innit?

Clearly I pick issues based on their burning and vital importance 😆Yeah, I was just surfing the code—as you do—and thought I'd smash out a few of the open issues. (Yep, more PRs incoming.)

Tests?

Honestly, I'm expecting this PR to be declined 😄because:

  • it fixes something that's likely not really an issue. (Else it would've been fixed already.)
  • there are no tests.

I could write tests for this:

Given a mix of files and directories in the manifest uploads directory
When the server starts
Then the manifest uploads directory is empty

But, I'd reckon I'd have to refactor the way the server is spun up to make that test easy to write and that's a bit more effort than just banging in something that works to test the waters about whether this is really an issue or not.

😄

I have tested this manually—that old chestnut—and it ::koff:: "works on my machine" 😆

ahankinson and others added 2 commits September 12, 2019 17:02
closes #13

> [Because uploaded] manifests are stored under
> [a local directory which] never gets cleared
> and fills up over time.
@richdouglasevans richdouglasevans changed the title Issues/13/clear uploaded manifests on startup Clear uploaded manifests on startup Sep 12, 2019
@@ -10,7 +10,7 @@ See this Wiki page for instructions on how to use the IIIF manifest editor:

## Online Demo
You can find online demos of the IIIF Manifest Editor here:
* [https://iiif.bodleian.ox.ac.uk/manifest-editor/](http://iiif.bodleian.ox.ac.uk/manifest-editor/)
* [https://digital.bodleian.ox.ac.uk/manifest-editor/](http://digital.bodleian.ox.ac.uk/manifest-editor/)
Copy link
Author

Choose a reason for hiding this comment

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

🤔 Mmm, see #50

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