-
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
[OSCI][Fix][Discover]Prevent Adding Timefield to the Side Nav Selected Fields on Column Removal #5537
Conversation
…Field if it was not previously chosen. Signed-off-by: qiwen li <qiwen_li@brown.edu>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5537 +/- ##
==========================================
+ Coverage 66.98% 67.02% +0.03%
==========================================
Files 3294 3294
Lines 63296 63296
Branches 10066 10066
==========================================
+ Hits 42398 42422 +24
+ Misses 18500 18431 -69
- Partials 2398 2443 +45
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@MadaniKK Can you add a changelog entry? |
Hi, Josh, I found another bug (issue #5538) when I wrote this PR, and I found out I could fix it within the same PR. should I make a new PR or fix these two issues in the same PR? ( I just needed to reorder two lines of codes that I wrote in this PR and it will fix issue #5538 too) |
Signed-off-by: qiwen li <qiwen_li@brown.edu>
… fix-5527-2 merge
Signed-off-by: Qiwen Li <qiwen_li@brown.edu>
@MadaniKK love these fixes and thanks a lot. I will re-run the failed cypress tests and update you. |
@MadaniKK, for #5538, your understanding seems not quite right. This advanced setting For the legacy Discover, we could have a better understanding
The buildColumns fun itself will make sure when no columns
Therefore, the problem is why enabling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to research on doc_table:hideTimeColumn
and find out the root cause of the break. Thanks a lot for carefully checking these settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is an acceptable change to fix all the bugs together. @MadaniKK could you select and add more explains here from public slack? Also there is a conflict on CHANGELOG. Thanks.
… fix-5527-2 merge
Signed-off-by: qiwen li <qiwen_li@brown.edu>
Signed-off-by: qiwen li <qiwen_li@brown.edu>
This reverts commit ef5f062. Signed-off-by: qiwen li <qiwen_li@brown.edu> revert
Signed-off-by: Qiwen Li <qiwen_li@brown.edu>
…d Fields on Column Removal (#5537) * added in a filter for columns before rendering the panel, remove timeField if it was not previously chosen. * fix issue 5538 too --------- Signed-off-by: qiwen li <qiwen_li@brown.edu> Signed-off-by: Qiwen Li <qiwen_li@brown.edu> (cherry picked from commit 0a33d4a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…d Fields on Column Removal (#5537) (#5617) * added in a filter for columns before rendering the panel, remove timeField if it was not previously chosen. * fix issue 5538 too --------- Signed-off-by: qiwen li <qiwen_li@brown.edu> Signed-off-by: Qiwen Li <qiwen_li@brown.edu> (cherry picked from commit 0a33d4a) 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>
…d Fields on Column Removal (#5537) * added in a filter for columns before rendering the panel, remove timeField if it was not previously chosen. * fix issue 5538 too --------- Signed-off-by: qiwen li <qiwen_li@brown.edu> Signed-off-by: Qiwen Li <qiwen_li@brown.edu> (cherry picked from commit 0a33d4a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…d Fields on Column Removal (#5537) * added in a filter for columns before rendering the panel, remove timeField if it was not previously chosen. * fix issue 5538 too --------- Signed-off-by: qiwen li <qiwen_li@brown.edu> Signed-off-by: Qiwen Li <qiwen_li@brown.edu> (cherry picked from commit 0a33d4a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…d Fields on Column Removal (#5537) (#5745) * added in a filter for columns before rendering the panel, remove timeField if it was not previously chosen. * fix issue 5538 too --------- Signed-off-by: qiwen li <qiwen_li@brown.edu> Signed-off-by: Qiwen Li <qiwen_li@brown.edu> (cherry picked from commit 0a33d4a) 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>
Description
Issue #5527: Now the time field of an index pattern would not get wrongly added to the selected field when we click
remove column
on canvas.Issue #5538: When doc_table:hideTimeColumn is enabled, removing the last columns from the canvas would automatically add "_source" to the selected fields in the left nav bar.
Issues Resolved
issue #5527 #5538
Screenshot
For #5527
For #5538
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration