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

feat: assert API available #2591

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

rwd
Copy link
Contributor

@rwd rwd commented Feb 13, 2025

  • adds a per-API config setting to flag unavailability, e.g. during planned maintenance or updating to a non-backwards-compatible version
    • use like EUROPEANA_SET_API_UNAVAILABLE=1
  • adds a helper method to the Europeana API client base class prototype, assertAvailable, which will throw a 503 HTTP error if the API is configured unavailable
  • makes the request method call this assertion method first, so that it aborts early if the API is known to be unavailable
  • makes the galleries index and individual display page show a custom message about galleries functionality being temporarily unavailable

Copy link

Preview deployment: https://pr-2591.portal-js.dev.eanadev.org/

@rwd rwd changed the title feat: assert Set API available feat: assert API available Feb 13, 2025
@rwd rwd marked this pull request as draft February 25, 2025 12:57
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.

1 participant