Skip to content

[EuiBasicTable] Always use Column Index for Footer key#3559

Merged
pickypg merged 3 commits intoelastic:masterfrom
pickypg:footer/no-field
Jun 4, 2020
Merged

[EuiBasicTable] Always use Column Index for Footer key#3559
pickypg merged 3 commits intoelastic:masterfrom
pickypg:footer/no-field

Conversation

@pickypg
Copy link
Copy Markdown
Member

@pickypg pickypg commented Jun 4, 2020

Summary

This forces all keys to be unique regardless of field name collisions (rare) and computed columns (less rare).

Closes #3558

Checklist

  • [ ] Check against all themes for compatibility in both light and dark modes
  • [ ] Checked in mobile
  • [ ] Checked in IE11 and Firefox
  • [ ] Props have proper autodocs
  • Checked documentation examples
  • Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

This forces all keys to be unique regardless of field name
collisions and computed columns.
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_3559/

Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks @pickypg. Checked it out in the table footers example and it does append the current column count to the footer cell. 👍

Just had a quick change to the changelog and it looks like you'll need to update the snapshots.

pickypg and others added 2 commits June 4, 2020 17:05
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
@pickypg
Copy link
Copy Markdown
Member Author

pickypg commented Jun 4, 2020

@cchaos Good catch (and better phrasing on the changelog).

@pickypg pickypg requested a review from cchaos June 4, 2020 21:10
Copy link
Copy Markdown
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

👍 If CI passes, good to merge!

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_3559/

@pickypg pickypg merged commit 08d94fe into elastic:master Jun 4, 2020
@pickypg pickypg deleted the footer/no-field branch June 4, 2020 21:42
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.

EuiBasicTable Computed Footers have the same key

3 participants