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

[SearchSource] Investigate why sort options is a string that needs to be parsed #89902

Closed
tsullivan opened this issue Feb 1, 2021 · 6 comments
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Feature:Search Querying infrastructure in Kibana impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Data, DataViews) technical debt Improvement of the software architecture and operational architecture

Comments

@tsullivan
Copy link
Member

This is a follow-up issue regarding

The defaultSortOptions object should always be correctly typed. Somewhere before the data reaches this function, it becomes a serialized string that needs to be re-converted into an object with JSON.parse.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@tsullivan
Copy link
Member Author

Same thing is happening in decorate_query.ts for queryStringOptions:

https://github.com/elastic/kibana/blob/7.11/src/plugins/data/common/es_query/es_query/decorate_query.ts#L23

@tsullivan
Copy link
Member Author

The reason could be that defaultSortOptions and queryStringOptions are UI Settings. In the server-side context, UI Settings come back "raw" and serialized.

cc @ppisljar

@ppisljar
Copy link
Member

ppisljar commented Feb 3, 2021

hmm, if that is the case i think we should try to change the server side so it parses the uiSettings the same way we do on the client.

@ppisljar ppisljar added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Feature:Search Querying infrastructure in Kibana technical debt Improvement of the software architecture and operational architecture labels May 10, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels May 13, 2021
@exalate-issue-sync exalate-issue-sync bot added loe:medium Medium Level of Effort and removed loe:small Small Level of Effort labels Jul 28, 2021
@exalate-issue-sync exalate-issue-sync bot added loe:small Small Level of Effort and removed loe:medium Medium Level of Effort labels Apr 19, 2022
@petrklapka petrklapka added Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Data, DataViews) and removed Team:AppServicesSv labels Nov 23, 2022
@elasticmachine
Copy link
Contributor

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

@tsullivan
Copy link
Member Author

Cleaning up old technical debt issues. Let's close this as it doesn't need to be tracked. Let's get to this one if it comes up in any active work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Feature:Search Querying infrastructure in Kibana impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Data, DataViews) technical debt Improvement of the software architecture and operational architecture
Projects
None yet
Development

No branches or pull requests

5 participants