-
Notifications
You must be signed in to change notification settings - Fork 50
Fix: Prevent attachment to crash when asset-server is not available #8421
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
fda0db3
Fix:Add per-image fallback guard so the original can fall back to the…
CarolineDenis 45f3cf9
Add attachment server runtime state
CarolineDenis 6909f79
Handle unavailable attachment thumbnails
CarolineDenis cd9c7b8
Show attachment gallery outage warning
CarolineDenis 5842bdd
Feat: Disable attachment menu item when no server connexion
CarolineDenis 3924551
Feat: Record transitions between available and unavailable with times…
CarolineDenis b48fead
Feat: Confirm server health before changing global availability
CarolineDenis bdd4ff8
Fix: Disable attachment actions when the server is unavailable
CarolineDenis ea1b85e
Fix: Return the cleanup function to every subscriber
CarolineDenis c37c2fc
Fix: Add tooltip for side bar attachement disabled menu item
CarolineDenis ff90013
Test: Add frontend unit tests for server status
CarolineDenis 8e3853b
Test: Add frontend unit tests for unavailable gallery
CarolineDenis d9e3a31
Fix: Run the first health check immediately
CarolineDenis b6d974e
Tests: fix attachment view tests and add header tests
CarolineDenis bf9929f
Update specifyweb/frontend/js_src/lib/components/Attachments/__tests_…
CarolineDenis b3b9d5c
Merge branch 'main' into issue-6851
CarolineDenis 5eaea4a
Fix: Add health check to avoid manual reload and cache clearance
CarolineDenis 61d154a
Fix: Reset attachment status in tests
CarolineDenis 391e020
Fix: Log health check error
CarolineDenis f4ceaac
Fix: Bound the asset-server health probe and startup check
CarolineDenis 31bd679
Fix: Reset image failure state
CarolineDenis 26b904c
Potential fix for pull request finding 'CodeQL / Except block handles…
CarolineDenis e17faf1
Fix: Add WEB_ATTACHMENT_TIMEOUT to settings
CarolineDenis f3723bc
Fix: Test, add new health check
CarolineDenis 95c9d66
Test: Add server connexion health check in wb attachment preview
CarolineDenis 22ae597
Update specifyweb/frontend/js_src/lib/components/Header/index.tsx
CarolineDenis f3a3f3e
Fix: Treat only the health endpoint success status as available
CarolineDenis 207ec59
Test: mock asset server connexion status
CarolineDenis e19d023
Feat: Restore attachment availability after an outage during backend …
CarolineDenis b19666c
Test: Fix mock health check
CarolineDenis 024c1a8
Feat: Handle incomplete asset-server configuration
CarolineDenis 10c88da
Fix: Start backoff after the failed request completes
CarolineDenis b1b4e19
Test: Add a failed-thumbnail test
CarolineDenis afe5e07
Fix: Validate all required asset-server URL types before setting serv…
CarolineDenis af11387
Fix: Publish server_urls only after key validation succeedss
CarolineDenis d2ac8b7
Merge branch 'main' into issue-6851
CarolineDenis 5346007
Update specifyweb/frontend/js_src/lib/components/Attachments/__tests_…
CarolineDenis f921124
Update specifyweb/frontend/js_src/lib/components/Header/__tests__/Hea…
CarolineDenis 1a336a9
Test: Fix overide
CarolineDenis 2b4504f
Merge branch 'main' into issue-6851
CarolineDenis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.