Skip to content

Performance: Add create-and-publish and update-and-publish endpoints - #21284

Closed
AndyButland wants to merge 8 commits into
v17/devfrom
v17/improvement/save-and-publish
Closed

AndyButland wants to merge 8 commits into
v17/devfrom
v17/improvement/save-and-publish

Merge branch 'main' into v17/improvement/save-and-publish

e8f62cc
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (main) succeeded Mar 27, 2026 in 36s

CodeScene PR Check

Quality Gate Passed

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

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

✅ Improving Code Health:

  • Overall Code Complexity ContentPublishingService.cs
  • Primitive Obsession ContentPublishingService.cs

Annotations

Check notice on line 1 in src/Umbraco.Core/Services/ContentPublishingService.cs

See this annotation in the file changed.

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

✅ Getting better: Overall Code Complexity

The mean cyclomatic complexity decreases from 6.40 to 5.82, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.

Check notice on line 1 in src/Umbraco.Core/Services/ContentPublishingService.cs

See this annotation in the file changed.

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

✅ Getting better: Primitive Obsession

The ratio of primitive types in function arguments decreases from 40.91% to 40.38%, threshold = 30.0%. The functions in this file have too many primitive types (e.g. int, double, float) in their function argument lists. Using many primitive types lead to the code smell Primitive Obsession. Avoid adding more primitive arguments.