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

[Backport 2.x] [MD] Refactor data source server side error handling #2679

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 9a0bb30 from #2661

- Rename DataSourceConfigError to DataSourceError
- Add helper createDataSourceError() to create data source error from, and replace usage of new DataSourceError(e) with createDataSourceError(e)
- import createDataSourceError()  from data source plugin setup interface,
refactor to move data source error response logic from router.ts to resolve_index.ts.

Signed-off-by: Su <szhongna@amazon.com>
(cherry picked from commit 9a0bb30)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team as a code owner October 27, 2022 05:43
@zhongnansu zhongnansu added the v2.4.0 'Issues and PRs related to version v2.4.0' label Oct 27, 2022
@zhongnansu zhongnansu merged commit 8906a03 into 2.x Oct 27, 2022
@github-actions github-actions bot deleted the backport/backport-2661-to-2.x branch October 27, 2022 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.4.0 'Issues and PRs related to version v2.4.0'
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants