Repository navigation
feat(admin): Make System Queries results readable and the editor easier to use - #8569
Conversation
…er to use Rebuild the System Queries results as a table that scrolls on its own, keep storage, host and Execute in view when the editor is closed, add copy formats and a way to clear saved results, and stop the Execute button and host warning from flickering. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dmin # Conflicts: # snuba/admin/static/clickhouse_queries/index.tsx # snuba/admin/static/clickhouse_queries/query_display.tsx # snuba/admin/static/clickhouse_queries/query_history_entry.tsx
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 52abc7a. Configure here.
| <Text size="sm" fw={600} aria-hidden> | ||
| | ||
| </Text> | ||
| {executeControl} |
There was a problem hiding this comment.
Editor toggle allows duplicate executes
Medium Severity
Opening or closing the editor remounts ExecuteButton, which keeps isExecuting in local state. A query already in flight no longer blocks Execute, so another click can start a second run, including a sudo statement.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 52abc7a. Configure here.
onewland
left a comment
There was a problem hiding this comment.
Mostly down to merge, but I don't love the icon-only buttons. Could we remove a couple of the less useful ones and retain text? I almost never copy JSON, for one thing
|
let's just merge and we can iterate later. another thought I had is that a one-click "re-run" button matches my workflow a lot |



Follow-up to #8554 and #8550.
Bugs fixed
Behaviour changed
Behaviour added
🤖 Generated with Claude Code