- π³πΏNew Zealand quietone
If I understand this correctly I actually think this is an error in the database. The database fixture has not always been created via the UI and sometimes this are not quite right.
However, I think the logic is correct here. That node has been translated so getting the dates from the entity translation table seems to be correct. To verify this, I tested on Drupal 7 starting with the current test fixture. I then added a new node of the same content type (one that uses entity translation) and added a French translation. I then looked at the dates in the node/node_revision and entity/entity_revision tables. Sorry, I didn't output that data. I concluded that the values for created/changed in the entity/entity_revision tables should be the same as the English node in the node/node_revision tables.
I have made a patch that changes those dates and MigrateNodeCompleteTest.
- Status changed to Needs review
over 1 year ago 9:26am 29 June 2023 - last update
over 1 year ago 29,563 pass - πΊπΈUnited States DamienMcKenna NH, USA
Then maybe we need test coverage for the data without translations? IMHO that's why the existing test coverage hasn't failed for the revision timestamp value.
- π³πΏNew Zealand quietone
I don't see how that will help. The incorrect data was in the entity_translation tables. And the node complete migration is designed to get everything. To run d7_node_complete without translations defeats its purpose.
@smustgrave, the only way I can think of to test this is to use a Drupal 7 site. Add entity_translation and i18n. Enable entity translation for a for a content type and another language. Then add a node of that content type and add a translation. Then examine the timestamps for the node in the node/node_revision and entity_translation/entity_translation_revision tables. You want to make sure that the pattern of changes matches what is in the patch and node tables for drupal7.php.
- Status changed to RTBC
over 1 year ago 7:37pm 25 July 2023 - πΊπΈUnited States smustgrave
English
Created - 1690313326
Changed - 1690313326Spanish
Created - 1690313497
Changed - 1690313497Ran the fixture DB dump to drupal7.php
Verified the nodes created and changed dates are matching. - last update
over 1 year ago 29,866 pass, 2 fail The last submitted patch, 6: 3303925-6.patch, failed testing. View results β
- last update
over 1 year ago 29,881 pass - Status changed to Needs review
over 1 year ago 1:15am 26 July 2023 - π³πΏNew Zealand quietone
There was an unrelated failure.
1) Drupal\Tests\user\Functional\UserCancelTest::testMassUserCancelByAdmin Behat\Mink\Exception\ElementNotFoundException: Button with id|name|label|value "Apply to selected items" not found.
I retested and tests are passing, so restoring RTBC.
- Status changed to RTBC
over 1 year ago 2:16am 26 July 2023 - last update
over 1 year ago 29,880 pass, 1 fail The last submitted patch, 6: 3303925-6.patch, failed testing. View results β
- Status changed to Needs work
over 1 year ago 4:37am 28 July 2023 - π³πΏNew Zealand quietone
Unrelated fail, retesting.
1) Drupal\Tests\system\Functional\System\CronRunTest::testAutomatedCron Failed asserting that 1690508392 is less than 1690508392.
- last update
over 1 year ago 29,885 pass - Status changed to RTBC
over 1 year ago 11:48am 28 July 2023 - last update
over 1 year ago 29,908 pass - last update
over 1 year ago 29,911 pass - last update
over 1 year ago 29,946 pass - last update
over 1 year ago 29,953 pass - last update
over 1 year ago 29,953 pass - last update
over 1 year ago 29,958 pass - last update
over 1 year ago 29,958 pass - last update
over 1 year ago 29,958 pass - last update
over 1 year ago 29,959 pass 31:53 30:38 Running- last update
over 1 year ago 30,049 pass - last update
over 1 year ago 30,056 pass - π³πΏNew Zealand quietone
I'm triaging RTBC issues β .
I've read the issue summary, comments and patch. All I see is that the proposed resolution does not match what is implemented. I have updated that now.
31:53 56:42 Running- last update
over 1 year ago 30,060 pass - last update
over 1 year ago 30,060 pass - last update
over 1 year ago 30,063 pass - last update
over 1 year ago 30,130 pass - last update
over 1 year ago 30,135 pass - last update
over 1 year ago 30,136 pass 16:53 15:38 Running- last update
over 1 year ago 30,146 pass - last update
over 1 year ago 30,146 pass - last update
over 1 year ago 30,150 pass - last update
over 1 year ago 30,154 pass - last update
over 1 year ago 30,137 pass, 2 fail The last submitted patch, 6: 3303925-6.patch, failed testing. View results β
- last update
over 1 year ago 30,161 pass - Status changed to Needs review
over 1 year ago 8:49am 18 September 2023 - π³πΏNew Zealand quietone
Unrelated failure, retesting
1) Drupal\Tests\ckeditor5\FunctionalJavascript\MediaTest::testViewMode with data set "without alignment" (false) Behat\Mink\Exception\ElementNotFoundException: Element matching css "article.media--view-mode-view-mode-1" not found.
- Status changed to RTBC
over 1 year ago 2:04pm 18 September 2023 - last update
over 1 year ago 30,168 pass - last update
over 1 year ago 30,168 pass - last update
about 1 year ago 30,205 pass - last update
about 1 year ago 30,363 pass - last update
about 1 year ago 30,365 pass - last update
about 1 year ago 30,348 pass, 2 fail The last submitted patch, 6: 3303925-6.patch, failed testing. View results β
- last update
about 1 year ago 30,362 pass - last update
about 1 year ago 30,379 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,392 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,413 pass - last update
about 1 year ago 30,417 pass 1:50 58:14 Running- last update
about 1 year ago 30,426 pass - last update
about 1 year ago 30,436 pass - last update
about 1 year ago 30,438 pass - last update
about 1 year ago 30,464 pass - last update
about 1 year ago 30,481 pass - last update
about 1 year ago 30,483 pass - last update
about 1 year ago 30,485 pass, 1 fail - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,510 pass - last update
about 1 year ago 30,516 pass - Status changed to Needs work
about 1 year ago 12:00am 11 November 2023 The Needs Review Queue Bot β tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request β . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
- Merge request !5339Issue #3303925 by quietone: D7 upgrade migration test shows incorrect node... β (Open) created by smustgrave
- Status changed to RTBC
about 1 year ago 12:17am 11 November 2023 - πΊπΈUnited States smustgrave
Hiding files and converted #6 to an MR.
Please do not credit me if I did not other wise earn it as all I did was convert this.
Restoring status
- Status changed to Needs work
about 1 year ago 12:03pm 8 December 2023 - πΊπΈUnited States DamienMcKenna NH, USA
I'm going to go back to the point that the problem is the "changed" value is not migrated correctly when translations are not used,
To run d7_node_complete without translations defeats its purpose.
I've used d7_node_complete as a base for several migrations, none of them had translations. When you run "migrate:import --configure-only" it uses d7_node_complete, even if the source site didn't use translations.
Putting this back to "needs work" as I strongly feel the actual problem is not being fixed.
- πΊπΈUnited States DamienMcKenna NH, USA
In practice I find that using the "timestamp" source property gives the correct value migrations, not the "changed" value as it results in the wrong value if the migration is updated (via Drush and migrate_tools).
- πΊπΈUnited States DamienMcKenna NH, USA
What's weird is that sometimes using changed:timestamp results in incorrect values, but running the migration again corrects it. Go figure.