You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a time-boxed effort to explore removing Data Grid from the EUI project. The intent is to explore some potential options and scope the effort. The intent is to give us all of the information we'll need to make a decision about where, how, and if we remove Data Grid from this library.
For additional context, Data Grid is our largest component and seems to be well outside of the scope of what a design system ought to provide.
Goals for removing Data Grid from EUI:
Reduce the overall surface area of EUI from a support and maintenance perspective
Focus EUI on being a design system -- providing the core building blocks and styles used to build products at Elastic
Reduce the overall bundle size of EUI
Some considerations:
A dedicated Kibana package seems to make the most sense to me, as they are our primary users.
If we were to move it to a Kibana package, what would the deprecation path look like? For folks external to the organization, what are the recommended steps to take to replace their usage? Do we put together a guide that illustrates how they would inline the component?
It's probably worth documenting in this issue all of the usages within Elastic of Data Grid, and gauging its level of use externally as well.
What should we do in this Spike:
Answering as many questions as we can around moving Data Grid out of EUI
Identify and list usages of Data Grid
Think through how we approach the open-source community with a deprecation plan.
A dedicated Kibana package seems to make the most sense to me, as they are our primary users.
There's a non-zero amount of open source users who currently use data grid as well who would be unhappy/probably be forced to pin EUI if they still wanted to continue using the component. We should probably try and find a compromise here:
Moving data grid to Kibana makes the most sense in terms of the team(s) maintaining it
Moving data grid to another repo (e.g. elastic/datagrid) would be the friendliest to our open source users, but comes at a higher cost to Elastic in terms of maintenance and developer overhead
The best compromise may be marking EuiDataGrid as deprecated, copying it over to Kibana now and handing over development to other team(s), but wait to fully remove it from EUI until a fairly stable release (e.g., wait until the Emotion migration is fully over, or before another major React version, etc.)
Edit: For our open source users, we should also consider researching/recommending another data grid library with equivalent features that we suggest current non-Kibana EuiDataGrid consumers move to.
I have a strong preference for moving it into a Kibana package. We can chat with @i-a-n about their usage in the support portal to see what would work for them.
The best compromise may be marking EuiDataGrid as deprecated, copying it over to Kibana now and handing over development to other team(s), but wait to fully remove it from EUI until a fairly stable release (e.g., wait until the Emotion migration is fully over, or before another major React version, etc.)
I had envisioned deprecating this component and potentially offering instructions for folks outlining how they could lift-and-shift this code into an inline custom EUI component or something.
they could lift-and-shift this code into an inline custom EUI component or something.
To be honest I'd really like to discourage that if we possibly can (for EuiDataGrid specifically) - unlike other simpler components which can receive updates relatively seamlessly when underlying EUI building blocks are updated, EuiDataGrid is seriously a huge beast which will be almost impossible for consumers to sanely maintain and keep EUI updated simultaneously.
I really think we'll see much less pain/angst with simply recommending open source users either pin EUI or switch to another open source library with similar features, active maintenance, and a dedicated team.
just for some background on how we use DataGrid for support engineers/customer: it's a vital part of a couple of big-name features we've rolled out recently and are planning to roll out by end of year. I'd be happy to share screenshots and more details in a private channel!
That's very valid, @i-a-n! @JasonStoltz, I'd rather not spike out moving the plugin to Kibana if there's a significant blocker (support portal) that makes it impossible to do so. Thoughts?
Is there any value in making this a separate, independent package outside of the core EUI library? Like @elastic/eui-data-grid? My assumption is that this just causes us more maintenance headaches and doesn't solve our core objective.
The Kibana Shared UX team and @petrklapka envision eventually exposing their shared components for use outside of Kibana, which would be a tremendous way to share some of these things across internal products, but they are not there yet. Otherwise, it might have made a good fit for Shared UX.
Is there any value in making this a separate, independent package outside of the core EUI library? Like @elastic/eui-data-grid? My assumption is that this just causes us more maintenance headaches and doesn't solve our core objective.
There is value, and it would likely just be @elastic/datagrid, similar to the way the charts team is just @elastic/elastic-charts (and not EUI charts). We would likely also rename it to ElasticDataGrid as well. Both those actions would fairly clearly separate it from EUI, although obviously a new primary owner would need to be found (or it would need to be clear in the README that ownership/development belongs to the teams using the component).
Activity
cee-chen commentedon Sep 22, 2023
There's a non-zero amount of open source users who currently use data grid as well who would be unhappy/probably be forced to pin EUI if they still wanted to continue using the component. We should probably try and find a compromise here:
elastic/datagrid) would be the friendliest to our open source users, but comes at a higher cost to Elastic in terms of maintenance and developer overheadEdit: For our open source users, we should also consider researching/recommending another data grid library with equivalent features that we suggest current non-Kibana EuiDataGrid consumers move to.
cee-chen commentedon Sep 22, 2023
Ack, another possible reason for a repo separate from Kibana - it looks like dream machine uses EuiDataGrid right now 😬
JasonStoltz commentedon Sep 25, 2023
I have a strong preference for moving it into a Kibana package. We can chat with @i-a-n about their usage in the support portal to see what would work for them.
JasonStoltz commentedon Sep 25, 2023
I had envisioned deprecating this component and potentially offering instructions for folks outlining how they could lift-and-shift this code into an inline custom EUI component or something.
cee-chen commentedon Sep 25, 2023
To be honest I'd really like to discourage that if we possibly can (for EuiDataGrid specifically) - unlike other simpler components which can receive updates relatively seamlessly when underlying EUI building blocks are updated, EuiDataGrid is seriously a huge beast which will be almost impossible for consumers to sanely maintain and keep EUI updated simultaneously.
I really think we'll see much less pain/angst with simply recommending open source users either pin EUI or switch to another open source library with similar features, active maintenance, and a dedicated team.
i-a-n commentedon Sep 26, 2023
just for some background on how we use DataGrid for support engineers/customer: it's a vital part of a couple of big-name features we've rolled out recently and are planning to roll out by end of year. I'd be happy to share screenshots and more details in a private channel!
cee-chen commentedon Sep 27, 2023
That's very valid, @i-a-n! @JasonStoltz, I'd rather not spike out moving the plugin to Kibana if there's a significant blocker (support portal) that makes it impossible to do so. Thoughts?
JasonStoltz commentedon Sep 28, 2023
Is there any path foward here?
Is there any value in making this a separate, independent package outside of the core EUI library? Like
@elastic/eui-data-grid? My assumption is that this just causes us more maintenance headaches and doesn't solve our core objective.The Kibana Shared UX team and @petrklapka envision eventually exposing their shared components for use outside of Kibana, which would be a tremendous way to share some of these things across internal products, but they are not there yet. Otherwise, it might have made a good fit for Shared UX.
cee-chen commentedon Sep 29, 2023
There is value, and it would likely just be
@elastic/datagrid, similar to the way the charts team is just@elastic/elastic-charts(and not EUI charts). We would likely also rename it toElasticDataGridas well. Both those actions would fairly clearly separate it from EUI, although obviously a new primary owner would need to be found (or it would need to be clear in the README that ownership/development belongs to the teams using the component).