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

JDBC sources: update for sources that not have permissions issues #10173

Conversation

sashaNeshcheret
Copy link
Contributor

@sashaNeshcheret sashaNeshcheret commented Feb 8, 2022

What

In scope of #9875 was updated logic related to fetching tables during discovery, it does not work for some connectors and we revert this logic

Recommended reading order

  1. AbstractJdbcSource.java (added default implementation for case if list with permitted tables and schemas is empty)
  2. x.java
  3. Dockerfile
  4. 'x.json'
  5. x.yml

🚨 User Impact 🚨

Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.

Pre-merge Checklist

Expand the relevant checklist and delete the others.

New Connector

Community member or Airbyter

  • Community member? 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
    • docs/SUMMARY.md
    • docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
    • docs/integrations/README.md
    • airbyte-integrations/builds.md
  • 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
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the connector is published, connector added to connector index as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here

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
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the new connector version is published, connector version bumped in the seed directory as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here

Connector Generator

  • Issue acceptance criteria met
  • PR name follows PR naming conventions
  • If adding a new generator, add it to the list of scaffold modules being tested
  • The generator test modules (all connectors with -scaffold in their name) have been updated with the latest scaffold by running ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates then checking in your changes
  • Documentation which references the generator is updated as needed.

@github-actions github-actions bot added the area/connectors Connector related issues label Feb 8, 2022
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 8, 2022

/test connector=connectors/source-db2

🕑 connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1811016578
❌ connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1811016578
🐛 https://gradle.com/s/dgryuh3dqiciu

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 8, 2022

/test connector=connectors/source-snowflake

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

@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets February 8, 2022 08:02 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 8, 2022 08:04 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 8, 2022 08:04 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 8, 2022

/test connector=connectors/source-db2

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

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 8, 2022

/test connector=connectors/source-postgres

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

@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets February 8, 2022 10:48 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 8, 2022

/test connector=connectors/source-cockroachdb

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

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 8, 2022

/test connector=connectors/source-snowflake

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

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 8, 2022 10:50 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 8, 2022 10:50 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 8, 2022 10:50 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 8, 2022 10:50 Inactive
@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets February 8, 2022 14:56 Inactive
@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Feb 8, 2022
@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets February 8, 2022 16:41 Inactive
Copy link
Contributor

@alexandr-shegeda alexandr-shegeda left a comment

Choose a reason for hiding this comment

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

LGTM. we can proceed with publishing without airbyte review

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-postgres

🕑 connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/1817654978
✅ connectors/source-postgres https://github.com/airbytehq/airbyte/actions/runs/1817654978

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-cockroachdb

🕑 connectors/source-cockroachdb https://github.com/airbytehq/airbyte/actions/runs/1817656942
✅ connectors/source-cockroachdb https://github.com/airbytehq/airbyte/actions/runs/1817656942

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 11:08 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 11:09 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-db2

🕑 connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1817751812
✅ connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1817751812

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 11:30 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-postgres-strict-encrypt

🕑 connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817803422
❌ connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817803422

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-db2-strict-encrypt

🕑 connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817804155
✅ connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817804155

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-cockroachdb-strict-encrypt

🕑 connectors/source-cockroachdb-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817806745
✅ connectors/source-cockroachdb-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817806745

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 11:42 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 11:42 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 11:43 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-postgres-strict-encrypt

🕑 connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817861515
❌ connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1817861515

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 11:57 Inactive
@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets February 9, 2022 12:30 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-postgres-strict-encrypt

🕑 connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1818371803
❌ connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1818371803

@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets February 9, 2022 13:45 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 13:47 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 9, 2022

/publish connector=connectors/source-postgres-strict-encrypt

🕑 connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1819212916
❌ connectors/source-postgres-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1819212916

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 9, 2022 16:31 Inactive
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve discovery process for user without permissions to avoid fetching not permitted schemas and tables
4 participants