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

remove usages of YamlSeedConfigPersistence #17895

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

pedroslopez
Copy link
Contributor

@pedroslopez pedroslopez commented Oct 12, 2022

What

Removes usages of YamlSeedConfigPersistence and replaces them with LocalDefinitionsProvider and the adapter when necessary. We need to do this before removing the class itself because Cloud is still depending on some of this.

A follow up PR will remove the class.

part of #17844

How

  • When possible, use LocalDefinitionsProvider directly
  • If we still need a ConfigPersistence, use the adapter class with a LocalDefinitionsProvider

After this PR, YamlSeedConfigPersistence is only used in the definition for the class and its tests.

@@ -33,6 +33,8 @@
*/
final public class LocalDefinitionsProvider implements DefinitionsProvider {

public static final Class<?> DEFAULT_SEED_DEFINITION_RESOURCE_CLASS = SeedType.class;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the change that cloud needs in order for it to fully remove its usages of YamlSeedConfigPersistence and we can delete it safely.

@pedroslopez pedroslopez temporarily deployed to more-secrets October 12, 2022 16:14 Inactive
Copy link
Contributor

@evantahler evantahler left a comment

Choose a reason for hiding this comment

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

👍 from me, but I probably don't know enough about this part of the codebase to know if there's anything related that might break. I'll add another reviewer :D

@evantahler evantahler requested a review from davinchia October 12, 2022 16:29
@pedroslopez
Copy link
Contributor Author

pedroslopez commented Oct 12, 2022

I think @gosusnp may have more context on the YamlSeedConfigPersistence -> DefinitionsProvider changes as he reviewed the original PR #16018, adding him as a reviewer

@pedroslopez pedroslopez requested a review from gosusnp October 12, 2022 16:37
@evantahler evantahler removed the request for review from davinchia October 12, 2022 16:37
@pedroslopez pedroslopez merged commit 908f394 into master Oct 13, 2022
@pedroslopez pedroslopez deleted the pedroslopez/rm-config-pers-class branch October 13, 2022 14:28
letiescanciano added a commit that referenced this pull request Oct 14, 2022
…vation

* master: (98 commits)
  🐛 Source Bing Ads - Fix Campaigns stream misses Audience and Shopping (#17873)
  Source S3 - fix schema inference (#17991)
  🎉 JDBC sources: store cursor record count in db state (#15535)
  Introduce webhook configs into workspace api and persistence (#17950)
  ci: upload test results to github for analysis (#17953)
  Trigger the connectors build if there are worker changes. (#17976)
  Add additional sync timing information (#17643)
  Use page_token_option instead of page_token (#17892)
  capture metrics around json messages size (#17973)
  🐛 Correct kube annotations variable as per the docs. (#17972)
  🪟 🎉 Add /connector-builder page with embedded YAML editor (#17482)
  fix `est_num_metrics_emitted_by_reporter` not being emitted (#17929)
  Update schema dumps (#17960)
  Remove the bump in the value.yml (#17959)
  Ensure database initialization in test container (#17697)
  Remove typo line from incremental reads docs (#17920)
  DocS: Update authentication.md (#17931)
  Use MessageMigration for Source Connection Check. (#17656)
  fixed links (#17949)
  remove usages of YamlSeedConfigPersistence (#17895)
  ...
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
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.

3 participants