samvera-deprecated / sufia

[DEPRECATED] Sufia: a fully featured, flexible Samvera repository front-end.
http://sufia.io/
Other
111 stars 78 forks source link

Relax blacklight dependency to fix the build #3177

Closed hackartisan closed 6 years ago

hackartisan commented 6 years ago

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 commented 6 years ago

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

cbeer commented 6 years ago

Is the "workaround" comment still relevant?

hackartisan commented 6 years ago

@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 commented 6 years ago

Coverage Status

Changes Unknown when pulling ac29a84bb78296b80db8f20231b666a99731814b on blacklight-bump into on master.

coveralls commented 6 years ago

Coverage Status

Changes Unknown when pulling ac29a84bb78296b80db8f20231b666a99731814b on blacklight-bump into on master.

coveralls commented 6 years ago

Coverage Status

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

coveralls commented 6 years ago

Coverage Status

Changes Unknown when pulling e638df996057a64724a7f0098706a446e0684c7f on blacklight-bump into on master.

coveralls commented 6 years ago

Coverage Status

Changes Unknown when pulling faf86a25a6d310f2d7968b2309bd60d798536fab on blacklight-bump into on master.

hackartisan commented 6 years ago

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

jrochkind commented 6 years ago

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.