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

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

Merged
merged 3 commits into from
Jun 4, 2020

Conversation

pickypg
Copy link
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

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

Copy link
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
@pickypg
Copy link
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
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

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