-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Show unmapped fields by default and persist setting #91783
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
on-remove-column="onRemoveColumn" | ||
></thead> | ||
<tbody> | ||
<tr ng-repeat="row in pageOfItems|limitTo:limit track by row._index+row._type+row._id+row._score+row._version+row._routing" | ||
<tr ng-repeat="row in pageOfItems|limitTo:limit track by row._index+row._type+row._id+row._score+row._version+row._routing+hideUnmapped" | ||
kbn-table-row="row" | ||
columns="columns" | ||
sorting="sorting" | ||
|
@@ -87,7 +87,7 @@ | |
on-remove-column="onRemoveColumn" | ||
></thead> | ||
<tbody> | ||
<tr ng-repeat="row in hits|limitTo:limit track by row._index+row._type+row._id+row._score+row._version+row._routing" | ||
<tr ng-repeat="row in hits|limitTo:limit track by row._index+row._type+row._id+row._score+row._version+row._routing+hideUnmapped" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added a functional test for this because it was super weird to me. The cell contents don't update unless one of these properties is updated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, this seems to be the concatenated variable Angular used to track updates, great that you've fixed it and even greater you've added a functional test for it 👍 |
||
kbn-table-row="row" | ||
columns="columns" | ||
sorting="sorting" | ||
|
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.
do you think it makes sense not to set
hideUnmapped
in default state unless it is explicitly set insavedSearch
? This way it would also not become part of the URL unless the user changes the switch. Think the currently functional failure would be fixes without editing anyexpect
, and we would not add a variable to URL without user action.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.
Yes, I think that's reasonable.