Skip to content

FIx: wrong User and user_group endpoints usage in the frontend and lo…

3e7cff0
Select commit
Loading
Failed to load commit list.
Merged

Its punchline time PR #104

FIx: wrong User and user_group endpoints usage in the frontend and lo…
3e7cff0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 23, 2026 in 1m 11s

Quality Gate failed

Annotations

Check warning on line 706 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0bAGMf9TAn_2XzyPnd&open=AZ0bAGMf9TAn_2XzyPnd&pullRequest=104

Check failure on line 39 in api/src/tasks/tracking_consumer.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0bAGQ99TAn_2XzyPnh&open=AZ0bAGQ99TAn_2XzyPnh&pullRequest=104

Check failure on line 23 in web/src/components/admin/tenant-org-manager/BulkImportModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / 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=PEI-SecureLearning_core&issues=AZ0bM7oo_Zt1bhYNImmb&open=AZ0bM7oo_Zt1bhYNImmb&pullRequest=104

Check warning on line 677 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0bAGMf9TAn_2XzyPnb&open=AZ0bAGMf9TAn_2XzyPnb&pullRequest=104

Check warning on line 693 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0bAGMf9TAn_2XzyPnc&open=AZ0bAGMf9TAn_2XzyPnc&pullRequest=104

Check warning on line 114 in web/src/components/content-manager/modules/module-creation/utils.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not use nested template literals.

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0bAGE39TAn_2XzyPnZ&open=AZ0bAGE39TAn_2XzyPnZ&pullRequest=104

Check warning on line 17 in api/src/tasks/tracking_consumer.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "properties".

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0bAGQ99TAn_2XzyPng&open=AZ0bAGQ99TAn_2XzyPng&pullRequest=104

Check failure on line 643 in web/src/components/courses/ModuleLearner.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=PEI-SecureLearning_core&issues=AZ0bAGMf9TAn_2XzyPna&open=AZ0bAGMf9TAn_2XzyPna&pullRequest=104

Check warning on line 88 in web/src/components/statistics/RiskLevel.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / 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=PEI-SecureLearning_core&issues=AZ0bAGMx9TAn_2XzyPne&open=AZ0bAGMx9TAn_2XzyPne&pullRequest=104

Check warning on line 60 in web/src/components/statistics/AssignedTraining.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / 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=PEI-SecureLearning_core&issues=AZ0bAGNF9TAn_2XzyPnf&open=AZ0bAGNF9TAn_2XzyPnf&pullRequest=104