Problem/Motivation

I think either libraries needs to be made a hard dependency instead of a soft one or it needs to be removed from the equation in hook_requirements. Right now, without libraries installed you don't get any warnings that you aren't setup.

Proposed resolution

Either remove the soft dependency on libraries entirely or just in "hook_requirements".

Remaining tasks

Decide if this is a good or bad idea.

User interface changes

Hopefully a more accurate status page.

API changes

None.

Data model changes

None.

Comments

Sam152 created an issue. See original summary.

frjo’s picture

I agree that we should remove the dependency on the library module. I have kept it so far since it's has an easy way to retrieve a library version and check that it's installed. I have not found similar functionality in the Drupal 8 core library functions (colorbox.libraries.yml).

Maybe we simply should skip the version check and only implement a simpler check that "/libraries/colorbox/jquery.colorbox-min.js" exist?

sam152’s picture

Assigned: Unassigned » sam152

Yeah, I think that's a good plan. To be honest I think the master package has never been broken before and I don't think there are multiple branches out there?

I don't mind looking at this.

sam152’s picture

Hm, the module suggests a minimum of 1.6.1, but I've been using v1.5.9 - 2014-04-25. So I'd guess any recent version isn't going to cause issues and the check for the file is fine as you suggest. Most people aren't getting the benefit of the version check, not having libraries installed.

sam152’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new19.19 KB
new12.01 KB
new4.23 KB

Attached is the patch and what you can see in the UI now.


sam152’s picture

frjo’s picture

StatusFileSize
new5.25 KB

Works well! I edited the messages a bit so it has a value plus description. Also changed the download url in the Drush command and the README to be the same as in the requirement message.

Colorbox used to have two branches 1.x and 2.x. Colorbox on Drupal 7 with the default jquery version only worked with 1.x. Now it seems that development on 2.x has closed and master is the one to use just as you already noticed.

sam152’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me!

frjo’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

  • frjo committed 01793ef on 8.x-1.x
    Issue #2683947 by Sam152, frjo: Move away from the libraries module for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.