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

[Discover 2.0] fixes add filter and dismissible callout #5029

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

ashwin-pc
Copy link
Member

@ashwin-pc ashwin-pc commented Sep 14, 2023

Description

This fixes 4 small issues:

  1. Fixes the add filter in the sidebar for discover 2.0
  2. Fixes the deprecation notice not persisting on page refresh
  3. Loads the filters and query from a saved search
  4. minor type errors.

Issues Resolved

fixes #5027

Screenshot

Screen.Recording.2023-09-14.at.3.41.10.PM.mov

Testing the changes

Pull down the changes and open the discover app. Adding filters in the side panel should work. The dismissable callout should stay dismissed after the page refresh.

Check List

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

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
ananzh
ananzh previously approved these changes Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #5029 (9eeca43) into main (a925581) will increase coverage by 0.00%.
Report is 1 commits behind head on main.
The diff coverage is 20.00%.

❗ Current head 9eeca43 differs from pull request most recent head 8e24607. Consider uploading reports for the commit 8e24607 to get more accurate results

@@           Coverage Diff           @@
##             main    #5029   +/-   ##
=======================================
  Coverage   66.49%   66.50%           
=======================================
  Files        3403     3403           
  Lines       65023    65026    +3     
  Branches    10401    10401           
=======================================
+ Hits        43235    43243    +8     
+ Misses      19225    19214   -11     
- Partials     2563     2569    +6     
Flag Coverage Δ
Linux_1 34.82% <ø> (ø)
Linux_2 55.31% <ø> (ø)
Linux_3 44.60% <20.00%> (-0.01%) ⬇️
Linux_4 34.89% <ø> (ø)
Windows_1 34.83% <ø> (?)
Windows_2 55.27% <ø> (ø)
Windows_3 44.61% <20.00%> (-0.01%) ⬇️
Windows_4 34.89% <ø> (-0.01%) ⬇️

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

Files Changed Coverage Δ
...pplication/view_components/utils/filter_columns.ts 100.00% <ø> (ø)
.../public/application/components/discover_legacy.tsx 2.38% <20.00%> (+2.38%) ⬆️

... and 9 files with indirect coverage changes

abbyhu2000
abbyhu2000 previously approved these changes Sep 14, 2023
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
@ashwin-pc ashwin-pc dismissed stale reviews from abbyhu2000 and ananzh via 8e24607 September 15, 2023 00:51
@@ -8,6 +8,7 @@ import { BehaviorSubject, Subject, merge } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
import { i18n } from '@osd/i18n';
import { useEffect } from 'react';
import { cloneDeep } from 'lodash';
Copy link
Member

Choose a reason for hiding this comment

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

probably will be apart of a future "remove lodash" epic right

similar issue: #4349

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, this is how the legacy app did it and i didnt want to refactor this right now

@kavilla
Copy link
Member

kavilla commented Sep 15, 2023

@ashwin-pc I'm going to watch this bake in 2.x. Instead of waiting for main to finish and then opening and waiting another hour for 2.x, 2.10

@kavilla kavilla merged commit b9b2b79 into opensearch-project:main Sep 15, 2023
38 of 44 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 15, 2023
* fixes add filter and dismissible callout

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>

* fixes filters applying when loading a saved search

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>

---------

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
(cherry picked from commit b9b2b79)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 15, 2023
* fixes add filter and dismissible callout

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>

* fixes filters applying when loading a saved search

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>

---------

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
(cherry picked from commit b9b2b79)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kavilla pushed a commit that referenced this pull request Sep 15, 2023
* fixes add filter and dismissible callout



* fixes filters applying when loading a saved search



---------


(cherry picked from commit b9b2b79)

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
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>
kavilla pushed a commit that referenced this pull request Sep 16, 2023
* fixes add filter and dismissible callout



* fixes filters applying when loading a saved search



---------


(cherry picked from commit b9b2b79)

Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
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
Labels
backport 2.x distinguished-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry v2.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Dashboards RC 2.10.0.6565 filter button in discover app doesn't work
4 participants