83221[BUGFIX] Allow empty page id for pageId in log module
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Jasmina Ließmann +1
- Andreas Kienast +1
-
Verified V +2 Done
- Christian Kuhn +2
- Jasmina Ließmann +1
- Andreas Kienast +1
- core-ci +1 CI
Issues 1
Files 1
Review log 1315
-
Georg Ringer uploaded patch set 1 03/05/24, 22:08
-
Georg Ringer commented on patch set 1 03/05/24, 22:08
This change is ready for review. -
core-ci voted on patch set 1 V +1 03/05/24, 22:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/53988
-
Andreas Kienast commented on patch set 1 03/06/24, 07:05
Constraint.php:153Is it ensured that `$id` is always a string? -
Georg Ringer commented on patch set 1 03/06/24, 10:37
Constraint.php:153ReplyIMO yes -
Christian Kuhn commented on patch set 1 03/07/24, 08:45
Constraint.php:153Replyi tried to debug in this area, but did not fully understand details of the property mapping stuff and stopped when it became more complicated. it looked to me as if null could be a possible value as well. -
Georg Ringer commented on patch set 1 03/07/24, 10:40
Constraint.php:153Replyso how to proceed now? IMO it works now same as before but the edge case with no id given works now. why so complicated? -
Christian Kuhn uploaded patch set 2
V +103/11/24, 09:18 -
Christian Kuhn commented on patch set 2 03/11/24, 09:23
Constraint.php:153ReplyWhat puzzled me with your solution, was, that by making it a string and casting in the model defeats the purpose of the property mapper, whos job is to feed models with properly mapped values. For pageId, the target type is clearly an int, with the only shenanigan that the interface allows sending an empty string. Changing the patch to force ?int is imho a more clean solution and then have a null fallback within the setter is imho more clean. -
core-ci voted on patch set 2 V +1 03/11/24, 09:25 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/54350
-
Christian Kuhn voted on patch set 2 CR +1 V +1 03/11/24, 09:25
-
Andreas Kienast commented on patch set 2 CR +1 V +1 03/11/24, 09:32
Much cleaner solution <3 -
Jasmina Ließmann voted on patch set 2 CR +1 V +1 03/11/24, 09:38
-
Christian Kuhn voted on patch set 2 CR +2 V +2 03/11/24, 09:58
-
Christian Kuhn merged patch set 3 03/11/24, 09:58