-
Notifications
You must be signed in to change notification settings - Fork 7
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
[ESSI-2062] fix iiif urls unaware of external_storage #648
Conversation
e6666e6
to
f4cf9b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulling these IIIF behaviors into this service presents an opportunity to make some spec tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dlpierce spec tests added, which did indeed lead to some revisions!
@dlpierce for the refactoring pass, I didn't want to change any logic, but there's an opportunity to simplify/unify logic if it was unintentionally variable, originally:
|
2b0ecc7
to
2e3f17c
Compare
2e3f17c
to
40c7980
Compare
40c7980
to
d8d25c7
Compare
@dlpierce so that for failing test, it's complaining that it's not expecting version information in the indexed path: What are your thoughts how to approach a stable fix?
|
443be66
to
40113a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Thanks for cleaning this up!
Refactors lookup of IIIF image server URLs (in a manner aware of external_storage settings), and applies that logic where not yet present.
New/modified infrastructure:
Hyrax.config.iiif_image_url_builder
,Hyrax.config.iiif_info_url_builder
)Updated cases, adding handling of external storage:
Refactoring cases: