Skip to content

Fix GrantReconciler#cleanup not connecting to the correct database - #20

Merged
ThoSap merged 1 commit into
mainfrom
fix-grant-reconciler-cleanup
Jan 30, 2026
Merged

Fix GrantReconciler#cleanup not connecting to the correct database#20
ThoSap merged 1 commit into
mainfrom
fix-grant-reconciler-cleanup

Conversation

@ThoSap

@ThoSap ThoSap commented Jan 30, 2026

Copy link
Copy Markdown
Member

No description provided.

@ThoSap
ThoSap requested a review from Copilot January 30, 2026 21:38
@ThoSap ThoSap self-assigned this Jan 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in GrantReconciler#cleanup where the method was connecting to the default database instead of the database specified in the grant resource. The fix ensures that when cleaning up grants, the reconciler connects to the correct target database.

Changes:

  • Extract the database name from the grant specification
  • Pass the database parameter to getDSLContext to establish a connection to the correct database

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ThoSap
ThoSap merged commit 0b1057d into main Jan 30, 2026
4 checks passed
@ThoSap
ThoSap deleted the fix-grant-reconciler-cleanup branch January 30, 2026 21:39
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