Repository navigation
feat(web): support dynamic upload/download config overrides and binary transport - #915
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 27, 2026 01:52
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces dynamic configuration resolvers to determine chunk size, concurrency, and binary format settings for uploads, downloads, and RPC transport using environment variables and URL query parameters. Key feedback highlights the need to propagate an AbortSignal in getInspectionData to prevent orphaned background requests upon unsubscription. Additionally, it is recommended to enforce a minimum chunk size of 1 MB in both download and upload resolvers to prevent browser freezes, and to make parseIntegerQueryParam stricter by rejecting trailing non-numeric characters.
kyasbal
force-pushed
the
push-rskznosstntt
branch
from
August 27, 2026 02:03
442b302 to
64538e3
Compare
…y transport - Introduce generalized configuration resolver utility (config-resolver.ts) supporting query param, candidate cascade, and default fallback resolution. - Make chunk size and concurrency configurable via environment.upload and URL parameters (?uploadChunkSize, ?uploadConcurrency). - Decouple binary format from environment.production to environment.useBinaryFormat and URL parameter (?useBinaryFormat). - Make inspection data download chunk size and concurrency configurable via environment.download and URL parameters (?downloadChunkSize, ?downloadConcurrency).
kyasbal
force-pushed
the
push-rskznosstntt
branch
from
August 27, 2026 02:10
64538e3 to
8b1e5f1
Compare
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
Enable flexible configuration and URL parameter overrides for chunked upload, chunked download, and Connect-RPC binary transport format, alongside a generalized configuration resolver utility.
Changes
config-resolver.ts):resolveParamcombining query parameter extraction, candidate fallback cascades (e.g. caller options, environment configs), validators, and default values.parseBooleanQueryParam), integers with minimum bounds (parseIntegerQueryParam), and human-readable byte sizes (parseByteSizeQueryParam, e.g.2MB,512KB).?uploadChunkSize>environment.upload.chunkSizeBytes> backend suggestion > 16 MB.?uploadConcurrency> caller option >environment.upload.maxConcurrency> 4.import-inspection-client.service.tsandfile-parameter-upload-client.service.ts.environment.productiontoenvironment.useBinaryFormat(falsein dev,truein prod).?useBinaryFormat=true/?useBinaryFormat=false(also accepts1/0/yes/no).?downloadChunkSize>environment.download.chunkSizeBytes> 16 MB.?downloadConcurrency>environment.download.maxConcurrency> 10.backend-api.service.tsgetInspectionData().config-resolver,transport-config-resolver,download-config-resolver,upload-config-resolver,connect-client.service, andbackend-api.service.Verification
make test-web: 857 of 857 tests passed (0 failures)make lint-web: All files pass lintingmake format-web: All files formattedmake build-storybook: Storybook build completed successfullymake pre-commit: All formatters, linters, and markdownlint passed cleanly