Skip to content

Conversation

@jremy42
Copy link
Contributor

@jremy42 jremy42 commented Oct 30, 2025

close #2762

@github-actions github-actions bot added the rdb Managed MySQL and PostgreSQL issues, bugs and feature requests label Oct 30, 2025
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2025

Codecov Report

❌ Patch coverage is 0% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 1.75%. Comparing base (33203bf) to head (79d2309).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
internal/services/rdb/privilege.go 0.00% 45 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master   #3429      +/-   ##
=========================================
- Coverage    1.76%   1.75%   -0.01%     
=========================================
  Files         400     400              
  Lines       43836   43878      +42     
=========================================
- Hits          774     772       -2     
- Misses      42975   43018      +43     
- Partials       87      88       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jremy42 jremy42 force-pushed the fix/rdb-privilege-custom-drift branch 3 times, most recently from 70b63d8 to 3c503f1 Compare October 30, 2025 05:59
@jremy42 jremy42 force-pushed the fix/rdb-privilege-custom-drift branch from 3c503f1 to d53937d Compare October 30, 2025 06:57
@jremy42 jremy42 marked this pull request as ready for review October 30, 2025 07:11
@jremy42 jremy42 requested review from a team and remyleone as code owners October 30, 2025 07:12

var diags diag.Diagnostics

if effectivePermission != configuredPermission {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to add a test for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Testing drift requires SQL executed outside Terraform, which is tricky to automate in acceptance tests :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rdb Managed MySQL and PostgreSQL issues, bugs and feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Privilege RDB "readwrite" switch to custom after a certain amount of time

5 participants