Conversation
…and updating verification logic
quivalen
reviewed
Jan 5, 2026
quivalen
reviewed
Jan 5, 2026
quivalen
reviewed
Jan 5, 2026
quivalen
reviewed
Jan 5, 2026
Collaborator
quivalen
left a comment
There was a problem hiding this comment.
Overall looks good, with the exception of stats/summary
Why that is allowlisted ?
Removed ils.splashEnabled to prevent all endpoints (except those on the whitelist) from being blocked during the initial loading phase, even if the splash screen is disabled in the environment variables, in order to reduce the load on the data
Added non-root user for security in the Dockerfile.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
This PR implements comprehensive API blocking during application startup and database index creation to prevent database overload and data loss. The solution includes both backend middleware and frontend coordination to ensure the splash screen remains visible until all initialization processes are complete.
Resolves: Issue #36 - API calls during startup and index creation causing database overload and splash screen disappearing prematurely.
Changes
Backend API Blocking (HTTP 503)
InitialLoadStatestruct with thread-safe tracking of initialization statusinitialLoadBlockingMiddlewarethat returns HTTP 503 for non-whitelisted endpoints during initialization/api/v1/version,/api/v1/stats/log-processing,/api/v1/stats/summaryremain accessible for frontend monitoringHTTPRequestRepositoryto track index creation status withIsIndexCreationActive()methodProcessor Pause/Resume During Index Creation
Pause(),Resume(), andwaitIfPaused()methodsPauseAll()andResumeAll()methods in the ingestion coordinatorFrontend Splash Screen Coordination
verifyDataAndFinish()to poll every 2 seconds after reaching 99% log processing until backend returns non-503 responsesonReady()instead oflocation.reload()when initialization is completeTechnical Details
Backend Architecture
sync.RWMutexfor concurrent access to initialization stateFrontend Behavior
Benefits