84000[BUGFIX] Properly handle diff while updating meta data
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
-
Verified V +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
- core-ci +1 CI
Issues 1
Files 3
Review log 1622
-
Daniel Siepmann uploaded patch set 1 04/23/24, 09:44
-
core-ci voted on patch set 1 V +1 04/23/24, 09:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56558
-
Christian Kuhn commented on patch set 1 04/23/24, 13:09
feels as if this change could benefit from a functional test: update() is public and looks as if it's easily testable? this gives us the opportunity to see a "fails without subject change", "good with subject change", and would make the commit message more clear along the way. -
Oliver Klee updated the commit message in patch set 2
V +104/23/24, 13:13 -
Daniel Siepmann commented on patch set 1 04/23/24, 13:18
Reply
Thought so as well. But unit tests seemed to be a bigger deal because it also fetches the info and creates several classes via makeInstance. Also, I couldn't find any other existing tests for this class as inspiration. But I could try to invest some more time. -
core-ci voted on patch set 2 V +1 04/23/24, 13:18 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56579
-
Daniel Siepmann uploaded patch set 3
V +104/23/24, 14:06 -
Daniel Siepmann commented on patch set 3 04/23/24, 14:06
Reply
I've added tests. The first test is failing without the modification and passes with the patch. -
core-ci voted on patch set 3 V +1 04/23/24, 14:10 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56582
-
Stefan Bürk commented on patch set 3 04/23/24, 15:11
MetaDataRepositoryTest.php:28Please provide that directly as property and not as assigne ment in the setUp method. -
Christian Kuhn commented on patch set 3 04/23/24, 16:30
MetaDataRepositoryTest.php:28Replyin general, i agree to Daniel: We should rather set properties within __construct() when extending from abstracts since this avoids problems when we for instance add type hints. however, in core we currently systematically use the properties directly. as such, i'd go with the direct property for now, and maybe change the entire core later, including an adaption of 'best practice guidelines'. -
Daniel Siepmann uploaded patch set 4
V +104/23/24, 16:52 -
core-ci voted on patch set 4 V +1 04/23/24, 16:57 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56596
-
Daniel Siepmann updated the commit message in patch set 5
V +104/23/24, 17:54 -
Daniel Siepmann commented on patch set 5 04/23/24, 17:54
MetaDataRepositoryTest.php:28ReplyAdjusted to follow the requested pattern. -
core-ci voted on patch set 5 V +1 04/23/24, 17:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56600
-
Christian Kuhn uploaded patch set 6
V +104/23/24, 18:02 -
Christian Kuhn voted on patch set 6 CR +1 V +1 04/23/24, 18:03
-
Stefan Bürk voted on patch set 6 CR +1 V +1 04/23/24, 18:07
-
core-ci voted on patch set 6 V +1 04/23/24, 18:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/56601
-
Christian Kuhn voted on patch set 6 CR +2 V +2 04/23/24, 18:59
-
Christian Kuhn merged patch set 7 04/23/24, 18:59