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

Relax blacklight dependency to fix the build #3177

Merged
merged 3 commits into from
Sep 7, 2017
Merged

Conversation

hackartisan
Copy link
Contributor

Lower blacklight generators insert an rsolr 1.0 requirement into the Gemfile, which was conflicting with sufia dependencies.

This is backwards compatible, since the issue only affects app generation. I believe this can be released as a point release.

@projecthydra/sufia-code-reviewers

@hackartisan
Copy link
Contributor Author

Note: I ran the test suite locally on blacklight 6.8 as well as blacklight 6.11.

@cbeer
Copy link
Contributor

cbeer commented Sep 5, 2017

Is the "workaround" comment still relevant?

@hackartisan
Copy link
Contributor Author

@cbeer good catch.

I tried but was unable to replicate the bug that comment referenced. The issue did not include any information on how to observe or replicate the bug. I spoke with the reporter and he said he thought it had to do with limiting search results by facets, and getting an ArgumentError. I tried to replicate that with Blacklight 6.11 but didn't get any errors. I'm not sure whether that means the bug is resolved or there was some other requirement to produce the bug.

The hyrax commit which closed that issue included some other code which I have not pulled in, since I was unable to replicate. If you or anyone else has ideas on how I might replicate, or whether that additional code would be required regardless, that I'd appreciate your thoughts.

In the meantime, I removed the comment.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ac29a84 on blacklight-bump into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ac29a84 on blacklight-bump into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 371b21b on blacklight-bump into ** on master**.

sufia.gemspec Outdated
@@ -23,8 +23,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'hydra-head', '>= 10.4.0'
spec.add_dependency 'hydra-batch-edit', '~> 2.0'
spec.add_dependency 'browse-everything', '>= 0.10.3'
# Workaround for https://github.com/projecthydra-labs/hyrax/issues/546
spec.add_dependency 'blacklight', '~> 6.6', '< 6.8.0'
spec.add_dependency 'blacklight', '~> 6.6', '< 7'
Copy link
Member

@mjgiarlo mjgiarlo Sep 5, 2017

Choose a reason for hiding this comment

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

I wonder if the '< 7' is adding anything here. Shouldn't the '~> 6.6' twiddly-wakka be sufficient to keep the version less than 7?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you're totally right; holdover from when I was messing around. Thanks for noticing.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling e638df9 on blacklight-bump into ** on master**.

@coveralls
Copy link

coveralls commented Sep 7, 2017

Coverage Status

Changes Unknown when pulling faf86a2 on blacklight-bump into ** on master**.

@hackartisan
Copy link
Contributor Author

Hit a flappy spec there for a minute, but now green.

@hackartisan hackartisan changed the title Bump blacklight dependency to fix the build Relax blacklight dependency to fix the build Sep 7, 2017
@mjgiarlo mjgiarlo merged commit bdef9df into master Sep 7, 2017
@mjgiarlo mjgiarlo deleted the blacklight-bump branch September 7, 2017 15:04
@mjgiarlo mjgiarlo restored the blacklight-bump branch September 7, 2017 15:06
@mjgiarlo mjgiarlo deleted the blacklight-bump branch September 7, 2017 15:06
@mjgiarlo mjgiarlo restored the blacklight-bump branch September 7, 2017 15:06
@jrochkind
Copy link

So regarding the sufia 7.4 release and rsolr dependencies -- while this this PR suggests that an rsolr 1.0 dependency is too strict for sufia dependencies -- our own app (which I believe was the primary examplar for these recent upgrades), in it's branch to upgrade to sufia 7.4, actually does have something in it's Gemfile restricting to rsolr 1.x.

Along with a note from @HackMasterA (who no longer works here at our organization :( ), suggesting that the rsolr 1.x restriction was actually necessary to avoid bugs when upgrading to sufia 7.4. And the rsolr 1.x restriction does not actually prevent bundler dependency resolution.

Anyone have any idea what's going on? @HackMasterA? @mjgiarlo? Otherwise, this note serves as a warning to others, you may actually need to lock to rsolr 1.x with sufia 7.4, even though the sufia gemspec does not explicitly mention rsolr, and the sufia 7.4 dependencies may allow rsolr 1.x or 2.x.

@mjgiarlo mjgiarlo deleted the blacklight-bump branch September 21, 2017 15:56
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.

6 participants