-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MISC] Sanitize PostgreSQL extra-user-roles arg #506
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #506 +/- ##
==========================================
- Coverage 75.20% 75.11% -0.10%
==========================================
Files 9 9
Lines 1319 1326 +7
Branches 239 241 +2
==========================================
+ Hits 992 996 +4
- Misses 254 256 +2
- Partials 73 74 +1 ☔ View full report in Codecov by Sentry. |
5ee3858
to
8994aa2
Compare
Not sure why the test-db tests and the test-backend-database tests fail consistently 🤔 |
Pgbouncer is a subordinate charm and has to run on both Jammy (py 3.10) and Focal (py 3.8). The list typing doesn't seem to work on python 3.8:
We will have to change the lib to |
Right, that Python >= 3.10 syntax is coming from the recently merged PostgreSQL charm lib... I would rather leave this PR frozen in time, until we decide to bump the minimum Python version in this repository, than to open another round of 3+ PRs just to revert a function signature. WDYT? |
There's no plan for updating the python version ATM, since that is what's available in Focal. The charm lib has to work on 3.8. |
8994aa2
to
f074c3a
Compare
f074c3a
to
3f732ef
Compare
PR rebased assuming the PostgreSQL k8s operator PR fixing the function signature will be merged. |
This PR contains a slight refactor to sync code with PostgreSQL VM / K8s operator codebases.
Changes:
PERMISSIONS_GROUP_ADMIN
constant.extra_user_roles
argument as a list.