Skip to content

fix(upload): propagate pending field and wait for verification on run - #1017

Merged
kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-mplymykmvluo
Sep 17, 2026
Merged

kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-mplymykmvluo

Conversation

@kyasbal

@kyasbal kyasbal commented Sep 17, 2026

Copy link
Copy Markdown
Member

When uploading log files in oss-kubernetes-from-files inspection:

  • Propagate FormField.pending in inspection proto, Go API converter, and frontend inspection converter so the Run button remains disabled while file upload or background verification is in progress.
  • Keep KHIServerFileUploader status as done: false during progress updates, emitting done: true only after CompleteFileUpload resolves, and refresh the parameter store only at upload start and completion.
  • Add GetCompletedResult to upload.Store and AsyncTaskManager.DoSyncOrGet so FileFormTaskBuilder synchronously waits for background verification when executed in TaskModeRun.
When uploading log files in oss-kubernetes-from-files inspection:
- Propagate FormField.pending in inspection proto, Go API converter, and frontend inspection converter so the Run button remains disabled while file upload or background verification is in progress.
- Keep KHIServerFileUploader status as done: false during progress updates, emitting done: true only after CompleteFileUpload resolves, and refresh the parameter store only at upload start and completion.
- Add GetCompletedResult to upload.Store and AsyncTaskManager.DoSyncOrGet so FileFormTaskBuilder synchronously waits for background verification when executed in TaskModeRun.
@kyasbal kyasbal added type:bug Something isn't working as expected area:backend-core Core backend frameworks, DAG task runner, and server API area:frontend Web frontend application and UI components labels Sep 17, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces asynchronous file verification for inspection tasks. It adds a DoSyncOrGet method to the AsyncTaskManager to synchronously wait for background tasks, implements GetCompletedResult in the upload stores, and introduces a pending status field to form fields in both backend and frontend. On the frontend, the file uploader and parameter components are updated to handle this asynchronous flow. However, a critical UI deadlock bug was identified in FileParameterComponent where removing the polling mechanism for verification status will cause the 'Run' button to remain disabled indefinitely once an upload completes.

@kyasbal
kyasbal added this pull request to the merge queue Sep 17, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 866fb40 Sep 17, 2026
17 checks passed
@kyasbal
kyasbal deleted the push-mplymykmvluo branch September 17, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend-core Core backend frameworks, DAG task runner, and server API area:frontend Web frontend application and UI components type:bug Something isn't working as expected

1 participant