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

[osci23] implmented advance setting in Dicover: MODIFY_COLUMN_ON_SWITCH #5508

Merged
merged 13 commits into from
Dec 21, 2023

Conversation

MadaniKK
Copy link
Contributor

@MadaniKK MadaniKK commented Nov 18, 2023

Description

Before, when we switched between data samples(indexPattern), the previously selected columns in the canvas area got cleared regardless of the setting of MODIFY_COLUMN_ON_SWICTH.

Expected behavior

When MODIFY_COLUMN_ON_SWICTH is off, the previous selected columns should be kept in the canvas area. The fields in the left sidebar should always only show the existing fields in the new indexPattern regardless of the MODIFY_COLUMN_ON_SWITCH.

Issues Resolved

Issue #5268

Screenshot

When MODIFY_COLUMN_ON_SWICTH is off/false:
We can still see columns from the previously chosen indexPattern in the canvas area
image

image

When MODIFY_COLUMN_ON_SWICTH is on/true:
only shared columns would be preserved in the canvas area
image
image

Testing the changes

go to the advanced setting to modify MODIFY_COLUMN_ON_SWICTH as shown in issue #5268
modify the side nav to see the changes.

Check List

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

Copy link

codecov bot commented Nov 19, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (28c1fbb) 67.02% compared to head (8183469) 67.02%.

Files Patch % Lines
...pplication/view_components/utils/filter_columns.ts 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5508      +/-   ##
==========================================
- Coverage   67.02%   67.02%   -0.01%     
==========================================
  Files        3294     3294              
  Lines       63306    63309       +3     
  Branches    10069    10071       +2     
==========================================
+ Hits        42431    42433       +2     
  Misses      18431    18431              
- Partials     2444     2445       +1     
Flag Coverage Δ
Linux_1 35.24% <ø> (ø)
Linux_2 55.19% <ø> (ø)
Linux_3 43.86% <75.00%> (+<0.01%) ⬆️
Linux_4 35.34% <ø> (ø)
Windows_1 35.26% <ø> (ø)
Windows_2 55.15% <ø> (ø)
Windows_3 43.88% <75.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.

@MadaniKK MadaniKK requested a review from SuZhou-Joe November 21, 2023 23:01
ananzh
ananzh previously approved these changes Dec 14, 2023
@ananzh ananzh added discover for discover reinvent bug Something isn't working v2.12.0 backport 2.x labels Dec 14, 2023
ashwin-pc
ashwin-pc previously approved these changes Dec 14, 2023
@ananzh ananzh dismissed stale reviews from ashwin-pc and themself via 5138453 December 14, 2023 23:15
ananzh
ananzh previously approved these changes Dec 14, 2023
SuZhou-Joe
SuZhou-Joe previously approved these changes Dec 15, 2023
Signed-off-by: Ashwin P Chandran <[email protected]>
@ashwin-pc ashwin-pc dismissed stale reviews from SuZhou-Joe and ananzh via 8183469 December 19, 2023 23:54
@ashwin-pc ashwin-pc merged commit 34994f8 into opensearch-project:main Dec 21, 2023
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 21, 2023
…CH (#5508)

* Revert "[Data Explorer][Discover 2.0] Fix issues when change index pattern (#4875) (#4885)"

This reverts commit 0102a32.
try revert:

* [osci23] implmented advance setting in Dicover: MODIFY_COLUMN_ON_SWITCH

Signed-off-by: qiwen li <[email protected]>

* fix deps

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Qiwen Li <[email protected]>

* modify to match discover legacy behavior, columns from previous column are only shown in canvas area

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Anan Zhuang <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>

* removed unused variables, added comments and @param

Signed-off-by: Qiwen Li <[email protected]>

---------

Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Ashwin P Chandran <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit 34994f8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 26, 2024
…CH (#5508)

* Revert "[Data Explorer][Discover 2.0] Fix issues when change index pattern (#4875) (#4885)"

This reverts commit 0102a32.
try revert:

* [osci23] implmented advance setting in Dicover: MODIFY_COLUMN_ON_SWITCH

Signed-off-by: qiwen li <[email protected]>

* fix deps

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Qiwen Li <[email protected]>

* modify to match discover legacy behavior, columns from previous column are only shown in canvas area

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Anan Zhuang <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>

* removed unused variables, added comments and @param

Signed-off-by: Qiwen Li <[email protected]>

---------

Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Ashwin P Chandran <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit 34994f8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
manasvinibs pushed a commit that referenced this pull request Jan 31, 2024
…CH (#5508)

* Revert "[Data Explorer][Discover 2.0] Fix issues when change index pattern (#4875) (#4885)"

This reverts commit 0102a32.
try revert:

* [osci23] implmented advance setting in Dicover: MODIFY_COLUMN_ON_SWITCH

Signed-off-by: qiwen li <[email protected]>

* fix deps

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Qiwen Li <[email protected]>

* modify to match discover legacy behavior, columns from previous column are only shown in canvas area

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Anan Zhuang <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>

* removed unused variables, added comments and @param

Signed-off-by: Qiwen Li <[email protected]>

---------

Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Ashwin P Chandran <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit 34994f8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
manasvinibs pushed a commit that referenced this pull request Jan 31, 2024
…CH (#5508)

* Revert "[Data Explorer][Discover 2.0] Fix issues when change index pattern (#4875) (#4885)"

This reverts commit 0102a32.
try revert:

* [osci23] implmented advance setting in Dicover: MODIFY_COLUMN_ON_SWITCH

Signed-off-by: qiwen li <[email protected]>

* fix deps

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Qiwen Li <[email protected]>

* modify to match discover legacy behavior, columns from previous column are only shown in canvas area

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Anan Zhuang <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>

* removed unused variables, added comments and @param

Signed-off-by: Qiwen Li <[email protected]>

---------

Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Ashwin P Chandran <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit 34994f8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
manasvinibs pushed a commit that referenced this pull request Jan 31, 2024
…CH (#5508) (#5746)

* Revert "[Data Explorer][Discover 2.0] Fix issues when change index pattern (#4875) (#4885)"

This reverts commit 0102a32.
try revert:

* [osci23] implmented advance setting in Dicover: MODIFY_COLUMN_ON_SWITCH

Signed-off-by: qiwen li <[email protected]>

* fix deps

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Qiwen Li <[email protected]>

* modify to match discover legacy behavior, columns from previous column are only shown in canvas area

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Anan Zhuang <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>

* removed unused variables, added comments and @param

Signed-off-by: Qiwen Li <[email protected]>

---------

Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Ashwin P Chandran <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit 34994f8)
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>
ashwin-pc pushed a commit that referenced this pull request Feb 5, 2024
…CH (#5508) (#5638)

* Revert "[Data Explorer][Discover 2.0] Fix issues when change index pattern (#4875) (#4885)"

This reverts commit 0102a32.
try revert:

* [osci23] implmented advance setting in Dicover: MODIFY_COLUMN_ON_SWITCH

Signed-off-by: qiwen li <[email protected]>

* fix deps

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Qiwen Li <[email protected]>

* modify to match discover legacy behavior, columns from previous column are only shown in canvas area

Signed-off-by: qiwen li <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Anan Zhuang <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>

* removed unused variables, added comments and @param

Signed-off-by: Qiwen Li <[email protected]>

---------

Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Anan Zhuang <[email protected]>
Signed-off-by: Ashwin P Chandran <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit 34994f8)
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working discover for discover reinvent first-time-contributor v2.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants