Skip to content

refactor: remove unused DestinationID from RetrieveEventRequest#679

Merged
alexluong merged 4 commits into
mainfrom
logstore-retrieve-destinationid
Feb 6, 2026
Merged

refactor: remove unused DestinationID from RetrieveEventRequest#679
alexluong merged 4 commits into
mainfrom
logstore-retrieve-destinationid

Conversation

@alexluong

Copy link
Copy Markdown
Collaborator

After iterations of access patterns, the current version doesn't require DestinationID in this operation. Events are destination-agnostic - use ListAttempt with DestinationIDs filter for destination-scoped queries.

@vercel

vercel Bot commented Feb 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Feb 6, 2026 4:25pm
outpost-website Ready Ready Preview, Comment Feb 6, 2026 4:25pm

Request Review

@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 5, 2026 12:56 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-website February 5, 2026 13:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 5, 2026 13:02 Inactive
Base automatically changed from pglogstore to main February 6, 2026 07:17
alexluong and others added 2 commits February 6, 2026 14:18
After iterations of access patterns, the current version doesn't require
DestinationID in this operation. Events are destination-agnostic - use
ListAttempt with DestinationIDs filter for destination-scoped queries.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
RetrieveEvent now queries the events table directly instead of the
attempts table.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@alexluong
alexluong force-pushed the logstore-retrieve-destinationid branch from a3b9ec8 to 0027a76 Compare February 6, 2026 07:20
@vercel
vercel Bot temporarily deployed to Preview – outpost-website February 6, 2026 07:20 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 6, 2026 07:21 Inactive
…errors

RetrieveEvent and RetrieveAttempt used Query + rows.Next() without
checking rows.Err(), causing ClickHouse query errors to be silently
treated as "not found" (404) instead of surfacing as errors (500).
Switch to QueryRow which handles this correctly via sql.ErrNoRows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
vercel Bot temporarily deployed to Preview – outpost-website February 6, 2026 10:44 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 6, 2026 10:45 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-website February 6, 2026 16:24 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 6, 2026 16:25 Inactive
@alexluong
alexluong merged commit 9493e35 into main Feb 6, 2026
4 checks passed
@alexluong
alexluong deleted the logstore-retrieve-destinationid branch February 6, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants