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

FEATURE: Dynamic presets #4

Merged

Conversation

Viktor2588
Copy link
Contributor

Add a variant to fromConfiguration() and additionally created createFromPreset()

Background: The idea here is to enable dynamically overriding the Datasource and Nodepaths in ContentRepositoryTarget after loading the inital datasource config. Thus import the same Preset under different paths depending on the imported objects context and/or using a different datasource.

feat: Add function withDataSourceAndTarget
feat: Add function createWithDataSourceAndTarget
Replaced createWithDataSourceAndTarget with createFromPreset. This allows a far easier way of dynamically changing Nodepaths in ContentRepositoryTarget. Thus import the same Preset under different paths depending on the imported objects context.
Add a variant to fromConfiguration(). Which allows to use an existing datasource with a given Configuration. Background: The idea here is to enable dynamically overriding the Datasource after loading the inital datasource config.
@bwaidelich bwaidelich changed the title Feature/with data source and target FEATURE: Dynamic presets Sep 9, 2022
@bwaidelich
Copy link
Owner

Thanks a lot for your contribution. I just tweaked the PR (i.e. commit) message slightly

@bwaidelich bwaidelich merged commit f58c2e3 into bwaidelich:master Sep 9, 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.

2 participants