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

Prepare YamlSeedConfigPersistence for dependency injection #13384

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

jdpgrailsdev
Copy link
Contributor

What

How

  • Refactor the YamlSeedConfigPerisstence class to be dependency injection friendly

Recommended reading order

  1. YamlSeedConfigPersistence.java
  2. All other changes are reactions to the changes to the class in checkin catalogs #1

🚨 User Impact 🚨

N/A

Tests

Unit
  • All unit tests pass
Integration
  • Application starts locally and connectors exists in seeded database

@jdpgrailsdev jdpgrailsdev temporarily deployed to more-secrets June 1, 2022 16:33 Inactive
@github-actions github-actions bot added area/platform issues related to the platform area/server labels Jun 1, 2022
@jdpgrailsdev
Copy link
Contributor Author

Note that I did a pivot from the original ticket which proposed a much larger refactor. As I looked at the existing code, I realized that the simple change needed to make the classes ready for dependency injection is to remove the static methods and make the code create a new instance via the constructor.

@jdpgrailsdev
Copy link
Contributor Author

Transient accept test failure:

AcceptanceTests > testBackpressure() > io.airbyte.test.acceptance.AcceptanceTests.testBackpressure()[1] FAILED
    io.airbyte.api.client.invoker.generated.ApiException: java.io.IOException: HTTP/1.1 header parser received no bytes

Copy link
Contributor

@lmossman lmossman left a comment

Choose a reason for hiding this comment

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

Seems pretty straightforward to me

@jdpgrailsdev jdpgrailsdev merged commit 568057a into master Jun 3, 2022
@jdpgrailsdev jdpgrailsdev deleted the jonathan/seed-persistence-di-prep branch June 3, 2022 12:47
chebalski added a commit to BluestarGenomics/airbyte that referenced this pull request Jul 25, 2022
* master: (142 commits)
  Highlight removed and added streams in Connection form (airbytehq#13392)
  🐛  Source Amplitude: Fixed JSON Validator `date-time` validation (airbytehq#13373)
  🐛 Source Mixpanel: publish v0.1.17 (airbytehq#13450)
  Fixed reverted PR: Fix cancel button when it doesn't provide feedback to the user + UX improvements (airbytehq#13388)
  🎉 Source Freshdesk: Added new streams (airbytehq#13332)
  Prepare YamlSeedConfigPersistence for dependency injection (airbytehq#13384)
  helm chart: Support nodeSelector, tolerations and affinity on the booloader pod (airbytehq#11467)
  airbyte-api: add jackson model annotations to remove null values from responses (airbytehq#13370)
  Change stage to `beta` (airbytehq#13422)
  🐛 Source Google Sheets: Retry on server errors (airbytehq#13446)
  Improve kube deploy process. (airbytehq#13397)
  Helm chart dependencies fix (airbytehq#13432)
  🐛 Source HubSpot: Transform `contact_lists` data to comply with schema (airbytehq#13218)
  airbytehq#11758: Source Google Ads to GA (airbytehq#13441)
  Add more pr actions to tag pull requests (airbytehq#13437)
  Source Google Ads: drop schema field that filters out the data from stream (airbytehq#13423)
  Updates error view with new design (airbytehq#13197)
  Source MSSQL: correct enum Standard method (airbytehq#13419)
  Update postgres doc about cdc publication (airbytehq#13433)
  run source acceptance tests against image built from branch (airbytehq#13401)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants