-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: update backend to support MDS #190
Conversation
@@ -123,16 +146,20 @@ const feedbackRoute = { | |||
body: schema.object({ | |||
satisfaction: schema.boolean(), | |||
}), | |||
query: schema.object({ | |||
dataSourceId: schema.maybe(schema.string()), |
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.
Shall we add some UT for dataSourceId query passed?
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.
We could add UT for data source specifically, for now this PR is depended by other PRs, right?
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.
Do you mean will be added in the following PRs?
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.
I remember that you wanted this PR being merged ASAP, if not, we could try to add tests in this PR to make this fully.
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.
I think you can added them first. At least we need to verify the route handler called getOpenSearchClientTransport with passed data source id.
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: Lin Wang <wonglam@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/dashboards-assistant/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/dashboards-assistant/backport-2.x
# Create a new branch
git switch --create backport/backport-190-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0d6ce86b742b50b3a0cc0cd8a1a609ced1d59895
# Push it to GitHub
git push --set-upstream origin backport/backport-190-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/dashboards-assistant/backport-2.x Then, create a pull request where the |
* init MDS Signed-off-by: tygao <tygao@amazon.com> * update backend to support mds Signed-off-by: tygao <tygao@amazon.com> * remove DSM in required plugins Signed-off-by: tygao <tygao@amazon.com> * doc: update changelog Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * update mock context Signed-off-by: tygao <tygao@amazon.com> * update core context mock Signed-off-by: tygao <tygao@amazon.com> * test: add tests for chat route Signed-off-by: tygao <tygao@amazon.com> * use await and update tests Signed-off-by: tygao <tygao@amazon.com> * Fix unit tests after getDataSourceQuery change Signed-off-by: Lin Wang <wonglam@amazon.com> * remove useless DSM calling in flyout Signed-off-by: tygao <tygao@amazon.com> --------- Signed-off-by: tygao <tygao@amazon.com> Signed-off-by: Lin Wang <wonglam@amazon.com> Co-authored-by: Lin Wang <wonglam@amazon.com> (cherry picked from commit 0d6ce86) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
* init MDS Signed-off-by: tygao <tygao@amazon.com> * update backend to support mds Signed-off-by: tygao <tygao@amazon.com> * remove DSM in required plugins Signed-off-by: tygao <tygao@amazon.com> * doc: update changelog Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * update mock context Signed-off-by: tygao <tygao@amazon.com> * update core context mock Signed-off-by: tygao <tygao@amazon.com> * test: add tests for chat route Signed-off-by: tygao <tygao@amazon.com> * use await and update tests Signed-off-by: tygao <tygao@amazon.com> * Fix unit tests after getDataSourceQuery change Signed-off-by: Lin Wang <wonglam@amazon.com> * remove useless DSM calling in flyout Signed-off-by: tygao <tygao@amazon.com> --------- Signed-off-by: tygao <tygao@amazon.com> Signed-off-by: Lin Wang <wonglam@amazon.com> Co-authored-by: Lin Wang <wonglam@amazon.com> (cherry picked from commit 0d6ce86) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: tygao <tygao@amazon.com>
Description
There will be another PR about integrating in frontend and depend on opensearch-project/OpenSearch-Dashboards#6827
Issue resolved
#192
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.