-
Notifications
You must be signed in to change notification settings - Fork 24
fix: Print correct number of table resources #143
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
schema/table.go
Outdated
| } | ||
| } | ||
|
|
||
| totalResources++ |
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.
Incrementing when we send the result to the channel seems more clear to me than counting all the objects before the loop
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.
Maybe worth adding a separate log message for relations if we don't have one
|
Counter-point: I think we should count relations, or at least report them; we're doing non-trivial work and API calls to fetch them. The ideal would be to report on relational table counts separately--not sure how easy that would be to do in practice |
π― Agree we should count them separately. Let me see if I can add it to this PR |
b078932 to
97e7c73
Compare
|
@hermanschaaf I changed the PR to print total for both relations and top level tables, and keep the total count a sum of all tables |
π€ I have created a release *beep* *boop* --- ## [0.7.8](v0.7.7...v0.7.8) (2022-09-20) ### Bug Fixes * Print correct number of table resources ([#143](#143)) ([bcbd2a2](bcbd2a2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
Fixes #114
Use the following steps to ensure your PR is ready to be reviewed
go fmtto format your code πgolangci-lint runπ¨ (install golangci-lint here)