83196[TASK] Import fluid namespace where missing
Commit message
Review
-
Code review CR 0
-
Verified V 0
Issues 1
Files 74
- typo3/sysext/backend/Resources/Private/Partials/About/About.html+5 −0
- typo3/sysext/backend/Resources/Private/Partials/About/ExternalLibraries.html+5 −0
- typo3/sysext/backend/Resources/Private/Partials/About/Logo.html+5 −0
- typo3/sysext/backend/Resources/Private/Partials/About/Modules.html+6 −0
- typo3/sysext/backend/Resources/Private/Partials/PageLayout/RecordDefault/Header.html+6 −0
- typo3/sysext/backend/Resources/Private/Partials/PageLayout/RecordDefault/Preview.html+5 −0
- typo3/sysext/backend/Resources/Private/Partials/ToolbarItems/ToolbarItem.html+5 −0
- typo3/sysext/backend/Resources/Private/Partials/ButtonBar.html+5 −0
- typo3/sysext/backend/Resources/Private/Templates/About/Index.html+0 −4
- typo3/sysext/backend/Resources/Private/Templates/Backend/Main.html+0 −2
- typo3/sysext/backend/Resources/Private/Templates/Email/PasswordReset/AmbiguousResetRequested.html+8 −0
- typo3/sysext/backend/Resources/Private/Templates/Email/PasswordReset/ResetRequested.html+8 −0
- typo3/sysext/backend/Resources/Private/Templates/Email/Security/LoginAttemptFailedWarning.html+8 −0
- typo3/sysext/backend/Resources/Private/Templates/Email/Security/LoginNotification.html+8 −0
- typo3/sysext/backend/Resources/Private/Templates/Form/ImageManipulationElement.html+0 −3
- typo3/sysext/backend/Resources/Private/Templates/Form/ImageManipulationWizard.html+3 −3
- typo3/sysext/backend/Resources/Private/Templates/PageLayout/PageModule.html+0 −1
- typo3/sysext/backend/Resources/Private/Templates/PageLayout/PageModuleNoAccess.html+0 −4
- typo3/sysext/backend/Resources/Private/Templates/PageLayout/UnusedRecords.html+5 −0
- typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/ShortcutToolbarItemEditForm.html+5 −0
Show 54 more files
- typo3/sysext/backend/Resources/Private/Templates/RecordSearchBox.html+6 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/Resources/Private/Layouts/FooLayout.html+5 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_a/Resources/Private/Templates/Foo.html+5 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/Resources/Private/Layouts/FooLayout.html+5 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/Resources/Private/Partials/FooPartial.html+5 −0
- typo3/sysext/backend/Tests/Functional/View/Fixtures/Extensions/test_templates_b/Resources/Private/Templates/Foo.html+5 −0
- typo3/sysext/backend/Tests/Functional/ViewHelpers/Fixtures/Mfa/IfHasStateViewHelper.html+6 −0
- typo3/sysext/core/Resources/Private/Templates/Authentication/MfaProvider/RecoveryCodes/Auth.html+2 −3
- typo3/sysext/core/Resources/Private/Templates/Authentication/MfaProvider/RecoveryCodes/Edit.html+5 −0
- typo3/sysext/core/Resources/Private/Templates/Authentication/MfaProvider/RecoveryCodes/Setup.html+6 −0
- typo3/sysext/core/Resources/Private/Templates/Authentication/MfaProvider/Totp/Auth.html+2 −3
- typo3/sysext/core/Resources/Private/Templates/Authentication/MfaProvider/Totp/Edit.html+5 −0
- typo3/sysext/core/Resources/Private/Templates/Authentication/MfaProvider/Totp/Setup.html+2 −3
- typo3/sysext/core/Resources/Private/Templates/Email/Default.html+7 −0
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_fluid_email/Resources/Private/Templates/WithSubject.html+8 −0
- typo3/sysext/core/Tests/Functional/Fixtures/Frontend/FluidError.html+5 −0
- typo3/sysext/extensionmanager/Resources/Private/Partials/List/TerPagination.html+6 −0
- typo3/sysext/extensionmanager/Resources/Private/Partials/List/UnresolvedDependencies.html+5 −0
- typo3/sysext/extensionmanager/Resources/Private/Partials/List/UnresolvedDependenciesMessage.html+5 −0
- typo3/sysext/extensionmanager/Resources/Private/Partials/List/UpdateFromTer.html+5 −0
- typo3/sysext/extensionmanager/Resources/Private/Partials/List/UploadForm.html+6 −0
- typo3/sysext/extensionmanager/Resources/Private/Templates/UploadExtensionFile/Form.html+5 −0
- typo3/sysext/filelist/Resources/Private/Templates/Filelist/List.html+2 −0
- typo3/sysext/filelist/Resources/Private/Templates/Filelist/Tiles.html+7 −5
- typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/Link/FileViewHelper/Template.html+5 −0
- typo3/sysext/form/Resources/Private/Partials/Backend/FormManager/Pagination.html+6 −0
- typo3/sysext/form/Resources/Private/Templates/Backend/FormEditor/Index.html+0 −1
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/Extensions/form_caching_tests/Resources/Private/Templates/FormCachingTests/SomePerform.html+6 −0
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/Extensions/form_caching_tests/Resources/Private/Templates/FormCachingTests/SomeRender.html+6 −0
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/Extensions/form_caching_tests/Resources/Private/Templates/FormFluidtemplate.html+6 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluid_template/Resources/Private/LayoutOverrides/Layouts/Default.html+5 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluid_template/Resources/Private/Layouts/AlternativeLayout.html+5 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluid_template/Resources/Private/Layouts/Default.html+5 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluid_template/Resources/Private/Templates/ContentElements/FlexformDataProcessor.html+5 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluid_template/Resources/Private/Templates/AlternativeTemplate.html+6 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluid_template/Resources/Private/Templates/Main.html+6 −0
- typo3/sysext/frontend/Tests/Functional/Fixtures/Extensions/test_fluid_template/Resources/Private/Templates/WithPartial.html+5 −0
- typo3/sysext/install/Resources/Private/Templates/Email/Security/InstallToolLogin.html+4 −0
- typo3/sysext/install/Resources/Private/Templates/Email/Security/InstallToolLoginAttempt.html+4 −0
- typo3/sysext/linkvalidator/Resources/Private/Templates/Email/ValidatorTask.html+8 −3
- typo3/sysext/redirects/Resources/Private/Partials/Pagination.html+6 −0
- typo3/sysext/scheduler/Resources/Private/Partials/AddEditStartEndFields.html+0 −2
- typo3/sysext/scheduler/Resources/Private/Partials/AddEditTaskGroupField.html+0 −2
- typo3/sysext/scheduler/Resources/Private/Partials/AddEditTypeField.html+0 −1
- typo3/sysext/scheduler/Resources/Private/Partials/GroupUnusedList.html+1 −2
- typo3/sysext/scheduler/Resources/Private/Partials/ServerTime.html+0 −3
- typo3/sysext/scheduler/Resources/Private/Partials/TaskList.html+15 −15
- typo3/sysext/scheduler/Resources/Private/Templates/Email/TestTask.html+7 −0
- typo3/sysext/scheduler/Resources/Private/Templates/AddTaskForm.html+0 −5
- typo3/sysext/scheduler/Resources/Private/Templates/CheckScreen.html+0 −5
- typo3/sysext/scheduler/Resources/Private/Templates/EditTaskForm.html+0 −4
- typo3/sysext/scheduler/Resources/Private/Templates/InfoScreen.html+8 −13
- typo3/sysext/scheduler/Resources/Private/Templates/ListTasks.html+0 −4
- typo3/sysext/styleguide/Resources/Private/Templates/Partials/Menu.html+5 −0
Review log 1520
-
Simon Schaufelberger uploaded patch set 1 03/04/24, 14:39
-
core-ci voted on patch set 1 V -1 03/04/24, 14:48 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53859
-
Simon Schaufelberger uploaded patch set 2
V -103/04/24, 14:53 -
core-ci voted on patch set 2 V -1 03/04/24, 14:59 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53862
-
Simon Schaufelberger uploaded patch set 3
V -103/04/24, 15:05 -
core-ci voted on patch set 3 V +1 03/04/24, 15:11 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53868
-
Simon Schaufelberger uploaded patch set 4
V +103/04/24, 15:12 -
Simon Schaufelberger uploaded patch set 5 03/04/24, 15:18
-
core-ci voted on patch set 5 V +1 03/04/24, 15:24 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53874
-
Benjamin Franzke commented on patch set 5 CR -2 03/05/24, 11:35
The namespace annotation is not missing. There is not technical reason to flood all partials with unneeded declarations. The namespace f is defined by default. -
Simon Schaufelberger commented on patch set 5 03/05/24, 11:51
Reply
I know it is technically not missing but for good IDE support it should be added everywhere. Technically you could leave out the import of the f namespace everywhere but it has been done in the majority of the core already and these files are just the remaining once to make it 100%. Actually this is a followup patch which has already been merged by Simon P and Garvin also had a look at the previous one already so there is some support already from core team members. -
Benjamin Franzke commented on patch set 5 03/05/24, 12:03
Reply
IDE (which should help) can not be the reasons to add thousands of lines of code. This is not help but burden. IDEs sould be fixed. Sorry to be rude, but I don't care who merged whatver, if something makes no sense, I'll be a blocker here – sorry. -
Simon Schaufelberger commented on patch set 5 03/05/24, 12:17
Reply
how can IDEs be fixed if they don't know what to do? This annotation for fluid is basically the same as the file .phpstorm.meta.php. It's just there to help phpstorm to know more about the code. Why do we care so much about phpstan? Because we want to know more. All these doctype annotations fall under the same category like the fluid annotation so your argument is not really a good reason to stop this from merging. -
Simon Praetorius commented on patch set 5 03/05/24, 16:50
Reply
I must say that I don't agree with this. I see those namespace definitions similar to PHP namespaces: All dependencies should be defined in the file, not just those that aren't global. This makes it possible to create tooling (like validators or IDE integrations) that works without the knowledge of any global state besides the template. -
Benjamin Franzke commented on patch set 5 03/05/24, 16:56
Reply
The fluid default namespace is part of the fluid language. This is something a valid fluid IDE integration *has* to know, otherwise it doesn't work for *valid* fluid templates. I understand we just want those IDEs to work, but I'm pretty sure we should really try to head to the proper technical decision, which is to require IDEs to properly understand fluid. Thanks. -
Simon Schaufelberger commented on patch set 5 03/05/24, 17:03
Reply Unresolved
But until IDEs know Fluid, let's help them. I'm not aware of any IDE which understands Fluid templates currently, not even the Fluid Plugin from Sgalinski has 100% understanding of Fluid. That is also the reason why people come up with budget ideas like: https://talk.typo3.org/t/lsp-implementation-for-fluid/5052 -
Simon Schaufelberger uploaded patch set 6
V +105/15/24, 21:25Copied Votes: * Code-Review-2 (copy condition: "changekind:NO_CHANGE OR **is:MIN**") -
core-ci voted on patch set 6 V +1 05/15/24, 21:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/57792
-
Georg Ringer abandoned the change 07/10/24, 07:16
it sound like https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.2/Feature-104114-CommandToGenerateFluidSchemaFiles.html should fix that? -
Simon Schaufelberger commented on patch set 6 03/26/25, 22:50
@georg.ringer@gmail.com not fully as this only works if the namespace is defined in the file but these files don't have any namespace defined.