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

Glide destination updates #12

Merged
merged 7 commits into from
Aug 6, 2024

Conversation

chkn
Copy link

@chkn chkn commented Aug 6, 2024

What

  • Don't call create stash endpoint; it will be removed soon
  • Add onSchemaError flag to ignore columns that aren't in the schema
  • Simplify by removing incremental/state handling machinery since we only support full reloads anyway
  • Add missing step to readme
  • Ignore latest tag in push-docker-image script

These bits have been pushed to the glide-connectors GAR as tag 0.0.30 and tested locally with 32,992 rows from an Airtable source.

@chkn chkn requested a review from activescott August 6, 2024 15:21
Copy link
Collaborator

@activescott activescott left a comment

Choose a reason for hiding this comment

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

minor stuff. Merge it!

r = requests.post(
self.url(f"tables"),
self.url(f"tables?onSchemaError=dropColumns"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

The docs update was awaiting PR review on the monolith for a few days, but it should hopefully go out to prod today.

@@ -1,7 +1,7 @@
{
"documentationUrl": "https://docs.airbyte.com/integrations/destinations/glide",
"supported_destination_sync_modes": ["overwrite"],
"supportsIncremental": true,
"supportsIncremental": false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch on the whole incremental & state record management. I think I followed a pattern from the first day of developing it and never really got back to thinking it through or testing it.

"""

def init(self, api_key, table_name, api_host="https://api.glideapps.com", api_path_root=""):
def init(self, api_key, table_name, columns, api_host="https://api.glideapps.com", api_path_root="", batch_size = DEFAULT_BATCH_SIZE):
Copy link
Collaborator

Choose a reason for hiding this comment

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

combining init & set_schema is a nice simplification 🙇‍♂️

@activescott activescott merged commit fcc7b44 into feat/glide-destination Aug 6, 2024
11 checks passed
@activescott
Copy link
Collaborator

activescott commented Aug 6, 2024

@chkn I just decided to merge it so I can put some changes on top of this one. Hope that's okay!

Important: This command can only be run by one of the repository admins:
Usage: ./tools/bin/get_repo_admins.sh <personal_access_token>

@chkn chkn deleted the alex/update-glide-destination branch August 7, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants