Chore(UI): Improve relation traverse functionality in knowledge graph #27883
Quality Gate passed
Annotations
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer using an optional chain expression instead, as it's more concise and easier to read.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjerhDfG0f886yYLG&open=AZ3yjerhDfG0f886yYLG&pullRequest=27883
Check warning on line 129 in src/components/common/DomainsSection/DomainsSection.tsx
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=AZ3yjeY-DfG0f886yYKu&open=AZ3yjeY-DfG0f886yYKu&pullRequest=27883
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=AZ3yjhCcDfG0f886yYOA&open=AZ3yjhCcDfG0f886yYOA&pullRequest=27883
Check warning on line 266 in src/pages/EditConnectionFormPage/EditConnectionFormPage.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
This assertion is unnecessary since it does not change the type of the expression.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjli2DfG0f886yYT3&open=AZ3yjli2DfG0f886yYT3&pullRequest=27883
Check warning on line 149 in src/pages/Glossary/GlossaryLeftPanel/GlossaryLeftPanel.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
'LeftPanelCard' is deprecated.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjkwXDfG0f886yYS1&open=AZ3yjkwXDfG0f886yYS1&pullRequest=27883
Check failure on line 355 in src/utils/SchedularUtils.tsx
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=AZ3yjnUuDfG0f886yYXJ&open=AZ3yjnUuDfG0f886yYXJ&pullRequest=27883
Check warning on line 490 in src/components/ExploreV1/ExploreV1.component.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjkC5DfG0f886yYR5&open=AZ3yjkC5DfG0f886yYR5&pullRequest=27883
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=AZ3yjhZ4DfG0f886yYOX&open=AZ3yjhZ4DfG0f886yYOX&pullRequest=27883
Check failure on line 593 in src/utils/ExploreUtils.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 30 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjngUDfG0f886yYXe&open=AZ3yjngUDfG0f886yYXe&pullRequest=27883
Check failure on line 328 in src/utils/SchedularUtils.tsx
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=AZ3yjnUuDfG0f886yYXF&open=AZ3yjnUuDfG0f886yYXF&pullRequest=27883
Check warning on line 156 in src/components/common/atoms/asyncTreeSelect/useTreeSelection.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Complete the task associated to this "TODO" comment.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjdXtDfG0f886yYI-&open=AZ3yjdXtDfG0f886yYI-&pullRequest=27883
Check warning on line 1070 in src/utils/QueryBuilderElasticsearchFormatUtils.js
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
The signature '(config: Config): string' of 'extendConfigUtils.DefaultUtils.defaultConjunction' is deprecated.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjmulDfG0f886yYWH&open=AZ3yjmulDfG0f886yYWH&pullRequest=27883
Check failure on line 123 in src/components/Auth/AppAuthenticators/OidcAuthenticator.tsx
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=AZ3yjjGKDfG0f886yYQW&open=AZ3yjjGKDfG0f886yYQW&pullRequest=27883
Check warning on line 262 in src/pages/LearningResourcesPage/LearningResourceForm.component.tsx
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=AZ3yjk_8DfG0f886yYTF&open=AZ3yjk_8DfG0f886yYTF&pullRequest=27883
Check failure on line 826 in src/components/OntologyExplorer/hooks/useOntologyGraph.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 38 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjj2kDfG0f886yYRg&open=AZ3yjj2kDfG0f886yYRg&pullRequest=27883
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=AZ3yjjXoDfG0f886yYQt&open=AZ3yjjXoDfG0f886yYQt&pullRequest=27883
Check failure on line 320 in src/utils/SchedularUtils.tsx
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=AZ3yjnUuDfG0f886yYXD&open=AZ3yjnUuDfG0f886yYXD&pullRequest=27883
Check warning on line 167 in src/components/Certification/Certification.component.tsx
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=AZ3yjkZ1DfG0f886yYSV&open=AZ3yjkZ1DfG0f886yYSV&pullRequest=27883
Check warning on line 196 in src/utils/ContainerDetailUtils.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Unexpected negated condition.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjnEtDfG0f886yYWp&open=AZ3yjnEtDfG0f886yYWp&pullRequest=27883
Check warning on line 241 in src/components/common/NavigationBlocker/NavigationBlocker.tsx
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Prefer `globalThis` over `window`.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjeN2DfG0f886yYKh&open=AZ3yjeN2DfG0f886yYKh&pullRequest=27883
Check warning on line 63 in src/components/common/TagSelectableList/TagSelectableList.component.tsx
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=AZ3yjfHeDfG0f886yYLh&open=AZ3yjfHeDfG0f886yYLh&pullRequest=27883
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Unexpected negated condition.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjgjUDfG0f886yYNM&open=AZ3yjgjUDfG0f886yYNM&pullRequest=27883
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=AZ3yjfpEDfG0f886yYMI&open=AZ3yjfpEDfG0f886yYMI&pullRequest=27883
Check warning on line 412 in src/utils/TaskFormSchemaUtils.ts
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
This assertion is unnecessary since it does not change the type of the expression.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjmZcDfG0f886yYVD&open=AZ3yjmZcDfG0f886yYVD&pullRequest=27883
sonarqubecloud / [open-metadata-ui] SonarCloud Code Analysis
Unexpected negated condition.
See more on https://sonarcloud.io/project/issues?id=open-metadata-ui&issues=AZ3yjfxrDfG0f886yYMQ&open=AZ3yjfxrDfG0f886yYMQ&pullRequest=27883