Skip to content

test(config): add approval_token_expires_at column to pgxmock GetExecutionByID rows - #664

Merged
cristim merged 1 commit into
feat/multicloud-web-frontendfrom
fix/627-pgxmock-token-expires-at
May 22, 2026
Merged

cristim merged 1 commit into
feat/multicloud-web-frontendfrom
fix/627-pgxmock-token-expires-at

Conversation

@cristim

@cristim cristim commented May 22, 2026

Copy link
Copy Markdown
Member

Closes #627, Closes #624. The production queryExecutions scan reads 22 columns (approval_token_expires_at as the last, into sql.NullTime) but the pgxmock test rows declared only 21, failing with 'incorrect argument number 22 for columns 21'. Adds the missing column + value to both GetExecutionByID test funcs. Full internal/config package green (499 tests).

… rows

The production queryExecutions scan reads 22 columns; the mock row
definitions in TestPGXMock_GetExecutionByID_Success and
TestPGXMock_GetExecutionByID_WithTimestamps only declared 21, causing
"incorrect argument number 22 for columns 21" at scan time.

Add "approval_token_expires_at" as the 22nd column (after
retry_attempt_n, matching the SELECT and rows.Scan order in
store_postgres.go) and supply sql.NullTime{} as its value in both rows.

Closes #627, Closes #624
@cristim cristim added triaged Item has been triaged priority/p2 Backlog-worthy severity/medium Moderate harm urgency/this-sprint Within the current sprint impact/internal Team-internal only effort/xs Trivial / one-liner type/bug Defect labels May 22, 2026
@coderabbitai

coderabbitai Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@cristim has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 10 minutes and 38 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fd2a39b5-2d53-4d5d-baaa-c8cf406f3147

📥 Commits

Reviewing files that changed from the base of the PR and between e09d0a7 and 777415a.

📒 Files selected for processing (1)
  • internal/config/store_postgres_pgxmock_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/627-pgxmock-token-expires-at

Comment @coderabbitai help to get the list of available commands and usage tips.

@cristim

cristim commented May 22, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cristim

cristim commented May 22, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cristim
cristim merged commit 9246107 into feat/multicloud-web-frontend May 22, 2026
4 checks passed
@cristim
cristim deleted the fix/627-pgxmock-token-expires-at branch June 3, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/xs Trivial / one-liner impact/internal Team-internal only priority/p2 Backlog-worthy severity/medium Moderate harm triaged Item has been triaged type/bug Defect urgency/this-sprint Within the current sprint

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant