74924[!!!][FEATURE] Add search for form manager
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Frank Nägler +1
-
Verified V +2 Done
- Benni Mack +2
- Frank Nägler +1
- core-ci +1 CI
Issues 1
Files 8
- typo3/sysext/core/Documentation/Changelog/13.0/Breaking-97664-FormPersistenceManagerInterfaceModifed.rstnew+40 −0
- typo3/sysext/core/Documentation/Changelog/13.0/Feature-97664-AddSearchFunctionalityToFormManager.rstnew+26 −0
- typo3/sysext/form/Classes/Controller/FormManagerController.php10+29 −6
- typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManager.php+24 −0
- typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManagerInterface.php+5 −0
- typo3/sysext/form/Resources/Private/Language/Database.xlf+6 −0
- typo3/sysext/form/Resources/Private/Partials/Backend/FormManager/Pagination.html+6 −6
- typo3/sysext/form/Resources/Private/Templates/Backend/FormManager/Index.html2+30 −1
Review log 5472
Show 3647 earlier messages
-
Josua Vogel uploaded patch set 1 06/17/22, 11:12
-
core-ci voted on patch set 1 V -1 06/17/22, 11:20 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28135
-
Josua Vogel uploaded patch set 2 06/17/22, 11:50
-
core-ci voted on patch set 2 V +1 06/17/22, 11:57 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28137
-
Björn Jacob commented on patch set 2 CR -1 06/17/22, 14:55
Awesome contribution Josua. We are having another sprint end of June. Can you please take care to add a feature.rst file (see https://forger.typo3.com/utilities/rst)? Thx mate! -
Josua Vogel uploaded patch set 3 06/20/22, 12:20
-
Josua Vogel commented on patch set 3 06/20/22, 12:22
Reply
Hi Björn, the ReST Helper seems to be broken today, but I added the changelog file by myself. Hope everything is okay. -
core-ci voted on patch set 3 V +1 06/20/22, 12:29 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28257
-
Sybille Peters commented on patch set 3 V +1 CR +1 06/29/22, 21:45
Created several form, manually set limit to 2 to test pagination. Works nicely 😊FormManagerController.php:408Minor nitpick: perhaps add a linebreak here. -
Elias Häußler commented on patch set 3 06/30/22, 07:28
FormManagerController.php:408Other searches in backend perform a `trim($searchTerm)` before searching. I'd suggest to do this here as well. The condition can then be more strict: <pre> trim($searchTerm) === '' </pre> The `trim()` should probably be done outside of the `foreach()` for performance reasons. -
Tobias Jungmann commented on patch set 3 06/30/22, 07:29
FormManagerController.php:408Perhaps it's more efficient to set a reversed if clause with a `continue` command above line 397 to skip the code at 397 to 407. Or am I missing something?Index.html:18Indentation seems to be at 8 characters (should be 4?) -
Björn Jacob commented on patch set 3 CR -1 07/01/22, 07:36
Maybe @Josua can improve the patch a little bit :) Thx! -
Simon Schaufelberger commented on patch set 3 CR -1 07/01/22, 18:46
The search form should only be shown if there are some forms available, otherwise it doesn't make sense to show a search field. -
Simon Schaufelberger uploaded patch set 4 07/05/22, 00:29
-
Simon Schaufelberger commented on patch set 4 07/05/22, 00:30
FormManagerController.php:408ReplyDoneFormManagerController.php:408ReplyDoneFormManagerController.php:408ReplyI don't understand what you are thinking about. Could you please suggest a code snippet?Index.html:18ReplyDone -
Simon Schaufelberger commented on patch set 4 V +1 CR +1 07/05/22, 00:31
Reply
Done -
core-ci voted on patch set 4 V +1 07/05/22, 00:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28646
-
Simon Schaufelberger uploaded patch set 5 07/05/22, 00:37
-
Simon Schaufelberger uploaded patch set 6 07/05/22, 00:38
-
Simon Schaufelberger voted on patch set 6 V +1 CR +1 07/05/22, 00:39
-
core-ci voted on patch set 5 V +1 07/05/22, 00:45 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28647
-
core-ci voted on patch set 6 V +1 07/05/22, 00:47 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/28648
-
Tobias Jungmann commented on patch set 6 07/05/22, 06:31
FormManagerController.php:408ReplyMaybe something like this: ``` foreach ($this->formPersistenceManager->listForms() as $formDefinition) { if (!($searchTerm === '' || $this->valueContainsSearchTerm($formDefinition['name'], $searchTerm) || $this->valueContainsSearchTerm($formDefinition['persistenceIdentifier'], $searchTerm)) ) { continue; } $referenceCount = 0; if ( isset($formDefinition['fileUid']) && array_key_exists($formDefinition['fileUid'], $allReferencesForFileUid) ) { $referenceCount = $allReferencesForFileUid[$formDefinition['fileUid']]; } elseif (array_key_exists($formDefinition['persistenceIdentifier'], $allReferencesForPersistenceIdentifier)) { $referenceCount = $allReferencesForPersistenceIdentifier[$formDefinition['persistenceIdentifier']]; } $formDefinition['referenceCount'] = $referenceCount; $availableFormDefinitions[] = $formDefinition; } ``` -
Simon Schaufelberger commented on patch set 6 07/05/22, 11:19
FormManagerController.php:408Replya much nicer version would be to use array_filter in this case because this negated thing is hard to understand in your brain. -
Guido Schmechel commented on patch set 6 07/08/22, 23:06
Nice feature! Can you please also note the shortcut button? Line 532: add setArguments($arguments) -> initializeModuleTemplate() The arguments can be put together something like this: $arguments = [ 'tx_form_web_formformbuilder' => [ 'searchTerm' => $searchTerm, 'controller' => 'FormManager', 'page' => $arrayPaginator->getCurrentPageNumber() ] ]; -
Guido Schmechel commented on patch set 6 07/08/22, 23:09
Reply
When I search for something and find nothing, I get a hint. Here you could design the text a little better. In addition, the search box is lost and you have to click on "Forms" in the menu on the left again. -
Simon Schaufelberger commented on patch set 6 07/08/22, 23:22
Reply
Oh, good catch! The form was always visible before even if there were no forms at all which doesn't make sense then to search but yes, there is also the case that the search result is empty. -
Simon Schaufelberger wrote 07/09/22, 02:01
Removed Verified+1 by Simon Schaufelberger -
Simon Schaufelberger wrote 07/09/22, 02:01
Removed Code-Review+1 by Simon Schaufelberger -
Josua Vogel uploaded patch set 7 08/16/22, 08:39
-
Josua Vogel commented on patch set 7 08/16/22, 08:47
FormManagerController.php:408ReplyWhere do you want to use array_filter? Should $availableFormDefinitions contain all form definitions first and then filter by search term? -
core-ci voted on patch set 7 V -1 08/16/22, 08:54 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/30190
-
Josua Vogel uploaded patch set 8 08/16/22, 08:58
-
core-ci voted on patch set 8 V +1 08/16/22, 09:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/30193
-
Simon Schaufelberger commented on patch set 8 V +1 CR +1 08/16/22, 13:49
FormManagerController.php:408Replylet's leave it as it is. -
Simon Schaufelberger uploaded patch set 9 08/16/22, 13:52
-
Simon Schaufelberger voted on patch set 9 V +1 CR +1 08/16/22, 13:53
-
core-ci voted on patch set 9 V +1 08/16/22, 14:00 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/30206
-
Josua Vogel commented on patch set 9 09/02/22, 12:11
Please look again at this merge request -
Chris Müller uploaded patch set 10 10/21/22, 09:51
-
core-ci voted on patch set 10 V +1 10/21/22, 10:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/32575
-
Andreas Kienast commented on patch set 10 10/21/22, 10:48
I know I'm pretty late to that party, but is it possible to extract the search handling (in the end to get the results) into a service class? This would be a fine addition to https://review.typo3.org/c/Packages/TYPO3.CMS/+/76118. -
Josua Vogel commented on patch set 10 11/07/22, 13:40
Reply
Would be possible. What is the opinion of the forms team? Is this a great addition or too much? -
Benni Mack commented on patch set 10 11/15/22, 22:21
ping here again, feedback from EXT:form responsible people is highly appreciated here. -
Chris Müller uploaded patch set 11
V +112/07/22, 18:35 -
core-ci voted on patch set 11 V +1 12/07/22, 18:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/34772
-
Benni Mack commented on patch set 11 12/21/22, 23:11
Next ping? Is there a decision on this feature from the Form Framework team? -
Benni Mack commented on patch set 12
V +102/08/23, 07:50Published edit on patch set 11. -
core-ci voted on patch set 12 V -1 02/08/23, 08:21 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/37329
-
Benni Mack wrote 02/10/23, 08:12
Removed cc Benni Mack. -
Andreas Kienast wrote 02/10/23, 09:26
Removed cc Andreas Kienast. -
Josua Vogel uploaded patch set 13
V -102/24/23, 11:34 -
core-ci voted on patch set 13 V +1 02/24/23, 11:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/38048
-
Guido Schmechel uploaded patch set 14
V +103/25/23, 12:21 -
Guido Schmechel commented on patch set 14 03/25/23, 12:28
Independently of the search handling, a button has been added that removes the filter/search word. Comparable to EXT:redirects for non-hits. -
Guido Schmechel rebased onto patch set 15 03/25/23, 13:05
-
core-ci voted on patch set 15 V +1 03/25/23, 13:13 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/39629
-
core-ci voted on patch set 14 V -1 03/25/23, 13:15 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/39628
-
Simon Schaufelberger voted on patch set 15 V +1 CR +1 03/27/23, 10:16
-
Simon Schaufelberger uploaded patch set 16
CR +1V +106/29/23, 05:13 -
core-ci voted on patch set 16 V +1 06/29/23, 05:21 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/43093
-
Benni Mack uploaded patch set 17
V +107/06/23, 10:23 -
Benni Mack voted on patch set 17 CR +1 07/06/23, 10:23
-
Benni Mack commented on patch set 17 V +1 CR 0 07/06/23, 10:23
works for me -
core-ci voted on patch set 17 V +1 07/06/23, 10:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/43687
-
Benni Mack uploaded patch set 18
V +107/06/23, 16:14 -
core-ci voted on patch set 18 V +1 07/06/23, 16:21 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/43773
-
Benni Mack voted on patch set 18 V +1 CR +1 07/06/23, 16:27
-
Frank Nägler voted on patch set 18 V +1 CR +1 07/06/23, 16:54
-
Benni Mack voted on patch set 18 V +2 CR +2 07/06/23, 16:56
-
Benni Mack merged patch set 19 07/06/23, 16:56