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

refactor: separate sql stores from datasources #238

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Aug 7, 2024

What this PR changes/adds

Separate datasource from sql store configuration

Why it does that

Briefly state why the change was necessary.

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes #237

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt added the refactoring changes in structure, object hierarchy, renaming, etc. label Aug 7, 2024
@ndr-brt ndr-brt requested a review from wolf4ood August 7, 2024 09:13
Copy link

github-actions bot commented Aug 7, 2024

Test Results

20 files  ±0  20 suites  ±0   48s ⏱️ -1s
66 tests ±0  66 ✅ ±0  0 💤 ±0  0 ❌ ±0 
75 runs  ±0  75 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 0374c14. ± Comparison against base commit d8026fe.

♻️ This comment has been updated with latest results.

@ndr-brt ndr-brt force-pushed the 237-separate-stores-from-datasources branch from bbae824 to d2f219e Compare August 7, 2024 09:14
@@ -64,6 +68,6 @@
}

private String getDataSourceName(ServiceExtensionContext context) {
return context.getConfig().getString(DATASOURCE_NAME_SETTING, DataSourceRegistry.DEFAULT_DATASOURCE);
return DataSourceName.getDataSourceName(DATASOURCE_NAME, DATASOURCE_SETTING_NAME, context.getConfig(), context.getMonitor());

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
DataSourceName.getDataSourceName
should be avoided because it has been deprecated.
@ndr-brt ndr-brt force-pushed the 237-separate-stores-from-datasources branch from d2f219e to 0374c14 Compare August 7, 2024 09:43
@ndr-brt ndr-brt merged commit fdeb598 into main Aug 7, 2024
29 checks passed
@ndr-brt ndr-brt deleted the 237-separate-stores-from-datasources branch August 7, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring changes in structure, object hierarchy, renaming, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate datasource and store configurations
2 participants