fix(webui): Log Presto cancel route output as object instead of string.#1191
Conversation
WalkthroughUpdates the Presto search API cancel route logging to pass a structured object payload ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these settings in your CodeRabbit configuration. 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}⚙️ CodeRabbit Configuration File
Files:
🧠 Learnings (1)📓 Common learnings⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
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. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
A bug of cancel button but not related to this PR: If the user click "Run" and then immediately "Cancel," the query won't actually stop. This might be because Presto's cancel route returns success even if queries aren't submitted yet. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainI'll create a GitHub issue to track this cancel button bug for you. 🏁 Script executed: Length of output: 1238 @hoophalab: I've successfully created GitHub issue #1195 to track the cancel button bug you reported. The issue includes:
This will ensure the bug is properly tracked and can be addressed in a future PR when you implement the query status handling improvements. 🧠 Learnings used |
Description
Fastify logging accepts the first argument as an object not a string.
As the title indicates, we're now logging the Presto cancel route output as an object.
This bug was discovered by @junhaoliao and can be reproduced by updating the webui server's packages to their latest versions. It didn't show previously because Pino could silently handling
objan unknown argument in the old version.The old interface definition:
Checklist
breaking change.
Validation performed
Search cancellation works exactly as before.
The package successfully builds with the updated dependencies.
Summary by CodeRabbit
New Features
Refactor
Chores