74052[!!!][TASK] Remove exclude setting from important TCA fields
Commit message
Review
-
Code review CR 0
-
Verified V 0
Issues 1
Files 38
- typo3/sysext/core/Classes/Migrations/TcaMigration.php2+21 −14
- typo3/sysext/core/Configuration/TCA/pages.php2+0 −1
- typo3/sysext/core/Configuration/TCA/sys_category.php+0 −1
- typo3/sysext/core/Configuration/TCA/sys_file_collection.php+0 −1
- typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97238-RemoveExcludeConfigurationFromImportantFields.rst2new+46 −0
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Configuration/TCA/tx_testdatahandler_element.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_flex_section_container/Configuration/TCA/tx_testflexsectioncontainer.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_csv/Configuration/TCA/tx_testirrecsv_hotel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_csv/Configuration/TCA/tx_testirrecsv_offer.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_csv/Configuration/TCA/tx_testirrecsv_price.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield/Configuration/TCA/tx_testirreforeignfield_hotel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield/Configuration/TCA/tx_testirreforeignfield_offer.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield/Configuration/TCA/tx_testirreforeignfield_price.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield_non_ws/Configuration/TCA/tx_testirreforeignfieldnonws_hotel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield_non_ws/Configuration/TCA/tx_testirreforeignfieldnonws_offer.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield_non_ws/Configuration/TCA/tx_testirreforeignfieldnonws_price.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mm/Configuration/TCA/tx_testirremm_hotel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mm/Configuration/TCA/tx_testirremm_offer.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mm/Configuration/TCA/tx_testirremm_price.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributeinline/Configuration/TCA/tx_testirremnattributeinline_hotel.php+0 −1
Show 18 more files
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributeinline/Configuration/TCA/tx_testirremnattributeinline_hotel_offer_rel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributeinline/Configuration/TCA/tx_testirremnattributeinline_offer.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributeinline/Configuration/TCA/tx_testirremnattributeinline_price.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributesimple/Configuration/TCA/tx_testirremnattributesimple_hotel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributesimple/Configuration/TCA/tx_testirremnattributesimple_hotel_offer_rel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnattributesimple/Configuration/TCA/tx_testirremnattributesimple_offer.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnsymmetric/Configuration/TCA/tx_testirremnsymmetric_hotel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_mnsymmetric/Configuration/TCA/tx_testirremnsymmetric_hotel_rel.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_select_flex_mm/Configuration/TCA/tx_testselectflexmm_foreign.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_select_flex_mm/Configuration/TCA/tx_testselectflexmm_local.php+0 −1
- typo3/sysext/core/Tests/Functional/Fixtures/be_groups.csv+2 −2
- typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php+73 −3
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_blog.php+0 −1
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_info.php+0 −1
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_person.php+0 −1
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_post.php+0 −1
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_tag.php+0 −1
- typo3/sysext/frontend/Configuration/TCA/tt_content.php+0 −1
Review log 2942
Show 1217 earlier messages
-
Georg Ringer uploaded patch set 1 03/25/22, 08:21
-
Georg Ringer commented on patch set 1 03/25/22, 08:21
This change is ready for review. -
core-ci voted on patch set 1 V -1 03/25/22, 08:32 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/25124
-
Benni Mack commented on patch set 1 03/25/22, 11:16
Is this a task or a feature or? -
Tymoteusz Motylewski commented on patch set 1 03/26/22, 20:16
Breaking-97238-RemoveExcludeSettingFromSomeTCAFields.rst:14Unresolvedhas been removed -
Georg Ringer uploaded patch set 2 04/02/22, 06:49
-
core-ci voted on patch set 2 V +1 04/02/22, 06:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/25366
-
Oliver Klee voted on patch set 2 CR +1 04/02/22, 09:59
-
Benni Mack commented on patch set 2 04/05/22, 17:05
I suggest that we have a TCA migration to remove exclude fields for ALL tables - namely "typeColumn", "sys_language_uid" and "l10n_parent". Cool with you Georg? -
Georg Ringer uploaded patch set 3 05/09/22, 12:57
-
Georg Ringer commented on patch set 3 05/09/22, 12:57
Reply
also fine for me -
Oliver Klee voted on patch set 3 CR +1 05/09/22, 13:00
-
core-ci voted on patch set 3 V -1 05/09/22, 13:14 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27027
-
Georg Ringer uploaded patch set 4 05/09/22, 13:24
-
core-ci voted on patch set 4 V -1 05/09/22, 13:37 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27030
-
Georg Ringer uploaded patch set 5 05/09/22, 17:34
-
core-ci voted on patch set 5 V -1 05/09/22, 17:41 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27042
-
Georg Ringer rebased onto patch set 6 05/09/22, 20:04
-
core-ci voted on patch set 6 V -1 05/09/22, 20:18 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27052
-
Georg Ringer uploaded patch set 7 05/10/22, 04:45
-
core-ci voted on patch set 7 V -1 05/10/22, 04:52 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27071
-
Georg Ringer uploaded patch set 8 05/10/22, 04:54
-
core-ci voted on patch set 8 V +1 05/10/22, 05:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27072
-
Georg Ringer uploaded patch set 9 05/11/22, 05:22
-
core-ci voted on patch set 9 V +1 05/11/22, 05:29 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27112
-
Benni Mack commented on patch set 9 05/11/22, 06:49
TcaMigration.php:274should we also include the "editLock" field? -
Georg Ringer commented on patch set 9 05/11/22, 10:28
IMO editlock is a bit different as it would be good to force a display_cond -
Georg Ringer rebased onto patch set 10 06/02/22, 06:34
-
core-ci voted on patch set 10 V +1 06/02/22, 06:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27642
-
Christian Kuhn uploaded patch set 11 07/31/22, 11:45
-
Christian Kuhn commented on patch set 11 07/31/22, 11:46
rebased. will do an in-depth review soon. -
core-ci voted on patch set 11 V -1 07/31/22, 11:55 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/29754
-
Christian Kuhn commented on patch set 11 CR -1 08/13/22, 06:40
-1 for now. i think we should sort out some details.pages.php:72this one needs to be discussed: do we really want to no longer allow non-admins setting a page to a different doktype? the .rst currently says: Fields configured in :php:`$GLOBALS['TCA'][$table]['ctrl']['typeicon_column']` and :php:`$GLOBALS['TCA'][$table]['ctrl']['languageField']` are now always visible for every editor and can't be forgotten during setup of the permissions. this is *not* true for typeicon_column (doktype in pages): with applied patch and saving a be_group that had doktype exclude set for pages, it is removed from the exclude list, and an editor can't see the field anymore, the type drop-down is then gone when editing a page. this also means, that *if* we go this path, we may need an upgrade wizard to actively remove the field from any be_groups access list fields? maybe it would be easier to at least split this field out-of the patch and make it a dedicated patch to decide on details?Breaking-97238-RemoveExcludeConfigurationFromImportantFields.rst:24See my other comment for typeicon_column. For 'languageField': I can't find code that ensures the type=language / ctrl['languageField'] field is always shown to editors. i played around on tt_content and was indeed unable to make the select drop-down vanish for users, but didn't find the code that takes care of this in formEngine and list module. Where is this ensured? If this is sorted out, then removing exclude=true from languageField columns is of course ok and it would be pretty much a follow-up to the type=language tca type introduction? The main issue is deeper here: be_users should typically never fiddle with sys_language_uid on existing records, and set them into a different language, since this easily destroys integrity of other related fields like l10n_source and similar. I'd say the only reason we didn't restrict this yet is the '-1' value, which wouldn't be able to be set then, anymore, if we don't show that field in FormEngine anymore. However, mid-term, we should find a better solution for '-1', make DataHandler handle it it a good way without destroying integrity, and then remove the language select drop down from FormEngine. So for now, I'd be +1 with removing exclude=1 from ctrl-languageField / type=language columns, as long as we verified (list + formEngine) that it for now is indeed always rendered. -
Georg Ringer rebased onto patch set 12 09/28/22, 06:13
-
core-ci voted on patch set 12 V -1 09/28/22, 06:24 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/31630
-
Georg Ringer uploaded patch set 13 09/30/22, 06:07
-
core-ci voted on patch set 13 V +1 09/30/22, 06:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/31737
-
Benni Mack commented on patch set 13 10/02/22, 08:04
TcaMigration.php:274ReplyDonepages.php:72Reply UnresolvedI think in this case this is valid, as we also use be_groups.pagetypes_select (boy oh how I hate this name), which is actually used to configure things properly within THAT field itself.Breaking-97238-RemoveExcludeConfigurationFromImportantFields.rst:24Replyyes. I agree here, we should move forward with the long-term strategy on sys_language_uid and l10n_parent being handled in a special manner. -
Oliver Klee commented on patch set 13 10/08/23, 13:43
How should we proceed here? -
Simon Schaufelberger commented on patch set 13 01/25/24, 14:27
Reply Unresolved
@georg.ringer@gmail.com Will this make it for v13? -
Benni Mack wrote 01/25/24, 15:25
Removed reviewer Benni Mack. -
Georg Ringer abandoned the change 02/03/25, 19:53
i am abandon that one now, seems not to get any consent