76663[FEATURE] Introduce PSR-14 event to define whether files are selectable
Commit message
Review
-
Code review CR +2 Done
- Oli Bartsch +2
- Andreas Kienast +1
- Benni Mack +1
-
Verified V +2 Done
- Oli Bartsch +2
- Andreas Kienast +1
- Benni Mack +1
- core-ci +1 CI
Issues 1
Files 4
- typo3/sysext/backend/Classes/ElementBrowser/Event/IsFileSelectableEvent.php6new+53 −0
- typo3/sysext/backend/Classes/ElementBrowser/FileBrowser.php2+26 −2
- typo3/sysext/backend/Tests/Unit/ElementBrowser/Event/IsFileSelectableEventTest.phpnew+51 −0
- typo3/sysext/core/Documentation/Changelog/12.1/Feature-99118-PSR-14EventToDefineWhetherFilesAreSelectable.rst2new+68 −0
Review log 3139
Show 1114 earlier messages
-
Stefan Froemken uploaded patch set 1 11/17/22, 12:11
-
core-ci voted on patch set 1 V +1 11/17/22, 12:19 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/33867
-
Chris Müller commented on patch set 1 CR -1 11/17/22, 15:56
Please move the feature rst into the 12.1 folder. -
Chris Müller uploaded patch set 2 11/17/22, 17:00
-
Christian Kuhn commented on patch set 2 11/17/22, 17:03
FileBrowser.php:77private readonly EventDispatcher $eventDispatcher -
core-ci voted on patch set 2 V +1 11/17/22, 17:08 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/33881
-
Christian Kuhn commented on patch set 2 11/17/22, 18:55
FileBrowser.php:77Replyforget this. this is not cool in inject* methods. -
Christian Kuhn uploaded patch set 3 11/17/22, 18:59
-
Stefan Bürk voted on patch set 3 V +1 CR +1 11/17/22, 19:02
-
Christian Kuhn voted on patch set 3 V +1 CR +1 11/17/22, 19:02
-
Anja Leichsenring voted on patch set 3 V +1 CR +1 11/17/22, 19:03
-
core-ci voted on patch set 3 V +1 11/17/22, 19:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/33889
-
Benni Mack voted on patch set 3 CR -2 11/17/22, 19:12
-
Benni Mack voted on patch set 3 CR 0 11/17/22, 19:16
-
Stefan Bürk voted on patch set 3 V 0 CR 0 11/17/22, 20:26
-
Christian Kuhn commented on patch set 3 V 0 CR 0 11/17/22, 20:26
still need to figure out naming things. -
Benni Mack commented on patch set 3 CR -1 11/18/22, 08:16
will work on this -
Oli Bartsch uploaded patch set 4
CR +1V +112/01/22, 14:46 -
core-ci voted on patch set 4 V +1 12/01/22, 14:54 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34502
-
Andreas Kienast commented on patch set 4 CR -1 12/01/22, 15:13
IsFileSelectableEvent.php:55typo: selectionFeature-99118-PSR-14EventToDefineWhetherFilesAreSelectable.rst:25typo: selection -
Oli Bartsch uploaded patch set 5
CR -1V +112/01/22, 15:15 -
Oli Bartsch commented on patch set 5 12/01/22, 15:15
IsFileSelectableEvent.php:55ReplyDoneFeature-99118-PSR-14EventToDefineWhetherFilesAreSelectable.rst:25ReplyDone -
Andreas Kienast rebased onto patch set 6 12/01/22, 15:17
-
Andreas Kienast commented on patch set 6 12/01/22, 15:22
IsFileSelectableEvent.php:31I wonder if we really need `$imageDimensions` here. The same data can be fetched via `$file->getProperty('width')` and `$file->getProperty('height')`. Also, this array is always empty for e.g. text files. -
core-ci voted on patch set 6 V +1 12/01/22, 15:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34505
-
core-ci voted on patch set 5 V +1 12/01/22, 15:27 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34504
-
Oli Bartsch uploaded patch set 7
V +112/01/22, 15:35 -
Oli Bartsch commented on patch set 7 12/01/22, 15:37
IsFileSelectableEvent.php:31ReplyAs discussed, we keep the method in the event for backwards compatibility. The values however are now fetched directly from the $file and the constructor argument is removed. -
core-ci voted on patch set 7 V +1 12/01/22, 15:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34509
-
Andreas Kienast voted on patch set 7 V +1 CR +1 12/01/22, 16:04
-
Andreas Wolf commented on patch set 7 CR +1 12/01/22, 16:06
Code looks good so far, I'm just wondering if we should leave the image dimensions method as is if we agree that it's just for bw compat, but probably not the brightest idea.IsFileSelectableEvent.php:31ReplyWouldn't it make sense to immediately deprecate the method then? -
Oli Bartsch uploaded patch set 8
CR +1V +112/01/22, 16:26 -
Oli Bartsch commented on patch set 8 12/01/22, 16:26
Reply
Removed it in the event.IsFileSelectableEvent.php:31ReplyThought about it again. Just removed the method and documented it accordingly in the RST. -
core-ci voted on patch set 8 V +1 12/01/22, 16:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34517
-
Andreas Kienast voted on patch set 8 V +1 CR +1 12/01/22, 16:36
-
Benni Mack voted on patch set 8 V +1 CR +1 12/01/22, 21:25
-
Oli Bartsch voted on patch set 8 CR +2 12/01/22, 22:32
-
Oli Bartsch voted on patch set 8 V +2 12/01/22, 22:33
-
Oli Bartsch merged patch set 9 12/01/22, 22:33