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

[Discover] Support grid column settings on Surrounding Documents page #177003

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

jughosta
Copy link
Contributor

@jughosta jughosta commented Feb 15, 2024

Summary

This PR keeps track of column resizing on Surrounding documents page: if user resizes columns and thne loads more documents, the grid will rerender accordingly and it will keep custom column widths.

Checklist

@jughosta jughosta added release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Feb 15, 2024
@jughosta jughosta self-assigned this Feb 15, 2024
@jughosta jughosta marked this pull request as ready for review February 15, 2024 14:50
@jughosta jughosta requested a review from a team as a code owner February 15, 2024 14:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@jughosta jughosta changed the title [Discover] Persist grid column settings on Surrounding Documents page [Discover] Support grid column settings on Surrounding Documents page Feb 15, 2024
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 723 724 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 579.4KB 579.6KB +256.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jughosta

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx for fixing this 🙇 . Tested locally and resizing of columns and keeping this width works as expected. One ask could you describe what was fixed in the issue, many thx 👍

@jughosta
Copy link
Contributor Author

@kertal I updated the PR description. Is it what you meant?

@kertal
Copy link
Member

kertal commented Feb 19, 2024

@jughosta yes, excactly, thx 👍

@jughosta jughosta merged commit a482a7a into elastic:main Feb 19, 2024
16 checks passed
@jughosta jughosta deleted the 174485-context-grid-state branch February 19, 2024 18:56
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 19, 2024
…elastic#177003)

- Closes elastic#174485

### Summary

This PR keeps track of column resizing on Surrounding documents page: if
user resizes columns and thne loads more documents, the grid will
rerender accordingly and it will keep custom column widths.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit a482a7a)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.13

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 19, 2024
…ts page (#177003) (#177231)

# Backport

This will backport the following commits from `main` to `8.13`:
- [[Discover] Support grid column settings on Surrounding Documents page
(#177003)](#177003)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-02-19T18:56:05Z","message":"[Discover]
Support grid column settings on Surrounding Documents page
(#177003)\n\n- Closes
https://github.com/elastic/kibana/issues/174485\r\n\r\n###
Summary\r\n\r\nThis PR keeps track of column resizing on Surrounding
documents page: if\r\nuser resizes columns and thne loads more
documents, the grid will\r\nrerender accordingly and it will keep custom
column widths.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"a482a7a98fc16a4efad27eac38dd67eafe4b64a6","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:prev-minor","v8.14.0"],"title":"[Discover]
Support grid column settings on Surrounding Documents
page","number":177003,"url":"https://github.com/elastic/kibana/pull/177003","mergeCommit":{"message":"[Discover]
Support grid column settings on Surrounding Documents page
(#177003)\n\n- Closes
https://github.com/elastic/kibana/issues/174485\r\n\r\n###
Summary\r\n\r\nThis PR keeps track of column resizing on Surrounding
documents page: if\r\nuser resizes columns and thne loads more
documents, the grid will\r\nrerender accordingly and it will keep custom
column widths.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"a482a7a98fc16a4efad27eac38dd67eafe4b64a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/177003","number":177003,"mergeCommit":{"message":"[Discover]
Support grid column settings on Surrounding Documents page
(#177003)\n\n- Closes
https://github.com/elastic/kibana/issues/174485\r\n\r\n###
Summary\r\n\r\nThis PR keeps track of column resizing on Surrounding
documents page: if\r\nuser resizes columns and thne loads more
documents, the grid will\r\nrerender accordingly and it will keep custom
column widths.\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"a482a7a98fc16a4efad27eac38dd67eafe4b64a6"}}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
…elastic#177003)

- Closes elastic#174485

### Summary

This PR keeps track of column resizing on Surrounding documents page: if
user resizes columns and thne loads more documents, the grid will
rerender accordingly and it will keep custom column widths.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v8.13.0 v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover] In Context view, column widths revert to default when altering view
5 participants