Skip to content

Languages: Page through to load all configured languages - #22765

Merged
iOvergaard merged 3 commits into
v17/devfrom
v17/bugfix/ensure-all-languages-loaded
Jun 15, 2026
Merged

Languages: Page through to load all configured languages#22765
iOvergaard merged 3 commits into
v17/devfrom
v17/bugfix/ensure-all-languages-loaded

Addressed further code review feedback.

77bc510
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (main) failed May 8, 2026 in 41s

CodeScene PR Check

Quality Gate Failed

Gates Failed
Enforce advisory code health rules (1 file with Complex Method)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
fetch-all-pages.function.ts 1 advisory rule 9.69 Suppress

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Details

🚩 Declining Code Health (highest to lowest):

  • Complex Method fetch-all-pages.function.ts: fetchAllPages

Annotations

Check warning on line 59 in src/Umbraco.Web.UI.Client/src/packages/core/utils/pagination/offset/fetch-all-pages.function.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ New issue: Complex Method

fetchAllPages has a cyclomatic complexity of 9, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.