[Discover] Display a warning and a tooltip for the _score column in the grid#211013
Conversation
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
|
thx a lot @rbrtj, I didn't have the time to review, but our team will certainly take care of it ... just one question, do you have an idea why the async bundle is increased by 8.7 kb? it seems the change is adding 1 kb by each DataView usage, not a blocker, just thinking |
src/platform/packages/shared/kbn-unified-data-table/src/components/data_table_columns.tsx
Outdated
Show resolved
Hide resolved
akowalska622
left a comment
There was a problem hiding this comment.
LGTM and works as expected, just minor nit added
| dataView: DataView; | ||
| columnName: string; | ||
| columnDisplayName: string; | ||
| showColumnTokens?: boolean; | ||
| isSorted?: boolean; | ||
| columnsMeta?: DataTableColumnsMeta; | ||
| headerRowHeight?: number; | ||
| }) => { |
There was a problem hiding this comment.
For consistency with DataTableColumnHeaderProps can we extract it to interface?
Also they both look pretty similar, I believe we can just extend DataTableColumnHeaderProps by isSorted, what do you think?
interface ExtendedDataTableColumnHeaderProps extends DataTableColumnHeaderProps {
isSorted?: boolean;
}
I leave interface name up to you
There was a problem hiding this comment.
Or just extending it inline
export const DataTableScoreColumnHeader = ({
isSorted,
showColumnTokens,
columnName,
columnsMeta,
dataView,
headerRowHeight,
columnDisplayName,
}: DataTableColumnHeaderProps & { isSorted?: boolean }) => {
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @rbrtj |
|
one thing: I think this should be a |
|
Starting backport for target branches: 8.x |
|
Starting backport for target branches: 8.x |
|
After some discussions, we've learned we should be backporting new work to 8.19 where possible. I updated the labels on this one to trigger a backport to 8.19. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… the grid (elastic#211013) Resolves: elastic#167271 https://github.com/user-attachments/assets/f21be330-a85d-471c-a6c3-d172ff7a15d2 (cherry picked from commit 67f6fd3)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…umn in the grid (#211013) (#213296) # Backport This will backport the following commits from `main` to `8.x`: - [[Discover] Display a warning and a tooltip for the `_score` column in the grid (#211013)](#211013) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-17T12:22:33Z","message":"[Discover] Display a warning and a tooltip for the `_score` column in the grid (#211013)\n\nResolves: https://github.com/elastic/kibana/issues/167271\n\n\n\nhttps://github.com/user-attachments/assets/f21be330-a85d-471c-a6c3-d172ff7a15d2","sha":"67f6fd3ec87eb41cfdbc89cee9a5cfa9f1bf2061","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Feature:Discover","enhancement","Team:DataDiscovery","papercut","backport:version","v9.1.0","v8.19.0"],"title":"[Discover] Display a warning and a tooltip for the `_score` column in the grid","number":211013,"url":"https://github.com/elastic/kibana/pull/211013","mergeCommit":{"message":"[Discover] Display a warning and a tooltip for the `_score` column in the grid (#211013)\n\nResolves: https://github.com/elastic/kibana/issues/167271\n\n\n\nhttps://github.com/user-attachments/assets/f21be330-a85d-471c-a6c3-d172ff7a15d2","sha":"67f6fd3ec87eb41cfdbc89cee9a5cfa9f1bf2061"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211013","number":211013,"mergeCommit":{"message":"[Discover] Display a warning and a tooltip for the `_score` column in the grid (#211013)\n\nResolves: https://github.com/elastic/kibana/issues/167271\n\n\n\nhttps://github.com/user-attachments/assets/f21be330-a85d-471c-a6c3-d172ff7a15d2","sha":"67f6fd3ec87eb41cfdbc89cee9a5cfa9f1bf2061"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
Resolves: #167271
Screen.Recording.2025-02-13.at.14.47.50.mov