68913[BUGFIX] Extbase Relations are resolved properly in workspaces
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Oli Bartsch +1
- Danilo Caccialanza +1
-
Verified V +2 Done
- Benni Mack +2
- Oli Bartsch +1
- cbugada +1
- Danilo Caccialanza +1
- Martin Tepper +1
- core-ci +1 CI
Issues 4
- Bug #88021Preview of a record related with FAL does not work when file is changed in a workspace
- Bug #82750Workspace preview doesn't preview MM relations properly
- Bug #82086Frontend Preview Mode And Missing Inline Elements in Workspace
- Bug #76993Getting a single extbase query result in a workspace for a relation that has been deleted and re-added returns no relation
Files 2
Review log 4357
Show 2132 earlier messages
-
Benni Mack uploaded patch set 1 04/29/21, 13:33
-
core-ci voted on patch set 1 V -1 04/29/21, 13:50 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10903
-
Benni Mack uploaded patch set 2 04/29/21, 14:07
-
Benni Mack uploaded patch set 3 04/29/21, 14:08
-
core-ci voted on patch set 2 V -1 04/29/21, 14:26 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10905
-
core-ci voted on patch set 3 V -1 04/29/21, 14:27 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10906
-
Benni Mack uploaded patch set 4 04/29/21, 17:16
-
core-ci voted on patch set 4 V -1 04/29/21, 17:35 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10925
-
Benni Mack updated the commit message in patch set 5 04/29/21, 17:36
-
core-ci voted on patch set 5 V -1 04/29/21, 17:53 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10927
-
Ralf Merz commented on patch set 5 04/30/21, 05:48
Hi Benni, please check my comment about the $value.DataMapper.php:490The $value can be an object OR an integer here. So better on line 482 define "$value = 0;" or so and use $parentObject in the "if"-conditions. Right? -
Oli Bartsch commented on patch set 5 04/30/21, 09:59
DataMapper.php:490ReplyI'm fine with the approach of overwriting the value to an int. However, I would like to suggest improving the introduced if clauses a bit: 1. Merge second if into parent one 2. Only call ->_getProperty() once So, could look like this: if ($columnMap->getTypeOfRelation() === ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY && $value->_hasProperty('_versionedUid') && ($versionedUid = (int)$value->_getProperty('_versionedUid')) > 0 ) { $value = $versionedUid; } -
Benni Mack commented on patch set 5 04/30/21, 10:24
DataMapper.php:490Replydon't fully get this, Ralf. One thing that needs to be considered here is that we're having a Extbase Query Object, not a Doctrine DBAL Query Object. This means, that the Extbase Typo3DbQueryParser will kick in to resolve the operand value (see createTypedNamedParameter() in this class) which does everything we need already (same as before). This area is also used to resolve IRRE relations, so we need this here unfortunately. -
Benni Mack rebased onto patch set 6 04/30/21, 10:35
-
core-ci voted on patch set 6 V -1 04/30/21, 10:51 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10965
-
Benni Mack uploaded patch set 7 04/30/21, 11:00
-
core-ci voted on patch set 7 V -1 04/30/21, 11:14 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10966
-
Benni Mack uploaded patch set 8 04/30/21, 11:36
-
core-ci voted on patch set 8 V +1 04/30/21, 11:47 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10968
-
Oli Bartsch voted on patch set 8 V +1 CR +1 04/30/21, 12:38
-
Ralf Merz commented on patch set 8 CR +1 04/30/21, 12:58
Ah, I see this with the $value... the QueryParser takes care of it. So should be fine now 👍DataMapper.php:490ReplyDone -
Benni Mack uploaded patch set 9 04/30/21, 16:49
-
core-ci voted on patch set 9 V -1 04/30/21, 17:00 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10976
-
Benni Mack uploaded patch set 10 04/30/21, 17:27
-
core-ci voted on patch set 10 V +1 04/30/21, 17:40 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10979
-
Benni Mack updated the commit message in patch set 11 04/30/21, 19:11
-
core-ci voted on patch set 11 V +1 04/30/21, 19:22 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/10984
-
Danilo Caccialanza commented on patch set 11 V +1 05/02/21, 11:19
Tested on TYPO3 10.4.15 with tag “<f:uri.image”, I confirm that this patch solve https://forge.typo3.org/issues/88021. -
cbugada voted on patch set 11 V +1 05/06/21, 06:37
-
Oliver Hader commented on patch set 11 05/06/21, 14:34
DataMapper.php:502I feel(!) it should be something like the following (order: versioned, localized, uid) ``` if ($value->_getProperty('_versionedUid') !== $value->getUid()) { $value = (int)$value->_getProperty('_versionedUid'); } elseif ($value->_getProperty('_localizedUid') !== $value->getUid()) { $value = (int)$value->_getProperty('_localizedUid'); } else { $value = (int)$value->getUid(); } ``` -
Benni Mack uploaded patch set 12 05/06/21, 14:37
-
Benni Mack commented on patch set 12 05/06/21, 14:37
DataMapper.php:502ReplyYou are of course right. This is fixed now.
-
Oliver Hader voted on patch set 12 CR +1 05/06/21, 14:41
-
Oliver Hader commented on patch set 12 05/06/21, 14:41
DataMapper.php:502ReplyAwesome! Thx! -
core-ci voted on patch set 12 V -1 05/06/21, 14:56 Core CI is not happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/11264
-
Benni Mack uploaded patch set 13 05/06/21, 15:02
-
Oliver Hader voted on patch set 13 CR +1 05/06/21, 15:05
-
core-ci voted on patch set 13 V +1 05/06/21, 15:14 Core CI is happy: https://gitlab.typo3.org/TYPO3/CI/cms/-/pipelines/11265
-
Danilo Caccialanza voted on patch set 13 V +1 05/07/21, 06:58
-
cbugada voted on patch set 13 V +1 05/07/21, 07:10
-
Tina Westner voted on patch set 13 V +1 05/07/21, 21:21
-
Oli Bartsch commented on patch set 13 V -1 05/10/21, 10:30
Testcase in v10 with EXT:news. 1. Created two news records in live workspace 2. Added second record as "related" to first record 3. Changed to Workspace and changed the title of the second (referenced) record 4 Result in workspace preview: 4.1 Without this patch: Changed title (versioned record) is shown 4.2 With this patch: Related news is not shown anymore --- Similar behaviour for categories, although it looks like there is also a bug in the SelectTree since the versioned record is never shown als "selected" after saving the record. -
Danilo Caccialanza commented on patch set 13 V 0 05/20/21, 10:17
Reply Unresolved
In my experience I can confirm that in general there are bugs in SelectTree, but this was already before this patch. In my opinion this patch will solve a very large number of problems, any small collateral problems should be solved separately at a later time. -
Danilo Caccialanza voted on patch set 13 V +1 05/20/21, 10:18
-
Benni Mack uploaded patch set 14 08/02/21, 16:56
-
core-ci voted on patch set 14 V +1 08/02/21, 17:17 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/14013
-
Oli Bartsch voted on patch set 14 V +1 CR +1 08/02/21, 20:32
-
Benni Mack commented on patch set 14 08/02/21, 21:01
@all: Please re-test and re-vote, we've fixed the last outstanding issues. -
Danilo Caccialanza commented on patch set 14 V -1 08/03/21, 07:39
Patch applied manually into 10.4.18, in general ok. I found a problem working into a workspace when there are some "hidden images", but I'm not sure if it's a problem to fix in this patch. @benni can you plese help my trying with a case with some "hidden image"? (I send you an email with more details). -
Benni Mack commented on patch set 14 08/03/21, 09:35
Reply
Hey Danilo, did this occur with the previous revision (PatchSet 13) as well? -
Danilo Caccialanza commented on patch set 14 08/03/21, 13:57
Reply Unresolved
Yes same problem with the previous revision (PatchSet 13). Try 1) hide actually LIVE element image 2) add new image The resulti is a preview error (if you unhide live elements no errors) I send you an screen shoot via email :) -
Danilo Caccialanza commented on patch set 14 V +1 08/05/21, 06:17
After a thorough analysis we found that the my sengalated problem is not related to the current patch. The problem already existed before apply the patch. For this reason I confirm that everything else is fine and change my vote to +1 . -
Danilo Caccialanza voted on patch set 14 CR +1 08/05/21, 07:47
-
Martin Tepper voted on patch set 14 V +1 08/05/21, 08:06
-
cbugada voted on patch set 14 V +1 08/05/21, 08:06
-
Benni Mack commented on patch set 14 V +2 CR +2 08/05/21, 08:13
Thanks for all the tests! -
Benni Mack merged patch set 15 08/05/21, 08:13