Skip to content

[Data Views] Unify delete data view experience #204174

@kertal

Description

Currently we have 2 different modal UI elements when users want to delete data views

When users delete data views in the overview list

Image

When users open a data view to delete it

Image

It seems those modals are sharing the same code base

const warning =
(indexPattern.namespaces && indexPattern.namespaces.length > 1) ||
indexPattern.namespaces.includes('*') ? (
<FormattedMessage
id="indexPatternManagement.editDataView.deleteWarningWithNamespaces"
defaultMessage="Delete the data view {dataViewName} from every space it is shared in. You can't undo this action."
values={{
dataViewName: <EuiCode>{indexPattern.getName()}</EuiCode>,
}}
/>
) : (
<FormattedMessage
id="indexPatternManagement.editDataView.deleteWarning"
defaultMessage="The data view {dataViewName} will be deleted. You can't undo this action."
values={{
dataViewName: <EuiCode>{indexPattern.getName()}</EuiCode>,
}}
/>
);

But one modal is missing the info about namespaces. This information should be added to the modal displayed when users open a data view and want to delete it in this view

Metadata

Labels

Feature:Data ViewsData Views code and UI - index patterns before 8.0Team:DataDiscoveryDiscover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.enhancementNew value added to drive a business resultimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.papercutSmall "burr" in the product that we should fix.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions