Skip to content
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

fix: create tpw table if doesn't exist #229

Merged

Conversation

Nigui
Copy link
Contributor

@Nigui Nigui commented Sep 2, 2024

This MR fixes broken pipeline when destination temporary table (third_party_web) doesn't exist. Script will check if exists then create with a schema if it doesn't. Fix #227

It also bumps to bigquery latest (v7.9.0) to fix an issue when we target a dataset in a different project than the one locally configured.

It also move project to yarn v4 and nodejs v22 to fix an issue I had installing project on my macos machine (issue with canvas dependency - used to generate chart in readme).

This MR can be split if needed.

Copy link

vercel bot commented Sep 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
third-party-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 3:36pm

Copy link
Owner

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome thank you so much @Nigui 🎉

.gitattributes Outdated
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why check these in? shouldn't we just git ignore .yarn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's the file generated by yarn init. I think it's safe to keep it as is

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yarn modern is super opinionated about determinism in a way that I'm not sure aligns with our needs here. I'd much prefer to not check in .yarn/ and rely on yarn.lock being sufficient

bin/junk.js Outdated
@@ -0,0 +1,62 @@
const {BigQuery} = require('@google-cloud/bigquery')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this junk.js needed? rename or delete?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups, sorry, just forgot to remove my test script :)

@@ -9,3 +9,6 @@ gcp-credentials.json
*-subset.js
*-subset.d.ts
*.generated.sql


.yarn
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty ❤️

@patrickhulce patrickhulce merged commit 527f640 into patrickhulce:master Sep 10, 2024
7 checks passed
Copy link

🎉 This PR is included in version 0.25.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid grant / bigquery gcloud auth
2 participants