[destination-bigquery] Removing excess permission requirements when dataset already exists - #39379
Conversation
…ataset already exists
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
|
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
I think it would be better to just delete the checkHasCreateAndDeleteDatasetRole method completely. check is already doing a getOrCreateDataset, which means:
- if the dataset already exists, this validates our ability to see it
- if the dataset doesn't already exist, this validates our ability to create it
So checkHasCreateAndDeleteDatasetRole is entirely redundant with the rest of check.
I'll remove that method entirely then, it did feel redundant but i assumed it might be throwing better error messages, but create permissions are also not mentioned in the docs so maybe just better to remove |
…f github.com:kabeer27/airbyte into kabeer27/destination-bigquery-dataset-permission-fix
|
I'm not sure about the merge process beyond this, anything required from my side? M. Marx (@marcosmarxm) Edward Gao (@edgao) |
|
kabeer27 one tests is failing, I'll check with Eduard and check what stpes are needed to fix them. |
|
ah, you should just delete this line the old test was doing an |
|
conflicts were from converting the connector code to kotlin + some cleanup in the changelog, I just copied your changes over to the kotlin files (and merged the changelog/metadata stuff) |
…ataset already exists (#39379) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Augustin <augustin@airbyte.io> Co-authored-by: davinchia <davinchia@users.noreply.github.com> Co-authored-by: Roman Yermilov [GL] <86300758+roman-yermilov-gl@users.noreply.github.com> Co-authored-by: Christo Grabowski <108154848+ChristoGrab@users.noreply.github.com> Co-authored-by: Audrey Maldonado <audrey.maldonado@gmail.com> Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> Co-authored-by: Evan Tahler <evan@airbyte.io> Co-authored-by: Rodi Reich Zilberman <867491+rodireich@users.noreply.github.com> Co-authored-by: Edward Gao <edward.gao@airbyte.io> Co-authored-by: Yue Li <61070669+theyueli@users.noreply.github.com> Co-authored-by: Baz <oleksandr.bazarnov@globallogic.com> Co-authored-by: Anatolii Yatsuk <35109939+tolik0@users.noreply.github.com> Co-authored-by: Anjay Goel <anjay.goel@gmail.com> Co-authored-by: Natik Gadzhi <natik@respawn.io> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com> Co-authored-by: Serhii Lazebnyi <53845333+lazebnyi@users.noreply.github.com> Co-authored-by: lazebnyi <lazebnyi@users.noreply.github.com> Co-authored-by: Cristina Mariscal <166420606+cmm-airbyte@users.noreply.github.com> Co-authored-by: cristina.mariscal <cristina.mariscal@cristina.mariscal--MacBook-Pro---DFJ27FJFXX> Co-authored-by: Juan <80164312+jnr0790@users.noreply.github.com> Co-authored-by: alafanechere <alafanechere@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gireesh Sreepathi <gisripa@gmail.com> Co-authored-by: Anton Karpets <anton.karpets@globallogic.com> Co-authored-by: Serhii Lazebnyi <serhii.lazebnyi@globallogic.com>
What
Solves:
#39330
Currently if a bigquery dataset in the destination already exists, we don't require datasets.create permission.
How
Refactoring the code a little bit to remove redundant checks for create permissions
Review guide
User Impact
Users can provide less permissions to the service account for their prod deployments
Can this PR be safely reverted and rolled back?