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

[Discover][ES|QL] Legacy table should not be rendered for ES|QL mode #180286

Closed
jughosta opened this issue Apr 8, 2024 · 7 comments · Fixed by #180370
Closed

[Discover][ES|QL] Legacy table should not be rendered for ES|QL mode #180286

jughosta opened this issue Apr 8, 2024 · 7 comments · Fixed by #180370
Assignees
Labels
Feature:Discover Discover Application Feature:ES|QL ES|QL related features in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:ESQL ES|QL related features in Kibana

Comments

@jughosta
Copy link
Contributor

jughosta commented Apr 8, 2024

Only the data grid has full support for ES|QL mode. The legacy table might be lacking some features (like in-memory sorting) as it was not extended to account for ES|QL.

Even if user has doc_table:legacy Advanced Setting enabled, the legacy table should not be rendered for text based queries.

@jughosta jughosta added Feature:Discover Discover Application impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana labels Apr 8, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@stratoula
Copy link
Contributor

Yes I agree, let's remove it. Can we possibly do it before 8.14 release? Is it a big feature? I am asking mostly due to going on GA on 8.14 cc @davismcphee

@jughosta
Copy link
Contributor Author

jughosta commented Apr 8, 2024

I think we should replace all uiSettings.get(DOC_TABLE_LEGACY) with a new wrapper function. Something like

// in `@kbn/discover-utils` package

export function isLegacyTableEnabled(uiSettings, isTextBased) {
  if (isTextBased) {
     return false;
  }
  
  return uiSettings.get(DOC_TABLE_LEGACY);
}

So we can handle it discover, doc viewer etc in the same way.

@davismcphee
Copy link
Contributor

Yes, this makes sense to me, and the solution proposed by @jughosta sounds like a good one! It seems like a small change to me, although we're trying to wrap up a few other things before 8.14 FF currently. @stratoula should we do this before continuing work on #180249? If so, maybe @jughosta could take this one on.

@stratoula
Copy link
Contributor

@davismcphee I was thinking that maybe it worth prioritizing this instead of the suggestions dropdown.

  • It will def make it for 8.14 while the other most possibly not
  • As we are going on GA, I think is better to remove it now rather later.

So if you are also ok with this, let's go with this first

@davismcphee
Copy link
Contributor

@stratoula Agreed, this makes sense so let's do it! Although I see from the linked PR @jughosta is already on top of it 😄

jughosta added a commit that referenced this issue Apr 10, 2024
- Closes #180286

## Summary

Even if `doc_table:legacy` is enabled this PR makes sure that we render
the new grid for ES|QL mode.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application Feature:ES|QL ES|QL related features in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:ESQL ES|QL related features in Kibana
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants