71556[BUGFIX] Consider hideAtCopy and disableHideAtCopy for page translation
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
- Benni Mack +1
-
Verified V +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
- Benni Mack +1
- core-ci +1 CI
Issues 2
Files 47
- typo3/sysext/core/Classes/DataHandling/DataHandler.php4+15 −2
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyFalse.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyNotDisableHideAtCopyUnset.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyFalse.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyNotDisableHideAtCopyUnset.csvnew+29 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/ActionTest.php+72 −0
- typo3/sysext/core/Tests/Functional/DataHandling/Regular/AbstractActionTestCase.php4+152 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageHiddenHideAtCopyFalse.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/DataSet/localizePageNotHiddenHideAtCopyFalse.csvnew+37 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Discard/ActionTest.php+80 −0
Show 27 more files
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageHiddenHideAtCopyFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePageNotHiddenHideAtCopyFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/ActionTest.php+72 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageHiddenHideAtCopyFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePageNotHiddenHideAtCopyFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/ActionTest.php+80 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageHiddenHideAtCopyFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopySetToTrue.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageNotHiddenHideAtCopyDisableHideAtCopyUnset.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePageNotHiddenHideAtCopyFalse.csvnew+39 −0
- typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/ActionTest.php+80 −0
Review log 3239
Show 1214 earlier messages
-
André Buchmann uploaded patch set 1 10/12/21, 09:47
-
Benni Mack voted on patch set 1 CR +1 10/12/21, 09:54
-
core-ci voted on patch set 1 V -1 10/12/21, 10:10 Core CI is not happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/17956
-
André Buchmann uploaded patch set 2 10/12/21, 10:11
-
core-ci voted on patch set 2 V +1 10/12/21, 10:30 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/17959
-
Benni Mack voted on patch set 2 CR +1 10/12/21, 12:32
-
Stefan Bürk voted on patch set 2 CR +1 10/12/21, 13:41
-
Jochen Roth voted on patch set 2 V +1 CR +1 10/12/21, 13:48
-
Stefan Bürk commented on patch set 2 V +1 10/12/21, 13:56
Verified in a instance (10.4) manually with differenct constellations/overrides. Would love to see tests covering this (for the future). Not sure about opinion from Benny or others. If not in this patch, I would try to add tests in a seperate patch at the weekend if that would be fine for anyone. Then it would not be a blocker for now. As such not voting -1 for now as no other mentioned tests yet. -
Christian Kuhn commented on patch set 2 10/12/21, 14:02
should we cover that with a functional test? -
Stefan Bürk commented on patch set 2 10/12/21, 14:04
Reply
Asked that too. May add some at the weekend, either in this patch or as new one (if no other would do it). -
Stefan Bürk wrote 10/12/21, 14:05
Removed Code-Review+1 by Stefan Bürk <stefan@buerk.tech> -
André Buchmann commented on patch set 2 10/12/21, 14:43
Reply
I have no experience with functional tests. I would also like to have tests for this, but it may also hardens the different behaviour for pages compared to tt_content etc? -
Christian Kuhn commented on patch set 2 CR -1 10/12/21, 18:14
Let's give Stefan a chance to come up with a functional test setup for this before merge.
-
André Buchmann commented on patch set 2 10/13/21, 07:05
FYI this patch could also be applied to TYPO3 9.5. But as it is now ELTS I didn't set it as target. -
Stefan Bürk commented on patch set 2 10/13/21, 07:16
Reply
As you said, master+10.4 as targets are correct. -
Stefan Bürk commented on patch set 2 10/28/21, 11:17
Reply
We/I will take care of that. Just did not had the time lately as was full with other tasks (for core and daily work), but that was not forgotten. It's on my todo list to came up with tests for it. Maybe I find this (long) weekend time to get this done. -
Stefan Bürk commented on patch set 2 V 0 CR -1 11/13/21, 18:21
I will do following now to verify added tests are working as intended: - Patchset 3: Added datahandler tests (core + workspaces), disabled fix => should fail - Patchset 4: Reactivate fix (but incorporate my comments ) => should be greenDataHandler.php:4578Suggest to use a more speaking on, like $tableEntries. That would match the logic which is done some lines above.DataHandler.php:4579Should add a null coalescing operator for 'hideAtCopy' and 'disableHideAtCopy', if key is not set to avoid array key access warning. -
Stefan Bürk uploaded patch set 3 11/13/21, 18:24
-
core-ci voted on patch set 3 V -1 11/13/21, 18:39 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/19230
-
Stefan Bürk uploaded patch set 4 11/13/21, 18:39
-
core-ci voted on patch set 4 V -1 11/13/21, 18:55 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/19231
-
Stefan Bürk uploaded patch set 5 11/13/21, 19:12
-
core-ci voted on patch set 5 V +1 11/13/21, 19:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/19232
-
Stefan Bürk commented on patch set 5 V +1 CR +1 11/13/21, 19:35
Reply
Little correction on that: Patchset 3 had cgl issues in the csv files, had been fixed. So: - Patchset 4: Added datahandler tests (core + workspaces) with disabled fix => should fail and failed - Patchset 5: Reactivated fix and incorporated my comments => should be green and were greenReply
DoneTests added and green. Changed commit message to reflect more the history of the issue.DataHandler.php:4578ReplyDoneDataHandler.php:4579ReplyDone -
Oliver Hader commented on patch set 5 11/15/21, 10:47
AbstractActionTestCase.php:522I think there might be a new method `updateRecord($tableName, $id, $values)` and then * `$this->updateRecord(self::TABLE_Page, self::VALUE_PageId, [$hiddenFieldName => 0]);` * `$this->updateRecord(self::TABLE_Page, self::VALUE_PageIdWebsite, ['TSconfig' => 'TCEMAIN.table.pages.disableHideAtCopy = 0']);` -
Stefan Bürk commented on patch set 5 11/15/21, 12:16
AbstractActionTestCase.php:522ReplyAck. Will add this. Thanks for pointing this out. -
Stefan Bürk wrote 11/15/21, 13:18
Removed Code-Review+1 by Stefan Bürk <stefan@buerk.tech> -
Stefan Bürk wrote 11/15/21, 13:18
Removed Verified+1 by Stefan Bürk <stefan@buerk.tech> -
Stefan Bürk uploaded patch set 6 11/15/21, 17:40
-
core-ci voted on patch set 6 V +1 11/15/21, 17:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/19311
-
Stefan Bürk commented on patch set 6 11/15/21, 17:59
AbstractActionTestCase.php:522ReplyThanks Oliver, thought about that again during adding two more tests cases which were missing and removing unneded things. Removed the unnecessary update calls (hidden = 0). Instead of intstruct a new abstracted method the importDefaults.csv should be extended to have these cases directly in the dataset in a separated refactor patch, instead of manipulating them at the start. And to make clearer what is really done (direct db update and not datahandler), keep the change in the abstract method until it was moved to the dataset. Would this be fine for you ? -
Christian Kuhn updated the commit message in patch set 7 11/15/21, 19:46
-
Benni Mack voted on patch set 7 V +1 CR +1 11/15/21, 19:46
-
Stefan Bürk voted on patch set 7 V +1 CR +1 11/15/21, 19:49
-
core-ci voted on patch set 7 V +1 11/15/21, 19:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/19317
-
Christian Kuhn voted on patch set 7 V +2 CR +2 11/15/21, 19:59
-
Christian Kuhn merged patch set 8 11/15/21, 19:59
-
Stefan Bürk commented on patch set 8 11/15/21, 20:30
AbstractActionTestCase.php:522ReplyDone