-
Notifications
You must be signed in to change notification settings - Fork 916
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ttern (opensearch-project#4875) (opensearch-project#4885)" This reverts commit 0102a32. try revert:
Signed-off-by: qiwen li <[email protected]>
MadaniKK
requested review from
ananzh,
kavilla,
seanneumann,
AMoo-Miki,
ashwin-pc,
joshuarrrr,
abbyhu2000,
zengyan-amazon,
kristenTian,
zhongnansu,
manasvinibs,
ZilongX,
Flyingliuhub,
BSFishy and
curq
as code owners
November 18, 2023 23:49
Codecov ReportAttention:
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
SuZhou-Joe
reviewed
Nov 20, 2023
src/plugins/discover/public/application/components/sidebar/discover_sidebar.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: qiwen li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
…n are only shown in canvas area Signed-off-by: qiwen li <[email protected]>
…s into fix-5268-2 merge
ananzh
reviewed
Nov 22, 2023
src/plugins/discover/public/application/components/sidebar/discover_sidebar.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/components/sidebar/discover_sidebar.tsx
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/view_components/utils/filter_columns.ts
Show resolved
Hide resolved
src/plugins/discover/public/application/view_components/utils/filter_columns.ts
Show resolved
Hide resolved
Co-authored-by: Anan Zhuang <[email protected]> Signed-off-by: Qiwen Li <[email protected]>
Signed-off-by: Qiwen Li <[email protected]>
…s into fix-5268-2 merge
Signed-off-by: Anan Zhuang <[email protected]>
ananzh
previously approved these changes
Dec 14, 2023
ananzh
added
discover
for discover reinvent
bug
Something isn't working
v2.12.0
backport 2.x
labels
Dec 14, 2023
ashwin-pc
previously approved these changes
Dec 14, 2023
Signed-off-by: Anan Zhuang <[email protected]>
ananzh
previously approved these changes
Dec 14, 2023
SuZhou-Joe
previously approved these changes
Dec 15, 2023
Signed-off-by: Ashwin P Chandran <[email protected]>
ananzh
approved these changes
Dec 21, 2023
ashwin-pc
approved these changes
Dec 21, 2023
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
When MODIFY_COLUMN_ON_SWICTH is on/true:
only shared columns would be preserved in the canvas area
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
yarn test:jest
yarn test:jest_integration