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

Fix issues in running historical analysis and custom result index section #889

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

jackiehanyang
Copy link
Collaborator

@jackiehanyang jackiehanyang commented Oct 14, 2024

Description

Fix the following issues:

  1. wrong route path in running historical analysis
  2. when disabling customer result index after enabling it, the field is not getting reset to undefined which leads an error on create detector review page says empty custom result index name

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

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.

const url = dataSourceId
? `${baseUrl}/${dataSourceId}/start`
: `${baseUrl}/start`;
const baseUrl = `${AD_NODE_API.DETECTOR}/${detectorId}/start`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have _start instead of start? or both can be used?
ref: https://opensearch.org/docs/latest/observing-your-data/ad/api/#start-detector-job

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to use start here. It's different from the _start in the doc you pasted

Signed-off-by: Jackie Han <[email protected]>
@jackiehanyang
Copy link
Collaborator Author

e2e CI failed for this error, not related to this pr:

Run if timeout 600 grep -q "bundles compiled successfully after" <(tail -n0 -f dashboard.log); then
Timeout for 600 seconds reached. OpenSearch Dashboards did not finish compiling.

Did manual e2e verification

@jackiehanyang jackiehanyang merged commit 646a08e into opensearch-project:main Oct 14, 2024
9 of 10 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 14, 2024
…tion (#889)

* Fix issues in running historical analysis and custom result index

Signed-off-by: Jackie Han <[email protected]>

* update snapshot

Signed-off-by: Jackie Han <[email protected]>

---------

Signed-off-by: Jackie Han <[email protected]>
(cherry picked from commit 646a08e)
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.17 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.17 2.17
# Navigate to the new working tree
cd .worktrees/backport-2.17
# Create a new branch
git switch --create backport/backport-889-to-2.17
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 646a08ec2656df5b0597f454fcf4b95f21b513cc
# Push it to GitHub
git push --set-upstream origin backport/backport-889-to-2.17
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.17

Then, create a pull request where the base branch is 2.17 and the compare/head branch is backport/backport-889-to-2.17.

amitgalitz pushed a commit that referenced this pull request Oct 14, 2024
…tion (#889) (#892)

* Fix issues in running historical analysis and custom result index

Signed-off-by: Jackie Han <[email protected]>

* update snapshot

Signed-off-by: Jackie Han <[email protected]>

---------

Signed-off-by: Jackie Han <[email protected]>
(cherry picked from commit 646a08e)

Co-authored-by: Jackie Han <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants