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] Remove empty suggestion history #5349

Merged
merged 6 commits into from
Dec 13, 2023

Conversation

willie-hung
Copy link
Contributor

@willie-hung willie-hung commented Oct 21, 2023

Description

Remove empty suggestion history to maintain a clean and relevant search experience.

Issues Resolved

Fixes #5348

Screenshot

Before

Screenshot 2023-10-20 at 9 13 08 PM

After

Screenshot 2023-10-20 at 9 15 53 PM

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

Signed-off-by: Willie Hung <willie880201044@gmail.com>
@codecov
Copy link

codecov bot commented Oct 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b8d30dc) 66.96% compared to head (7785e69) 66.97%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5349   +/-   ##
=======================================
  Coverage   66.96%   66.97%           
=======================================
  Files        3293     3293           
  Lines       63289    63291    +2     
  Branches    10065    10066    +1     
=======================================
+ Hits        42383    42390    +7     
+ Misses      18462    18459    -3     
+ Partials     2444     2442    -2     
Flag Coverage Δ
Linux_1 35.24% <ø> (?)
Linux_2 55.17% <ø> (ø)
Linux_3 43.80% <100.00%> (+0.01%) ⬆️
Linux_4 35.34% <ø> (?)
Windows_1 35.27% <ø> (ø)
Windows_2 55.14% <ø> (ø)
Windows_3 43.80% <100.00%> (+<0.01%) ⬆️
Windows_4 35.34% <ø> (ø)

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.

Signed-off-by: Willie Hung <willie880201044@gmail.com>
joshuarrrr and others added 3 commits November 13, 2023 13:08
Signed-off-by: Josh Romero <rmerqg@amazon.com>
Signed-off-by: Willie Hung <willie880201044@gmail.com>
Signed-off-by: Willie Hung <willie880201044@gmail.com>
joshuarrrr
joshuarrrr previously approved these changes Dec 13, 2023
Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@joshuarrrr joshuarrrr merged commit 808591a into opensearch-project:main Dec 13, 2023
69 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 13, 2023
* Add search input filter

Signed-off-by: Willie Hung <willie880201044@gmail.com>

* Add CHANGELOG.md

Signed-off-by: Willie Hung <willie880201044@gmail.com>

* Add tests for empty suggestions

Signed-off-by: Willie Hung <willie880201044@gmail.com>

* Add code comment

Signed-off-by: Willie Hung <willie880201044@gmail.com>

---------

Signed-off-by: Willie Hung <willie880201044@gmail.com>
Signed-off-by: Josh Romero <rmerqg@amazon.com>
Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
Co-authored-by: Anan Zhuang <ananzh@amazon.com>
(cherry picked from commit 808591a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
@willie-hung willie-hung deleted the issue5348 branch December 13, 2023 21:10
ananzh pushed a commit that referenced this pull request Dec 14, 2023
* Add search input filter
* Add CHANGELOG.md
* Add tests for empty suggestions
* Add code comment

---------

Signed-off-by: Willie Hung <willie880201044@gmail.com>
Signed-off-by: Josh Romero <rmerqg@amazon.com>
Signed-off-by: Anan Zhuang <ananzh@amazon.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
Co-authored-by: Anan Zhuang <ananzh@amazon.com>
(cherry picked from commit 808591a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.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.

[BUG] Suggesting Empty Input in Search Field
4 participants