Skip to content

Conversation

@jason-raitz
Copy link
Contributor

  • This pull request updates the TIND API integration to use the correct API endpoints and authentication
  • updates some GitHub Actions workflows.
  • updates the TIND search API path and parameters, adding support for TIND API key authentication, and updating related tests

Copy link
Member

@danschmidt5189 danschmidt5189 left a comment

Choose a reason for hiding this comment

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

I think we need tests that actually hit TIND/Alma rather than the stubs, but given this hotfix and the out-of-band testing we've already done I'm okay merging/releasing this and following up in a different PR.

Copy link
Member

@anarchivist anarchivist left a comment

Choose a reason for hiding this comment

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

relatively minor changes/nits; i'm good to merge if we do a followon set of fixes soon after.

Copy link
Member

Choose a reason for hiding this comment

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

nit: do we need updated fixture data? the /api/v1/search endpoint wraps responses in a <response></response> element.

CHANGES.md Outdated
@@ -1,3 +1,7 @@
# 0.4.3 (2025-11-04)

- Refactor BerkeleyLibrary::AV::Util#do_get to use TIND API key if available in ENV
Copy link
Member

Choose a reason for hiding this comment

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

the change is more significant than this. make sure we include that we're changing endpoints here.

Switches from the public `/search` endpoint to the actual `/api/v1/search` endpoint to retrieve metadata from TIND. Library consumers must set the environment variable LIT_TIND_API_KEY to a suitable TIND API token to authorize this endpoint.

At some point in the past week TIND restricted the ability of non-browser/human clients to search records, necessitating this change.
@danschmidt5189 danschmidt5189 merged commit 131f072 into main Nov 5, 2025
4 checks passed
@anarchivist anarchivist deleted the ap-483 branch November 6, 2025 19:24
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