Skip to content

[Task] Add getByIdentifier() to the group config resolver contract - #170

Merged
mcop1 merged 1 commit into
2026.xfrom
task/groupconfig-get-by-identifier
Nov 24, 2026
Merged

mcop1 merged 1 commit into
2026.xfrom
task/groupconfig-get-by-identifier

Conversation

@mcop1

@mcop1 mcop1 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Changes in this pull request

Related: pimcore/pimcore#19751

pimcore/pimcore#19751 (merged into 2026.x, Pimcore 2026.4) adds the public static Pimcore\Model\DataObject\Classificationstore\GroupConfig::getByIdentifier(). The contract test requires every public static method of GroupConfig in the resolver contract, so GroupConfigResolverTest::testStaticPublicNonInternalMethodsExist fails on 2026.x in every CI leg that installs pimcore/pimcore 2026.x-dev (e.g. push run 45423368396).

Only 2026.x needs this: core 2026.3 has no getByIdentifier(), so the failures on the experimental 2026.x-dev as 12.99.9 legs of 2026.3 PRs (e.g. #169) are expected there.

Additional info

Regression test: the existing contract test. Locally (PHP 8.4, highest dependencies, core 2026.x-dev @ 97af02bf9c): GroupConfigResolverTest fails with "Failed asserting that an array contains 'getByIdentifier'" before, full Unit suite (122 tests) OK and PHPStan clean after.

🤖 Generated with Claude Code

pimcore/pimcore#19751 added the public static
GroupConfig::getByIdentifier() to core 2026.x, so the contract test
GroupConfigResolverTest fails on every leg that installs 2026.x-dev.

Add it to GroupConfigResolverContract and the @internal
GroupConfigResolverInterface. Not added to the public
GroupConfigResolverContractInterface (BC), same as #166.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mcop1 mcop1 added this to the 2026.4.0 milestone Nov 24, 2026
@mcop1 mcop1 added the Task label Nov 24, 2026
@mcop1 mcop1 self-assigned this Nov 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

@mcop1
mcop1 marked this pull request as ready for review November 24, 2026 20:13
Copilot AI lite review requested due to automatic review settings November 24, 2026 20:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified for the resolver method additions, backward-compatibility handling, and corresponding upgrade-note documentation.

No open issues 🎉

What changed in this PR

Adds Pimcore 2026.4's GroupConfig::getByIdentifier() to the resolver contract and internal resolver interface while preserving backward compatibility for the public contract interface.

Changes:

  • Added the typed forwarding method to GroupConfigResolverContract.
  • Exposed the method through GroupConfigResolverInterface.
  • Documented the addition and intentional public-interface omission in the 2026.4 upgrade notes.
File Description
src/​Models/​DataObject/​ClassificationStore/​GroupConfigResolverInterface.php Exposes getByIdentifier() through the internal group configuration resolver interface.
src/​Contract/​Models/​DataObject/​ClassificationStore/​GroupConfigResolverContract.php Adds a typed delegation to Pimcore's GroupConfig::getByIdentifier() implementation.
doc/​02_Upgrade_Notes/​README.md Documents the new resolver method and its intentional omission from the public contract interface.

Review effort: Lite

@mcop1
mcop1 merged commit c809eb9 into 2026.x Nov 24, 2026
27 checks passed
@mcop1
mcop1 deleted the task/groupconfig-get-by-identifier branch November 24, 2026 20:16
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants