PG-1459 Keep username and datname fields empty if we cannont get real values#636
Conversation
4b085be to
0b493f8
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #636 +/- ##
==========================================
+ Coverage 85.89% 86.34% +0.44%
==========================================
Files 3 3
Lines 1354 1347 -7
Branches 218 217 -1
==========================================
Hits 1163 1163
+ Misses 91 87 -4
+ Partials 100 97 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jeltz
left a comment
There was a problem hiding this comment.
I feel the title of the PR and the commit are misleading. To me the biggest change seems to be that we collect the information earlier.
|
There isnät even a test for the new empty behvior. |
2b1c060 to
5291ca9
Compare
5291ca9 to
dbf1edc
Compare
|
@jeltz I added test and changed commit/PR message |
jeltz
left a comment
There was a problem hiding this comment.
The code looks good, but I think it would be nicer as two commits:
- Which fixes the bug and adds a test case
- Which changes the message for when we cannot get the user from the previous message to the empty string
This means we can trivially revert 2 if people change their minds.
I also think "collecting" likely should be "collection" but I am not a native speaker either.
If we cannot get username and datname real values just keep these fields empty.
dbf1edc to
046589e
Compare
Damn, I was wrong about transactions. It tuned out that subtransaction state changed (internal structure), not real transaction. So we still can get username and datname if user made This PR now covers only actual bug report. |
PG-1459
Description
Keep username and datname fields empty if we cannont get real values
Links