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

Notebooks add index refresh, remove SQL check in paragraph #1065

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

ps48
Copy link
Member

@ps48 ps48 commented Feb 6, 2024

Description

Notebooks add index refresh, remove SQL check in paragraph

Issues Resolved

#897

Check List

  • 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.

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
@ps48
Copy link
Member Author

ps48 commented Feb 6, 2024

Hi @wanglam & @ruanyl, Can you please review this PR and add the backport label to main. Thanks!

cy.reload();
// Force refresh the observablity index and reload page to load notebooks.
if (loadedOnce === 0) {
cy.request({
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems this refresh only execute once after moveToNotebookHome call. Is this by intentionally?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, once the refresh is complete then new notebook is loaded. Internally, Observability index notebook doc Id in lucene is committed after creation and refresh and doesn't need a refresh for document updates.

Copy link
Collaborator

@wanglam wanglam left a comment

Choose a reason for hiding this comment

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

LGTM

@ruanyl ruanyl merged commit f45cdf7 into opensearch-project:2.x Feb 6, 2024
38 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 6, 2024
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit f45cdf7)
ruanyl pushed a commit that referenced this pull request Feb 7, 2024
…1067)

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit f45cdf7)

Co-authored-by: Shenoy Pratik <sgguruda@amazon.com>
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.

3 participants