Skip to content

Replaced entity delete modal with hard delete modal - #29851

Merged
anuj-kumary merged 21 commits into
mainfrom
delete-modal
Jul 10, 2026
Merged

anuj-kumary merged 21 commits into
mainfrom
delete-modal

Added unit test

715c4dd
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / [open-metadata-ui] SonarCloud Code Analysis succeeded Jul 10, 2026 in 6m 29s

Annotations

Check failure on line 419 in src/utils/TestConnectionModalUtils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8i9vJlJemBpWud3l&open=AZ9E8i9vJlJemBpWud3l&pullRequest=29851

Check failure on line 273 in src/pages/McpChatPage/McpChatPage.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8lAIJlJemBpWud5B&open=AZ9E8lAIJlJemBpWud5B&pullRequest=29851

Check warning on line 811 in src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8bZsJlJemBpWudwx&open=AZ9E8bZsJlJemBpWudwx&pullRequest=29851

Check warning on line 123 in src/components/Alerts/DestinationFormItemV2/TeamAndUserSelectItemV2/TeamAndUserSelectItemV2.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8cQNJlJemBpWudxU&open=AZ9E8cQNJlJemBpWudxU&pullRequest=29851

Check warning on line 141 in src/utils/ColorUtils.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8fQIJlJemBpWudzr&open=AZ9E8fQIJlJemBpWudzr&pullRequest=29851

Check warning on line 189 in src/pages/IncidentManager/IncidentManagerDetailPage/IncidentManagerDetailPage.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

'link.url' may use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8lFlJlJemBpWud5C&open=AZ9E8lFlJlJemBpWud5C&pullRequest=29851

Check warning on line 41 in src/components/common/EntityImport/CsvCellPreview/CsvCellPreview.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

`AVATAR_COLUMNS` should be a `Set`, and use `AVATAR_COLUMNS.has()` to check existence or non-existence.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8UTsJlJemBpWudrO&open=AZ9E8UTsJlJemBpWudrO&pullRequest=29851

Check failure on line 2271 in src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this code to not nest functions more than 4 levels deep.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8laUJlJemBpWud5Z&open=AZ9E8laUJlJemBpWud5Z&pullRequest=29851

Check warning on line 55 in src/utils/BlockEditorUtils.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8hWIJlJemBpWud1t&open=AZ9E8hWIJlJemBpWud1t&pullRequest=29851

Check warning on line 182 in src/components/KnowledgeGraph3D/KnowledgeGraph3D.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Refactor this code to not use nested template literals.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8WOIJlJemBpWudsz&open=AZ9E8WOIJlJemBpWudsz&pullRequest=29851

Check warning on line 121 in src/constants/Schedular.constants.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

`String.raw` should be used to avoid escaping `\`.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8mmsJlJemBpWud6U&open=AZ9E8mmsJlJemBpWud6U&pullRequest=29851

Check warning on line 165 in src/components/DataQuality/AddDataQualityTest/components/EditTestCaseModalV1.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Visible, non-interactive elements with click handlers must have at least one keyboard listener.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8SS-JlJemBpWudpe&open=AZ9E8SS-JlJemBpWudpe&pullRequest=29851

Check warning on line 285 in src/components/Entity/EntityLineage/CustomNode.utils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8bL-JlJemBpWudwk&open=AZ9E8bL-JlJemBpWudwk&pullRequest=29851

Check warning on line 417 in src/components/OntologyExplorer/hooks/useOntologyGraph.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

The empty object is useless.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8dwJJlJemBpWudyk&open=AZ9E8dwJJlJemBpWudyk&pullRequest=29851

Check warning on line 140 in src/utils/DataInsightPureUtils.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Default parameters should be last.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8g1sJlJemBpWud1a&open=AZ9E8g1sJlJemBpWud1a&pullRequest=29851

Check warning on line 303 in src/components/common/ServiceDocPanel/ServiceDocPanel.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Use the "RegExp.exec()" method instead.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8VvwJlJemBpWudsX&open=AZ9E8VvwJlJemBpWudsX&pullRequest=29851

Check warning on line 65 in src/components/KnowledgeCenter/KnowledgeCard/KnowledgeCard.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

'onUpdateVote' PropType is defined but prop is never used

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8a1eJlJemBpWudwM&open=AZ9E8a1eJlJemBpWudwM&pullRequest=29851

Check warning on line 151 in src/pages/SearchIndexMappingsPage/SearchIndexMappingsPage.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8l6QJlJemBpWud5w&open=AZ9E8l6QJlJemBpWud5w&pullRequest=29851

Check warning on line 112 in src/components/Entity/EntityLineage/CustomNode.utils.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

onMouseOut must be accompanied by onBlur for accessibility.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8bL-JlJemBpWudwi&open=AZ9E8bL-JlJemBpWudwi&pullRequest=29851

Check warning on line 243 in src/components/Settings/Users/UsersProfile/UserPermissions/UserPermissions.component.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Do not use Array index in keys

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8ZJxJlJemBpWudvB&open=AZ9E8ZJxJlJemBpWudvB&pullRequest=29851

Check warning on line 97 in src/utils/QueryBuilderPureUtils.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8i-bJlJemBpWud3n&open=AZ9E8i-bJlJemBpWud3n&pullRequest=29851

Check warning on line 73 in src/components/Glossary/GlossaryTerms/tabs/GlossaryTermReferences.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8ZwIJlJemBpWudvg&open=AZ9E8ZwIJlJemBpWudvg&pullRequest=29851

Check warning on line 43 in src/components/common/Form/JSONSchema/JSONSchemaTemplate/WorkflowArrayFieldTemplate.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Use Array.isArray() instead of isArray() from lodash.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8UHfJlJemBpWudrC&open=AZ9E8UHfJlJemBpWudrC&pullRequest=29851

Check warning on line 45 in src/components/OntologyExplorer/utils/graphSearchHighlight.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Consider String.prototype.includes() instead of includes() from lodash; check that the behavior is equivalent because the library also accepts arrays, objects, and nullish values.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8djtJlJemBpWudyU&open=AZ9E8djtJlJemBpWudyU&pullRequest=29851

Check warning on line 84 in src/utils/ContainerDetailPureUtils.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis

Default parameters should be last.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ9E8gxjJlJemBpWud1V&open=AZ9E8gxjJlJemBpWud1V&pullRequest=29851