#110754Free PageTreeRepository constructor
Description
PageTreeRepository currently accepts a workspace ID, additional query fields and query restrictions through its constructor, while resolving service dependencies internally.
Refactor the constructor to accept injected services only:
- Obtain the workspace ID from Context’s WorkspaceAspect when querying.
– Remove the additional-fields parameter and retain the default field list. Field extension will be addressed separately through an event.
– Remove the additional query restrictions parameter. Query restrictions will be addressed separately through an event.
– Additional way presentend by Stefan Bürk: Use DTO and a single event to handle additional fields and query restrictions.
– Provide a restriction setter to preserve options.pageTree.excludeDoktypes.
– Preserve independent repository instances and defer field quoting until needed.
– Required services via DI , remove all makeInstance() calls, where applicable.
– Important Changelog entry covering possible migrations on 3rd Party extensions.
Adapt callers and functional tests, including coverage for workspace-aware page-ID collection and restriction handling.
This prepares the repository for the field-list extension discussed in #97259.
The TASK Definition is to be considered WIP for the time beeing, since additional research on extensions using the PageTreeRepository are neccessary.Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[TASK] Free PageTreeRepository constructor Resolves: #110754 Releases: main