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

[EuiDataGrid] Revert column width changes #8086

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

mgadewoll
Copy link
Contributor

Summary

This PR reverts changes done in this PR to store column widths after resize. While the change works for uncontrolled EuiDataGrids, it currently does not allow for controlled usages to override saved widths anymore.
This is an issue in Kibana where column widths can be reset.

We decided to revert the change for now and address it separately, as the issue was not specific to the draggable column update but existed before.

QA

  • test that the revert fixes the issue on Kibana (tested with a local package: both manual test and unit tests work again as expected)

@mgadewoll mgadewoll marked this pull request as ready for review October 18, 2024 11:22
@mgadewoll mgadewoll requested a review from a team as a code owner October 18, 2024 11:22
Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

We tried! Thanks for testing this Lene!

@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@mgadewoll mgadewoll merged commit 1aa4bc1 into elastic:main Oct 18, 2024
5 checks passed
cee-chen pushed a commit to elastic/kibana that referenced this pull request Oct 18, 2024
`v97.0.0-backport.0`⏩`v97.2.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.2.0`](https://github.com/elastic/eui/releases/v97.2.0)

- Updated `EuiHeaderLinks` with a new `xxs` gutter size
([#8079](elastic/eui#8079))

**Bug fixes**

- Reverted an `EuiDataGrid` regression from
[#8015](elastic/eui#8015) which prevented
overriding column widths via columns's `initialWidth`s
([#8086](elastic/eui#8086))


## [`v97.1.0`](https://github.com/elastic/eui/releases/v97.1.0)

- Added `columnVisibility.canDragAndDropColumns` on `EuiDataGrid` which
enables reordering columns via draggable header cells
([#8015](elastic/eui#8015))
- Updated `EuiHeader`s in dark mode to have a visible border-bottom
color ([#8070](elastic/eui#8070))
- Added props `minDate` and `maxDate` on `EuiSuperDatePicker` to support
restricting date range selections
([#8071](elastic/eui#8071))
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 18, 2024
`v97.0.0-backport.0`⏩`v97.2.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v97.2.0`](https://github.com/elastic/eui/releases/v97.2.0)

- Updated `EuiHeaderLinks` with a new `xxs` gutter size
([elastic#8079](elastic/eui#8079))

**Bug fixes**

- Reverted an `EuiDataGrid` regression from
[elastic#8015](elastic/eui#8015) which prevented
overriding column widths via columns's `initialWidth`s
([elastic#8086](elastic/eui#8086))

## [`v97.1.0`](https://github.com/elastic/eui/releases/v97.1.0)

- Added `columnVisibility.canDragAndDropColumns` on `EuiDataGrid` which
enables reordering columns via draggable header cells
([elastic#8015](elastic/eui#8015))
- Updated `EuiHeader`s in dark mode to have a visible border-bottom
color ([elastic#8070](elastic/eui#8070))
- Added props `minDate` and `maxDate` on `EuiSuperDatePicker` to support
restricting date range selections
([elastic#8071](elastic/eui#8071))

(cherry picked from commit d7c5608)
@mgadewoll mgadewoll deleted the datagrid/revert-col-width-changes branch October 22, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants