-
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
[DataTable] Add rowHeightsOptions to table #114637
[DataTable] Add rowHeightsOptions to table #114637
Conversation
Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains an mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts
Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains a mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts
…onflict in availability_reporting.test.tsx
…pgrade-38.2.0 Merging in the latest code from the Master branch
…ndle an issue found with a functional test during the original upgrade
… addition in EUI v. 39.0.0
…pgrade-38.2.0 Merging in the latest code from the Master branch
Removing TODO comments from src/dev/license_checker/config.ts as they are no longer needed. Co-authored-by: Constance <[email protected]>
@elasticmachine merge upstream |
merge conflict between base and head |
@elasticmachine merge upstream |
Yes sounds fine for now, can you push it in order to test how it works ? |
Sorry found the same problem when clicking on refresh button in kibana. It can take more time. |
…g data or setting
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@@ -129,6 +129,7 @@ export const TableVisBasic = memo( | |||
} | |||
// update counter to remount grid from scratch | |||
setDataGridUpdateCounter(dataGridUpdateCounter + 1); |
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 it should be fixed like this instead, not sure whether the linting thing will work in all cases:
setDataGridUpdateCounter((i) => i + 1);
With the change mentioned above (#114637 (comment)), I think this workaround is viable. There is a noticeable flicker, but IMHO that's OK as it just happens as long as the setting is enabled (which shouldn't be the common case): I added a mention of this new setting to the breaking change release note to make sure people relying on this setting at the moment know how to migrate: #111339 One thing that doesn't work right yet - if the client side sorting is used, it breaks in weird ways. I guess we need to add the sorting settings to the dependency list of the update counter hook: |
@VladLasitsa the unit test looks like it’s caused by the changes but I think the rest is caused by some CI problem |
Good catch @stratoula , I only tested text with the resize. Let’s add resize options and pagination as well |
Added |
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.
LGTM, I tested it locally and I think that it works as expected. I think that it is fine for now until the bug is fixed in EUI side.
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/jobs/categorization_field_examples·ts.apis Machine Learning jobs Categorization example endpoint - partially valid, more than 75% are nullStandard Out
Stack Trace
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
To update your PR or re-run it, just comment with: |
* Upgraded the version of EUI to 38.2.0 from 38.0.1 * Updated the i18n mappings required for EUI v.38.2.0 * Update i18n snapshots and resolve linting error * Removed html_id_generator mocks. Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains an mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts * Resolve linting error in i18n mapping file * Removed html_id_generator mocks. Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains a mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts * Update plugin snapshots * Resolve merge conflict in license_checker config.ts file * Upgrade EUI to version 39.0.0 from the original target (38.2.0) to handle an issue found with a functional test during the original upgrade * Updated the i18n mapping for EUI v.39.0.0 * Update various snapshots to account for the an i18n translation token addition in EUI v. 39.0.0 * Updated test cases marked as obsolete by CI * Update src/dev/license_checker/config.ts Removing TODO comments from src/dev/license_checker/config.ts as they are no longer needed. Co-authored-by: Constance <[email protected]> * Add option auto fit row to content * Fix tests * Fix tests * Add temp fix for correct rendering grid with auto-height when changing data or setting * Fix lint * Fix lint and tests * Adds new dependency for temp fix Co-authored-by: Brianna Hall <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Bree Hall <[email protected]> Co-authored-by: Constance <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* Upgraded the version of EUI to 38.2.0 from 38.0.1 * Updated the i18n mappings required for EUI v.38.2.0 * Update i18n snapshots and resolve linting error * Removed html_id_generator mocks. Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains an mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts * Resolve linting error in i18n mapping file * Removed html_id_generator mocks. Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains a mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts * Update plugin snapshots * Resolve merge conflict in license_checker config.ts file * Upgrade EUI to version 39.0.0 from the original target (38.2.0) to handle an issue found with a functional test during the original upgrade * Updated the i18n mapping for EUI v.39.0.0 * Update various snapshots to account for the an i18n translation token addition in EUI v. 39.0.0 * Updated test cases marked as obsolete by CI * Update src/dev/license_checker/config.ts Removing TODO comments from src/dev/license_checker/config.ts as they are no longer needed. Co-authored-by: Constance <[email protected]> * Add option auto fit row to content * Fix tests * Fix tests * Add temp fix for correct rendering grid with auto-height when changing data or setting * Fix lint * Fix lint and tests * Adds new dependency for temp fix Co-authored-by: Brianna Hall <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Bree Hall <[email protected]> Co-authored-by: Constance <[email protected]> Co-authored-by: Uladzislau Lasitsa <[email protected]> Co-authored-by: Brianna Hall <[email protected]> Co-authored-by: Bree Hall <[email protected]> Co-authored-by: Constance <[email protected]>
Summary
Closes #109382
Closes #98257
Closes #81210
Adds a new option to the table Options tab to auto-fit the content to the row.

This solves the problem of rendering data that do not fit in one row or the rendering of images.
