fix(new-webui): Ensure SUM results fallback to 0 to prevent null values in space savings query (fixes #1012).#1016
Conversation
…es in space savings query (fixes y-scope#1012).
WalkthroughThe SQL query within the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant SQLFunction
participant Database
Client->>SQLFunction: Call getSpaceSavingsSql()
SQLFunction->>Database: Execute modified SQL query (with COALESCE and UNSIGNED)
Database-->>SQLFunction: Return non-null, unsigned sums
SQLFunction-->>Client: Return processed results
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}`: - Prefer `false == ` rather than `!`.
🧬 Code Graph Analysis (1)components/log-viewer-webui/client/src/pages/IngestPage/SpaceSavings/sql.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…es in space savings query (fixes y-scope#1012). (y-scope#1016)
Description
In the space savings SQL query, ensure:
UNSIGNEDinstead of string "0" for example.Checklist
breaking change.
Validation performed
cd components/log-viewer-client/client; npm run antdhttp://localhost:3000in the browser and observed the app did not crash. Instead the uncompressed and compressed sizes were displayed as 0 as expected.Summary by CodeRabbit