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

chore: media presentation error handling #2468

Merged
merged 24 commits into from
Nov 13, 2024

Conversation

rwd
Copy link
Contributor

@rwd rwd commented Nov 4, 2024

  • add custom error classes and messages to help differentiate the cause of various media presentation errors:
    • ItemMediaPresentationError for errors occurring within ItemMediaPresentation component:
      • no manifest or web resources to render
      • no canvases to render on retrieved manifest
    • MediaImageViewerError for errors occurring within MediaImageViewerError component:
      • various error, imageloaderror and tileloaderror events from instances of OpenLayers classes
      • no image layer to annotate
    • IIIFInfoJsonError for failure to retrieve IIIF Image info.json resources
    • IIIFManifestError for failure to retrieve IIIF Presentation manifest resources
  • when such errors are encountered, ItemMediaPresentation component will log them to APM and display the IIIFErrorMessage component in the viewer area
  • show the loading spinner in ItemMediaPresentation while waiting for manifest to load
  • set a timeout of 10 seconds on media resource (manifest, info.json, annotations, etc) retrieval

Copy link

github-actions bot commented Nov 4, 2024

JIRA ticket: EC-6951

@rwd rwd marked this pull request as ready for review November 6, 2024 16:13
Copy link

github-actions bot commented Nov 6, 2024

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

@rwd rwd merged commit bfd5b8b into master Nov 13, 2024
9 of 10 checks passed
@rwd rwd deleted the chore/EC-6951-media-presentation-error-handling branch November 13, 2024 13:29
Copy link

sonarcloud bot commented Nov 13, 2024

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