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

Rails / Hyrax Upgrade #39

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Rails / Hyrax Upgrade #39

wants to merge 3 commits into from

Conversation

orangewolf
Copy link
Contributor

Start a new branch to do a Hyrax upgrade since the Hyrax 3.0 upgrade branch is a bit stalled out.

orangewolf and others added 2 commits October 17, 2023 22:14
There's no need to include the spec files in the gemfile list.  And
including `bin/rails` can wreck havoc on the downstream application.

Related to:

- samvera/hyrax#6146
@cjcolvar
Copy link
Member

I think it's great that y'all are working on updating this gem! I know the last attempt got a little tricky and lost steam. Seeing how you've recently made this gem a dependency of hyku I wonder if it is time to fold this code into upstream hyrax. I suspect that might be easier than trying to update the gem and would also benefit non-Hyku Hyraxes. Would that make sense for how you're using it and seeing it used? (For Avalon, we're not currently using and have no firm plans to use it in the near future.)

We were getting the error:

`ActionController::RespondToMismatchError in
Hyrax::ImagesController#manifest`

`respond_to was called multiple times and matched with conflicting
formats in this action. Please note that you may only call respond_to
and match on a single format per action.`

This commit fixes that by only rendering json for manifest requests.
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.

4 participants