[data views] remove toast display from data views service #149870
Labels
enhancement
New value added to drive a business result
Feature:Data Views
Data Views code and UI - index patterns before 8.0
Icebox
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
We'd like to remove error toasts from the data views service as the consuming APIs should be deciding the correct way to handle the errors. We should deprecate the current data views service methods that potentially display toasts and replace them with methods that pass errors. Its annoying to make mostly meaningless name changes to methods so we should consider tradeoffs.
a) Rename all toast displaying data view service methods - append 'Deprecated' to the names
b) Expose new methods with that throw errors instead of displaying them. Mark all
Deprecated
named methods as deprecated.c) Provide wrapper that allows usage of new methods but toasts are being displayed by consumers. This is a way to address the technical debt and put off other UX changes.
The text was updated successfully, but these errors were encountered: