Repository navigation
fix(web): update form validation on in-flight requests and migrate to signals - #907
Merged
Merged
Conversation
… signals Resolve an issue where user input during in-flight dryrun requests in the new inspection dialog prevented form validation states from updating. - Implement a sequential completion-driven dryrun loop with stale response invalidation and immediate re-validation on input change. - Migrate ParameterStore to Angular Signals, removing legacy RxJS watchers. - Support deep/array value equality comparison in ParameterStore to prevent array-based fields from endlessly remaining in the validating state. - Keep fields in validating state while assigned default values are being validated by the subsequent dryrun. - Protect TextParameter inputs from background dryrun overwrites while focused and stage blur-validated fields locally until blur. - Display a small spinner next to form field titles during validation.
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 26, 2026 05:17
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the parameter management system in the new inspection dialog, transitioning from RxJS observables to Angular Signals. Key changes include updating the ParameterStore to use signals, refactoring components (ParameterHeader, SetParameter, and TextParameter) to consume these signals, and implementing a sequential dryrun loop using an AbortController in NewInspectionDialogComponent. Feedback focuses on optimizing signal creation by caching computed signals in the store, ensuring in-flight dryrun HTTP requests are properly cancelled upon abort, and refining the delay helper to handle pre-aborted signals and propagate cancellation using a custom CancellationError.
…ellation - Cache computed signals in DefaultParameterStore per parameter ID to avoid allocating new signal nodes on every getter access. - Clear cached signals upon store destruction. - Pipe in-flight dryrunDirect requests through takeUntil(fromEvent(signal, 'abort')) to cancel active HTTP requests immediately upon loop abort. - Check signal.aborted at the beginning of delay() and reject with CancellationError. - Handle CancellationError and abort cleanly in startDryrunLoop without leaked promises.
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.
Summary
Resolves an issue where user input during in-flight dryrun requests in the new-inspection dialog prevented form validation states from updating.
NewInspectionDialogComponentthat checks whether parameters changed during flight.ParameterStorefrom RxJS subjects to Angular Signals (signal(),computed()), removing legacy watchers (watch,watchDirty,watchAll).areValuesEqualdeep value equality helper inParameterStoreso array parameters (SetParameter) and Date objects compare by value rather than reference equality, preventing fields from endlessly remaining in the validating state.TextParameterComponentinputs from being overwritten by completed background dryruns while focused, and stages input locally whenvalidationTiming === Blur.Verification
make test-web(784 tests pass)make pre-commit(linters, formatters, and style checkers pass cleanly with 0 issues)