- last update
over 1 year ago Patch Failed to Apply - Status changed to Needs review
over 1 year ago 7:10am 25 August 2023 - last update
over 1 year ago 29,468 pass, 2 fail The last submitted patch, 80: 2706431-80.patch, failed testing. View results β
- π¬π§United Kingdom jonathanshaw Stroud, UK
I believe the test fail is due to π EntityViewsData fails to set 'entity revision' in the table data for an entity's revision table Needs review .
- Status changed to Needs work
about 1 year ago 2:48pm 12 January 2024 - πΊπΈUnited States smustgrave
Did not review.
But was previously tagged for tests which still appear to be needed
Also issue summary should follow standard template.
- last update
about 1 year ago 29,721 pass, 2 fail - π¬π§United Kingdom jonathanshaw Stroud, UK
Anyone wanting to work on the missing test should look at EntityReferenceRelationshipTest (which tests the forward and reverse relationship for configured fields) and EntityViewsDataTest (which tests the forward relationship for base fields, and is where the test for the reverse should go).
Currently EntityViewsDataTest::testBaseTableFields() has:
$relationship = $data['entity_test']['user_id']['relationship']; $this->assertEquals('users_field_data', $relationship['base']); $this->assertEquals('uid', $relationship['base field']);
We probably need to add to this:
$user_data = $this->entityTypeManager->getHandler('user', 'views_data')->getViewsData(); $this->assertEquals('entity_reverse', $views_data['reverse__entity_test__user_id']['relationship']['id']); ... etc
- last update
12 months ago 29,721 pass, 2 fail - π©πͺGermany geek-merlin Freiburg, Germany
Played this and it looks it needs much more work.
After installing with the commerce module enabled, i get:
Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\views\EntityViewsData::mapSingleFieldViewsData(), 7 passed in /home/merlin/Code-Incubator/site-c4c-dev/web/modules/contrib/commerce/src/CommerceEntityViewsData.php on line 220 and exactly 8 expected" at /home/merlin/Code-Incubator/site-c4c-dev/web/core/modules/views/src/EntityViewsData.php line 483
Which is because a $data ("all views data") arg was added to mapSingleFieldViewsData method.
- 1) This is a BC break.
- 2) Looking over the code, my gut feeling is that adding this arg makes complex code even more complex and should be done differently.