Frontend: surface failed/empty graph builds + Rebuild, harden polling#51
Open
shivswami wants to merge 1 commit into
Open
Frontend: surface failed/empty graph builds + Rebuild, harden polling#51shivswami wants to merge 1 commit into
shivswami wants to merge 1 commit into
Conversation
- Step1GraphBuild / Process: show Failed badge + Rebuild button when a
build yields 0 entities; block advancing to environment setup
- MainView: backend connection indicator (15s poll), 30-min polling
timeout, stop after repeated consecutive errors
- MainView/Process: rebuild via buildGraph({ project_id, force: true })
- pendingUpload: persist requirement to sessionStorage so a refresh no
longer discards it (File objects aren't restorable — user re-uploads)
Includes fix: Process.vue rebuild used buildGraph(projectId, {force}) which
dropped force and sent a bare string as the body (always failed).
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.
What
Makes graph-build failures visible and recoverable, and stops polling from hanging forever.
Why
Changes
Step1GraphBuild.vue/Process.vue— show a Failed badge + "Rebuild Graph" button when a build yields 0 entities; block advancing to environment setup.MainView.vue— backend connection indicator (15s health poll), 30-min polling timeout, stop after repeated consecutive errors; rebuild handler.pendingUpload.js— persist the requirement tosessionStorageso a refresh no longer discards it (File objects can't be restored — user is prompted to re-upload).Includes a bugfix
Process.vuerebuild usedbuildGraph(projectId, { force }), butbuildGraph(data)takes a single object — soforcewas dropped and a bare string was sent as the body, causing rebuild to always fail with "Please provide project_id". Now uses the correct signature.Backend dependency
Uses the existing
forcerebuild (POST /api/graph/buildwithforce: true) — already inmain.Tested
vite build, 675 modules).