Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miro_dietiker created an issue. See original summary.

johnchque’s picture

I believe that we don't need this anymore as it is in the demo module?

Status: Needs review » Needs work

The last submitted patch, 2: cleanup_applyupdates-3043800-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Berdir’s picture

Category: Bug report » Task
Priority: Normal » Critical

I think we need to wait for the next stable release to ave it working again. Alternatively we could maybe figure out the version and only call it if below 8.6.14. Requesting retests from all dev branches.

Berdir’s picture

actually, it is only fixed in 8.7 according to the test fails, but it is also only 8.7 that complains about this, so lets wrap it inside a version_compare(\Drupal::VERSION, '8.7.0', '<=').

johnchque’s picture

johnchque’s picture

Berdir’s picture

Status: Needs review » Needs work
+++ b/modules/paragraphs_demo/paragraphs_demo.install
@@ -13,8 +13,10 @@ use Drupal\workflows\Entity\Workflow;
-  // Ensure the translation fields are created in the database.
-  \Drupal::service('entity.definition_update_manager')->applyUpdates();
+  if (version_compare(\Drupal::VERSION, '8.7.0', '<')) {
+    // Ensure the translation fields are created in the database.
+    \Drupal::service('entity.definition_update_manager')->applyUpdates();
+  }

This doesn't work because 8.7.0-dev is < 8.7.0.

But we can use '8.6.99' instead, it is quite likely that there will never be more than 99 versions of 8.6 ;)

johnchque’s picture

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

miro_dietiker’s picture

Status: Reviewed & tested by the community » Fixed

Great, committed this, thx!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.