Project

General

Profile

Actions

Task #93901

closed

Integrate BackendRestrictionContainer / DeletedRestrictionContainer

Added by Henrik Elsner over 3 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-04-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

Updated by Henrik Elsner over 3 years ago

  • Tracker changed from Feature to Task
  • Description updated (diff)
  • TYPO3 Version set to 10
Actions #2

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

Actions #3

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

Actions #4

Updated by Anja Leichsenring over 3 years ago

  • Status changed from Under Review to Rejected

see patch comment.

Actions

Also available in: Atom PDF