-
Notifications
You must be signed in to change notification settings - Fork 26
fix: Flatten V2 tables #882
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
Conversation
| return nil, status.Errorf(codes.InvalidArgument, "failed to unmarshal tables: %v", err) | ||
| } | ||
| tables := TablesV2ToV3(tablesV2) | ||
| tables := TablesV2ToV3(tablesV2).FlattenTables() |
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.
If this is the destination server, presumably it got the list from the source - so shouldn't the tables already be flattened? I know there can be issues if you flatten a list of tables twice, so we either need to be 100% sure or make FlattenTables idempotent :)
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.
I see. yeah that's a foot gun. not sure what's hapening already. ok let's make it idempotent.
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.
Done.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #882 +/- ##
==========================================
+ Coverage 47.29% 47.37% +0.07%
==========================================
Files 55 55
Lines 5034 5041 +7
==========================================
+ Hits 2381 2388 +7
Misses 2401 2401
Partials 252 252
☔ View full report in Codecov by Sentry. |
⏱️ Benchmark resultsComparing with 7d749b1
|
🤖 I have created a release *beep* *boop* --- ## [3.5.1](v3.5.0...v3.5.1) (2023-05-16) ### Bug Fixes * Flatten V2 tables ([#882](#882)) ([28706f1](28706f1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
A bit more footgun in old protocol.