Task #93901
closedIntegrate BackendRestrictionContainer / DeletedRestrictionContainer
0%
Description
Currently in v10 there are the Default- and the FrontendRestrictionContainer.
I'm proposing to introduce the 'BackendRestrictionContainer' or 'DeletedRestrictionContainer' which serves the same purpose as the FrontendRestrictionContainer within their Context.
The FE Container does regulate all the start- and endtime fields, while this is often not wanted within the BE.
E.g. for APIs or similar all of the data is needed except the deleted.
So the only restriction of this container would be the DeletedRestriction.
This might seem obsolete as it is very small in its size, but would be helpful as one would not have to create that own container in each project with an API or similar functionalities, also the block of
$this->queryBuilder->getRestrictions()->removeAll();
could be spared.
Especially now with the dependency injection the queryBuilder instance could be created directly with the new container to be already fully setup as needed when using it in the single classes
DeletedRestrictionContainer would probably be the better name as the usage would not be limited.
Updated by Henrik Elsner over 3 years ago
- Tracker changed from Feature to Task
- Description updated (diff)
- TYPO3 Version set to 10
Updated by Gerrit Code Review over 3 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68760
Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68760
Updated by Anja Leichsenring over 3 years ago
- Status changed from Under Review to Rejected
see patch comment.