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

[Bug][Discover] Allow saved sort from search embeddable to load in Dashboard #5934

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

ananzh
Copy link
Member

@ananzh ananzh commented Feb 23, 2024

Description

Remove default sort to use saved search sort.

Issues Resolved

#5933

Screenshot

save.mov

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

…shboard

Remove default sort to use saved search sort.

Issue Resolve
opensearch-project#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.00%. Comparing base (d56b04d) to head (16f5329).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5934   +/-   ##
=======================================
  Coverage   67.00%   67.00%           
=======================================
  Files        3307     3307           
  Lines       63614    63614           
  Branches    10163    10163           
=======================================
  Hits        42627    42627           
  Misses      18518    18518           
  Partials     2469     2469           
Flag Coverage Δ
Linux_1 35.21% <ø> (ø)
Linux_2 55.09% <ø> (ø)
Linux_3 43.63% <ø> (+0.01%) ⬆️
Linux_4 35.20% <ø> (ø)
Windows_1 35.24% <ø> (ø)
Windows_2 55.06% <ø> (ø)
Windows_3 43.63% <ø> (ø)
Windows_4 35.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ashwin-pc ashwin-pc left a comment

Choose a reason for hiding this comment

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

Would be nice if we had a test for this.

@ananzh ananzh merged commit 790c076 into opensearch-project:main Feb 23, 2024
95 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 23, 2024
…shboard (#5934)

Remove default sort to use saved search sort.

Issue Resolve
#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
(cherry picked from commit 790c076)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
BionIT pushed a commit to BionIT/OpenSearch-Dashboards that referenced this pull request Feb 24, 2024
…shboard (opensearch-project#5934)

Remove default sort to use saved search sort.

Issue Resolve
opensearch-project#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@seraphjiang
Copy link
Member

Would be nice if we had a test for this.

I'm curious to know why it is nice not required to have test? just want to be sure we could maintain same quality bar

cc: @wbeckler @AMoo-Miki @zengyan-amazon

@ananzh
Copy link
Member Author

ananzh commented Feb 26, 2024

discover-sort.mov

@ashwin-pc
Copy link
Member

@seraphjiang you are right, this is not a nice to have test, but a required one. @ananzh can you as a followup to this PR add a test for this scenario?

My original hesitation was because I was worried that we would be adding testing here for testing sake. But that is an unnecessary worry.

@seraphjiang
Copy link
Member

Thanks @ashwin-pc for clarification.
I also agree not necessary adding testing for testing sake. as long as we have a way to ensure quality. the test could be added in follow up issue/PR.

@ananzh
Copy link
Member Author

ananzh commented Feb 27, 2024

@ashwin-pc @seraphjiang Yes, we do have a meta issue to create more tests for discover #5713.
The section Function Test Suite 6: Saved Search Embeddable in Dashboard is the one to track. I have create an issue for this section and label it. Will work on it.

ananzh added a commit to ananzh/OpenSearch-Dashboards that referenced this pull request Feb 27, 2024
…shboard (opensearch-project#5934)

Remove default sort to use saved search sort.

Issue Resolve
opensearch-project#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
abbyhu2000 added a commit that referenced this pull request Feb 29, 2024
…shboard (#5934) (#5938)

Remove default sort to use saved search sort.

Issue Resolve
#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
(cherry picked from commit 790c076)
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: Qingyang(Abby) Hu <abigailhu2000@gmail.com>
SuZhou-Joe pushed a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Mar 4, 2024
…shboard (opensearch-project#5934)

Remove default sort to use saved search sort.

Issue Resolve
opensearch-project#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
SuZhou-Joe pushed a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Apr 7, 2024
…shboard (opensearch-project#5934)

Remove default sort to use saved search sort.

Issue Resolve
opensearch-project#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
SuZhou-Joe pushed a commit to ruanyl/OpenSearch-Dashboards that referenced this pull request Apr 7, 2024
…shboard (opensearch-project#5934)

Remove default sort to use saved search sort.

Issue Resolve
opensearch-project#5933

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants