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

Versioning, Tests, fixes and updates #8

Merged
merged 2 commits into from
May 23, 2022

Conversation

cpwood
Copy link
Contributor

@cpwood cpwood commented May 21, 2022

A mixed bag of fixes and changes since many of the tests were failing since they were originally written. All tests now pass.

Versioning

Arena and Koha now have versioned implementation classes. This has reduced the amount of config required for each service in data.json (e.g. portlet vs portlets for Arena, etc). Version numbers of the library systems have been discovered through HTTP headers or HTML <head> information.

I'm surmising - though don't know for sure - that these two platforms are self-hosted and that will explain the variance in deployed versions, whereas others are SaaS products which will generally be kept up-to-date.

Library listings

No libraries have hard-coded values anymore; all are discovered using code.

The list of common "non-library" terms has also been updated to add some new values that have popped up since the code was originally written.

It also now requires an exact (but case-insensitive) match on the trimmed value since it was removing some items as false-positives previously.

Prism

Change in domain name here - the old Capita Discovery one is no longer maintained and has an expired SSL certificate.

Tests

Tests now:

  • check that a valid array of libraries is returned from getLibraries calls;
  • ensure that availability information is valid (i.e. not "0 of 0" available).

Fixes were made where tests failed (which is where the majority of changes in this PR originate from).

Libraries changing platform

Some libraries have switched between providers and data.json has been updated accordingly:

  • Hartlepool has moved from Prism to Spydus
  • Staffordshire has moved from Arena to Enterprise

@cpwood
Copy link
Contributor Author

cpwood commented May 21, 2022

Would you be willing to accept a further PR for a GitHub Actions template that runs all the tests periodically automatically?

Copy link
Member

@DaveBathnes DaveBathnes left a comment

Choose a reason for hiding this comment

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

All great!

@DaveBathnes DaveBathnes merged commit 2b5b1bd into LibrariesHacked:main May 23, 2022
@DaveBathnes
Copy link
Member

Hi,

Thanks again for these! All look great. And no problem on a GitHub Action. Maybe not run every day, just to ensure it doesn't use up too many of the included free minutes, but otherwise should be fine. I can always keep an eye on how long a single run takes from within GitHub.

Dave

@DaveBathnes
Copy link
Member

Oh, and in other news, I know Durham are procuring for a new Library Management System, so presuming they go for one of the major suppliers, that will remove one connector. But those projects tend to take a year or so so I'm not expecting it any time very soon. A shame to lose one independent system really!

DaveBathnes pushed a commit that referenced this pull request Mar 12, 2023
Haringey has moved to Enterprise (#23)
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.

2 participants