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

🎉 Destination Postgres: Add support for additional JDBC URL Params input #11954

Closed

Conversation

noahkawasaki-airbyte
Copy link
Contributor

@noahkawasaki-airbyte noahkawasaki-airbyte commented Apr 12, 2022

What

Looking for something easy to get familiar with the connector workflow. Adds ability to use jdbc_url_params in Postgres Destination spec for arbitrary parameters. Solves Postgres Destination for #9501.

Closes #10720

How

Add jdbc_url_params into spec and some tests to make sure the JDBC url has the params appended.

Recommended reading order

  1. Very simple PR

🚨 User Impact 🚨

None, feature is opt-in

Pre-merge Checklist

Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here

Tests

Unit

Put your unit tests output here.

Integration

Put your integration tests output here.

Acceptance

Put your acceptance tests output here.

@CLAassistant
Copy link

CLAassistant commented Apr 12, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the area/connectors Connector related issues label Apr 12, 2022
@noahkawasaki-airbyte
Copy link
Contributor Author

noahkawasaki-airbyte commented Apr 12, 2022

/test connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2158128553
✅ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2158128553
No Python unittests run

@noahkawasaki-airbyte
Copy link
Contributor Author

Oh wait Sonar Scan is doing that for me :D

@noahkawasaki-airbyte noahkawasaki-airbyte changed the title Add support for source-postgres and destination-postgres to have jdbc_url_params 🎉 Source and Destination Postgres: Add support for additional JDBC URL Params input Apr 12, 2022
@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Apr 12, 2022
octavia-squidington-iii and others added 12 commits April 12, 2022 17:04
* #10938 fix docs and spec

* #10938 add pr

* auto-bump connector version

Co-authored-by: Octavia Squidington III <[email protected]>
* update to our newer Dockerfile format

* fixes to source-file spec

* auto-bump connector version

Co-authored-by: Octavia Squidington III <[email protected]>
* Upgrade dependencies

* Upgrade TypeScript
* Fix countConnectionsForWorkspace to ignore deprecated connections

* Fix test expectations
* fix parens

* fix formatting for hints

* remove hint from non-docusaurus or gitbook doc
… artifact (#11484)

* source-bigquery: escape column names and update google cloud bigquery artifact

* source-bigquery: escape column names and update google cloud bigquery artifact

* source-bigquery: fix formatting

* source-bigquery: fix review comments

* bump versions

* bump versions source_specs.yaml

* revert bump versions

* fix publish-command.yml

* revert publish-command.yml

* auto-bump connector version

Co-authored-by: Octavia Squidington III <[email protected]>
* Update airbyte-specification.md

* Update upgrading-airbyte.md

* Update namespaces.md
* adding env config JOB_KUBE_SIDECAR_CONTAINER_IMAGE_PULL_POLICY to support image pull policy on sidecar containers

* add documentation

* docs: adding more description and trying to force cla check.

* docs: fix wording
@noahkawasaki-airbyte
Copy link
Contributor Author

noahkawasaki-airbyte commented Apr 13, 2022

/publish auto-bump-version=true connector=connectors/source-postgres
/publish auto-bump-version=true connector=connectors/destination-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/2164371548
❌ Failed to publish connectors/source-postgres
❌ Couldn't auto-bump version for connectors/source-postgres

@noahkawasaki-airbyte
Copy link
Contributor Author

noahkawasaki-airbyte commented Apr 14, 2022

/publish auto-bump-version=true connector=connectors/destination-postgres

🕑 connectors/destination-postgres https://github.com/airbytehq/airbyte/actions/runs/2164417804
❌ Failed to publish connectors/destination-postgres
❌ Couldn't auto-bump version for connectors/destination-postgres

* set up firebase for local cloud deploy

* remove log lines

* add empty line
@noahkawasaki-airbyte
Copy link
Contributor Author

Seems like a known issue with GHA personal access tokens behaving weirdly sometimes: fatih/vim-go#3104

/publish auto-bump-version=true connector=connectors/source-postgres

@noahkawasaki-airbyte noahkawasaki-airbyte temporarily deployed to more-secrets April 20, 2022 18:38 Inactive
@noahkawasaki-airbyte noahkawasaki-airbyte temporarily deployed to more-secrets April 20, 2022 18:38 Inactive
@noahkawasaki-airbyte noahkawasaki-airbyte marked this pull request as ready for review April 20, 2022 18:40
@noahkawasaki-airbyte noahkawasaki-airbyte requested a review from a team as a code owner April 20, 2022 18:43
@github-actions github-actions bot added area/frontend area/platform issues related to the platform area/scheduler area/server area/worker Related to worker CDK Connector Development Kit kubernetes normalization labels Apr 20, 2022
@noahkawasaki-airbyte
Copy link
Contributor Author

omg, closing and reopening clean PR

@noahkawasaki-airbyte noahkawasaki-airbyte removed the request for review from a team April 20, 2022 18:52
@swyxio swyxio deleted the noah/postgres-jdbc-additional-params branch October 12, 2022 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation area/platform issues related to the platform area/scheduler area/server area/worker Related to worker CDK Connector Development Kit kubernetes normalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destination Postgres: custom JDBC parameters