Commit c174403
fix: filter out future requests from query-clickhouse endpoint (#5398)
* fix: filter out future requests from query-clickhouse endpoint
When navigating to the request page from another page, some customers were
seeing requests with timestamps far in the future (e.g., August when current
date was October). This was caused by requests with incorrectly timestamped
data appearing at the top of results.
Added a filter `request_created_at <= now()` to both ClickHouse query
functions to exclude any requests with future timestamps:
- getRequestsClickhouseNoSort: used for created_at sorting
- getRequestsClickhouse: used for other sort types
Fixes ENG-3403
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat: add 1-minute buffer to future request filter
Co-authored-by: Justin Torre <chitalian@users.noreply.github.com>
---------
Co-authored-by: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Justin Torre <chitalian@users.noreply.github.com>1 parent 3b749b7 commit c174403
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| 302 | + | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
| |||
0 commit comments