Skip to content

fix(alerts): declare the event types each resource can deliver, reject and stop offering the rest - #30587

Open
manerow wants to merge 1 commit into
mainfrom
fix/alert-supported-event-types
Open

fix(alerts): declare the event types each resource can deliver, reject and stop offering the rest#30587
manerow wants to merge 1 commit into
mainfrom
fix/alert-supported-event-types

fix(alerts): declare the event types each resource can deliver, rejec…

35188bb
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / [open-metadata-ui] SonarCloud Code Analysis succeeded Jul 28, 2026 in 9m 52s

Annotations

Check warning on line 914 in src/components/common/CustomPropertyTable/PropertyValue.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=AZ-pHe5m31RmwQfX7KF5&open=AZ-pHe5m31RmwQfX7KF5&pullRequest=30587

Check warning on line 1767 in src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.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=AZ-pHzym31RmwQfX7KVm&open=AZ-pHzym31RmwQfX7KVm&pullRequest=30587

Check warning on line 59 in src/constants/regex.constants.ts

See this annotation in the file changed.

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

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

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

Check failure on line 118 in src/components/ActivityFeed/ActivityFeedCard/FeedCardBody/FeedCardBodyNew.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=AZ-pHkEm31RmwQfX7KJI&open=AZ-pHkEm31RmwQfX7KJI&pullRequest=30587

Check failure on line 70 in src/components/WorkflowDefinitions/WorkflowBuilder/WorkflowHeader.tsx

See this annotation in the file changed.

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

Unexpected `await` of a non-Promise (non-"Thenable") value.

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

Check warning on line 25 in src/utils/JSONSchemaFormUtils.ts

See this annotation in the file changed.

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

Prefer `String#replaceAll()` over `String#replace()`.

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

Check warning on line 22 in src/constants/Feeds.constants.ts

See this annotation in the file changed.

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

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ-pH0-231RmwQfX7KWd&open=AZ-pH0-231RmwQfX7KWd&pullRequest=30587

Check warning on line 166 in src/components/DataQuality/TestCases/useTestCaseFilters.ts

See this annotation in the file changed.

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

Consider Object.entries() instead of entries() from lodash; check that the behavior is equivalent because the library handles nullish values differently from the native API.

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

Check warning on line 333 in src/utils/WorkflowNodeConfigUtils.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=AZ-pHu8031RmwQfX7KRt&open=AZ-pHu8031RmwQfX7KRt&pullRequest=30587

Check warning on line 1848 in src/utils/CSV/CSVUtilsClassBase.tsx

See this annotation in the file changed.

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

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

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

Check warning on line 45 in src/utils/Export/ExportUtils.ts

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=AZ-pHwFl31RmwQfX7KSj&open=AZ-pHwFl31RmwQfX7KSj&pullRequest=30587

Check failure on line 1341 in src/components/OntologyExplorer/hooks/useOntologyExplorer.ts

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=AZ-pHrvk31RmwQfX7KO5&open=AZ-pHrvk31RmwQfX7KO5&pullRequest=30587

Check failure on line 123 in src/components/Auth/AppAuthenticators/OidcAuthenticator.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=AZ-pHqog31RmwQfX7KNw&open=AZ-pHqog31RmwQfX7KNw&pullRequest=30587

Check warning on line 524 in src/hooks/useGridEditController.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=AZ-pH1en31RmwQfX7KXH&open=AZ-pH1en31RmwQfX7KXH&pullRequest=30587

Check warning on line 784 in src/utils/JSONLogicSearchClassBase.ts

See this annotation in the file changed.

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

'unknown' overrides all other types in this union type.

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

Check warning on line 67 in src/components/Alerts/DestinationFormItem/TeamAndUserSelectItem/TeamAndUserSelectItem.tsx

See this annotation in the file changed.

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

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

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

Check warning on line 44 in src/components/Entity/EntityRightPanel/EntityRightPanel.tsx

See this annotation in the file changed.

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

'viewAllPermission' PropType is defined but prop is never used

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

Check warning on line 43 in src/components/KnowledgeGraph3D/nodeCanvas.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=AZ-pHiVm31RmwQfX7KIH&open=AZ-pHiVm31RmwQfX7KIH&pullRequest=30587

Check warning on line 147 in src/components/ServiceAgents/components/AgentOverflowMenu.component.tsx

See this annotation in the file changed.

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

Move this component definition out of the parent component and pass data as props.

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

Check warning on line 365 in src/components/Settings/Persona/PersonaAIContext/ContextRuleEditor/ContextRuleEditor.component.tsx

See this annotation in the file changed.

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

'onSelectionChange' is deprecated.

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

Check failure on line 301 in src/utils/CronExpressionUtils.ts

See this annotation in the file changed.

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

Prefer `throw error` over `return Promise.reject(error)`.

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

Check failure on line 129 in src/components/common/EntityDescription/EntityAttachmentProvider/EntityAttachmentProvider.tsx

See this annotation in the file changed.

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

Unexpected `await` of a non-Promise (non-"Thenable") value.

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

Check warning on line 21 in src/components/common/TierTag.tsx

See this annotation in the file changed.

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

'size' PropType is defined but prop is never used

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

Check failure on line 2076 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=AZ-pHzkW31RmwQfX7KVZ&open=AZ-pHzkW31RmwQfX7KVZ&pullRequest=30587

Check warning on line 919 in src/pages/GlossaryTermRelationSettings/GlossaryTermRelationSettings.tsx

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=AZ-pH0a331RmwQfX7KV-&open=AZ-pH0a331RmwQfX7KV-&pullRequest=30587