-
Notifications
You must be signed in to change notification settings - Fork 17
fix: add setting for query parameter output_chunk_max_size #3164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new configurable query setting outputChunkMaxSize to control the maximum size of output chunks in streaming query responses, addressing issue #3163.
Key Changes:
- Added
outputChunkMaxSizesetting with a default value of 1,000,000 bytes - Implemented proper validation (positive integer) and URL parameter persistence with Zod schemas
- Created UI form field with user-friendly input validation and internationalized labels
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/utils/query.ts |
Added outputChunkMaxSize to default settings (1M bytes), validation schema (positive integer), and restore schema with fallback handling |
src/store/reducers/query/query.ts |
Updated streaming chunk size constant to use new setting; modified API call to pass user-configured value with proper numeric validation |
src/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json |
Added English translations for field label and unit ("bytes") |
src/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json |
Added Russian translations for field label and unit ("байт") |
src/containers/Tenant/Query/QuerySettingsDialog/constants.ts |
Registered field configuration with translated title |
src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.tsx |
Added form field with number input, validation state handling, and unit label display |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, 2 comments
src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, no comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5 files reviewed, no comments
Closes #3163
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️2
⏭️ Skipped Tests (2)
Bundle Size: 🔺
Current: 62.33 MB | Main: 62.33 MB
Diff: +4.84 KB (0.01%)
ℹ️ CI Information