Skip to content

Add missing DocumentElementType Renderlet#1005

Open
blankse wants to merge 4 commits into
pimcore:2026.1from
blankse:renderlet
Open

Add missing DocumentElementType Renderlet#1005
blankse wants to merge 4 commits into
pimcore:2026.1from
blankse:renderlet

Conversation

@blankse

@blankse blankse commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Adds GraphQL support for the Renderlet document editable, which was previously missing from the document element types.

Introduces a new RenderletType exposing the editable's _editableType, _editableName, id, type, subtype and the referenced relation (resolved as an anytarget element), plus the corresponding Renderlet query field config generator and its service registration.

@blankse blankse marked this pull request as draft November 18, 2025 13:27
@blankse blankse changed the title Add missing DocumentElementrType Renderlet Add missing DocumentElementType Renderlet Nov 18, 2025
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
21 New Major Issues (required ≤ 0)
3 New Bugs (required ≤ 0)
1 New Critical Issues (required ≤ 0)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@blankse blankse marked this pull request as ready for review November 18, 2025 13:54
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
21 New Major Issues (required ≤ 0)
1 New Critical Issues (required ≤ 0)
B Reliability Rating on New Code (required ≥ A)
3 New Bugs (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Adds a RenderletType GraphQL type and its query field config generator,
modeled on the existing RelationsType, exposing the editable's
_editableType/_editableName/id/type/subtype and its single relation
target. Registers the generator service and baselines the new static()
usage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@blankse blankse changed the base branch from 1.9 to 2026.1 June 9, 2026 12:58
blankse and others added 3 commits June 9, 2026 12:59
Extract a resolveRenderlet() helper for the simple editable fields so the
repeated instanceof checks no longer live inside getInstance(), reducing its
cognitive complexity below the threshold. Drop the unused resolver parameters
from those fields and wrap the relation resolver signature to stay within the
line-length limit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants