-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 config persistence from seeding logic #18749
Changes from all commits
be2851f
d985c43
2e8019e
682eb3b
3719424
2e6407c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
import io.airbyte.config.StandardDestinationDefinition; | ||
import io.airbyte.config.StandardSourceDefinition; | ||
import io.airbyte.config.persistence.ConfigPersistence; | ||
import io.airbyte.config.persistence.ConfigRepository; | ||
import io.airbyte.validation.json.JsonValidationException; | ||
import java.io.IOException; | ||
|
@@ -49,9 +48,9 @@ public void apply(final boolean updateAll) throws JsonValidationException, IOExc | |
} else { | ||
// todo (pedroslopez): Logic to apply definitions should be moved outside of the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pedroslopez i think this PR does this todo. i don't have context into why it wasn't all just using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason for this |
||
// DatabaseConfigPersistence class and behavior standardized | ||
final ConfigPersistence dbConfigPersistence = configRepository.getConfigPersistence(); | ||
final ConfigPersistence providerConfigPersistence = new DefinitionProviderToConfigPersistenceAdapter(definitionsProvider); | ||
dbConfigPersistence.loadData(providerConfigPersistence); | ||
configRepository.seedActorDefinitions( | ||
definitionsProvider.getSourceDefinitions(), | ||
definitionsProvider.getDestinationDefinitions()); | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep only this constructor? Otherwise it will make us to move away from Micronaut, We should update the bean of the different BeanFactories.