-
Notifications
You must be signed in to change notification settings - Fork 190
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
refactor(storage): move from lib/pq to pgx #2996
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2996 +/- ##
==========================================
+ Coverage 70.78% 72.57% +1.78%
==========================================
Files 91 95 +4
Lines 8729 7270 -1459
==========================================
- Hits 6179 5276 -903
+ Misses 2165 1604 -561
- Partials 385 390 +5 ☔ View full report in Codecov by Sentry. |
@GeorgeMac I am stuck a bit with this and need some help. I see that Flipt has |
Sorry for the slow reply @erka ! I just did a little walkthrough as it has been a while since I looked at all this.
Obviously, now we have two patterns, which is a shame:
I think the quick win for your PR would be to add support for this Sadly it is all a bit fiddly to implement. One thing I considered, but would be quite a subtle and fiddly thing to implement, would be to create an implementation of driver.Driver and intercept these errors there. That would at-least stop the error mapping from having to creep throughout the entire codebase, but still would probably have some subtle and weird edge-cases. |
e51d2e5
to
c58f9b1
Compare
@GeorgeMac |
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks great. Glad the driver.Driver
approach worked out!
I think the change looks good. I put one take it or leave it on there.
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great to me! thank you @erka !!
* refactor(storage): move from lib/pq to pgx Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * ignore golang mock files by codecov Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * address PR feedback Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> --------- Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
* 'main' of https://github.com/flipt-io/flipt: chore(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 in /sdk/go (#3006) chore(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 in /core (#3005) chore: update changelog for v1.40.2 (#3020) refactor(storage): move from lib/pq to pgx (#2996) fix(cmd/grpc): skip eval data service when evaluation API auth excluded (#3018)
closes #2982