-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat!: allow retrieving all billing accounts and add billing_information column to gcp_project and gcp_organization_project tables #665
Conversation
a44aa32
to
8857eda
Compare
Hey @pdecat, could you please resolve the merge conflicts in this PR? Also, is the PR waiting on some discussion? Apologies if I missed any thread. |
8857eda
to
56accc6
Compare
56accc6
to
ba55b7f
Compare
Rebased on main and marked as ready.
Not from my point of view, I just wanted to emphasize that this is somewhat a breaking change. |
@pdecat Can you please describe a bit more in detail what the breaking changes are? What types of queries would be affected? |
This PR changes the table behavior by returning all billing accounts accessible by the connection's credentials (multiple rows). |
@pdecat So if I understand correctly, this PR:
Some questions:
Also, for a future addition, I think we could add a |
Exactly. Forgot about the second breaking change in my previous message.
Good question. The only apparent difference I could find between the two endpoints is that the optional
With this PR, yes. I've just added an example query with results in this PR's description. No need for a separate API call I believe.
👍 |
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Not stale. |
ba55b7f
to
ada568f
Compare
@pdecat Sorry for dropping off on this PR. @misraved and I were discussing the PR this morning and as part of our deprecation and removal strategies, if it'd be better to deprecate the The information in that column would still just return the active project (which is probably the one specified in the connection or set in the CLI), so it's not very useful, but this would be consistent with the Thoughts? |
Hi @cbruno10, I've re-added the project column and appended |
Thanks again for the changes @pdecat ! |
This is a breaking change, submitted as draft to initiate a discussion.
The rationale of this PR is that a billing account is not tied to a single project.
Without this change, all existing billing accounts cannot be discovered.
Edit: rebased on main so removed comment about what commits to review.
Integration test logs
Logs
Example query results
Results