Repository navigation
chore(coderd/database): remove three unused forkdb queries - #194
Conversation
DeleteChatWakeupByID, UpdateChatWakeupRunStatus and DeleteExpiredPluginLinkCodes have no production callers. Regenerate the sqlc output and drop the RBAC, metrics, mock and test cases that only existed for them. Part of #167.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: faf99343e4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
TestChatWakeupRuns reached a delivered run through UpdateChatWakeupRunStatus and counted runs after DeleteChatWakeupByID; TestPluginLinkCodes counted rows to verify DeleteExpiredPluginLinkCodes. Both queries have no production callers and are removed (#167), so insert the delivered run directly and drop the purge-count assertion.
|
@codex review
|
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged as a squash of head
|
Removes the three forkdb queries flagged in #167 as unused:
DeleteChatWakeupByIDUpdateChatWakeupRunStatusDeleteExpiredPluginLinkCodesRe-verified immediately before this branch (grep over the tree at d523eb1): none has a production caller. The regenerated sqlc output drops the query constants, methods and params; the RBAC wrapper (
dbauthz/fork_forkdb.go), metrics wrapper (dbmetrics/fork_forkdb.go), gomock mock and the affected test cases are deleted with them. The diff is 182 deleted lines and zero insertions;sqlcwas the fork-pinned build (mise.toml commit 337309bf).Validation:
go build ./coderd/...passes; the mock-basedTestForkQuerierin dbauthz passes. The DB-backed forkdb tests could not run on this Mac's Homebrew Postgres (they fail identically on the base commit withrelation "organizations" does not exist, a pre-existing local-environment issue, so nothing here regressed them); the CIforkdbjob is the authoritative run for those, and the combined dev-workspace UAT exercises wake-ups end to end.Part of #167.