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

IIIF #78 - Resource Status #84

Merged
merged 9 commits into from
Jan 15, 2025
Merged

Conversation

dleadbetter
Copy link
Contributor

This pull request addresses #78, #79, and #81 by adding the "Attachments" section to the Resource edit page. The section will display the AWS object key, file size, and content type of both the source image and the converted PTIF (if applicable).

Admin users will also have the ability to convert the source image to a PTIF using the "Convert" button.

Admin users will also have the ability to remove the content from the IIIF cache using the "Clear Cache" button.

Screenshot 2025-01-14 at 3 03 50 PM
Screenshot 2025-01-14 at 3 03 54 PM

@dleadbetter dleadbetter requested a review from blms January 14, 2025 20:08
Copy link

@blms blms left a comment

Choose a reason for hiding this comment

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

Code looks good! Two questions:

  1. Are we leaving the two CANTELOUPE_* environment variables spelled that way for legacy reasons? I would recommend making them all spelled consistently (I also see a comment that says "Cantalope") but not a big deal. I know it would likely mean updating every Heroku instance, potentially including some we don't control…
  2. Did you want me to pull locally and test? I'll be really curious to see how the user-controlled conversion and cache busting works in staging!

@dleadbetter
Copy link
Contributor Author

Are we leaving the two CANTELOUPE_* environment variables spelled that way for legacy reasons? I would recommend making them all spelled consistently (I also see a comment that says "Cantalope") but not a big deal. I know it would likely mean updating every Heroku instance, potentially including some we don't control…

Good call. I was really just hoping to not have to track down all the places those variables are used 😞, but it looks as though they are only passed through to the Docker image of Cantaloupe.

These environment variables are actually only used for the running IIIF Cloud via Docker (they're passed to the Cantaloupe image), so nothing we actually need to upgrade on Heroku. In the release notes for the next release I can note this as a breaking change so that any self-hosted instances can update accordingly before pulling the new version.

Did you want me to pull locally and test? I'll be really curious to see how the user-controlled conversion and cache busting works in staging!

Probably not necessary, as there shouldn't be any breaking changes, but feel free if you'd like!

@blms
Copy link

blms commented Jan 15, 2025

Looks good! 👍 and good catch on the other typos too!

@dleadbetter dleadbetter added the next release Issues in the next release label Jan 15, 2025
@dleadbetter dleadbetter merged commit beaa685 into develop Jan 15, 2025
@dleadbetter dleadbetter deleted the feature/iiif78_resource_status branch January 15, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release Issues in the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants