πŸ‡¨πŸ‡­Switzerland @Siegrist

Account created on 8 February 2019, over 6 years ago
  • Software Developer at LiipΒ 
#

Merge Requests

More

Recent comments

πŸ‡¨πŸ‡­Switzerland Siegrist

siegrist β†’ made their first commit to this issue’s fork.

πŸ“Œ | rokka | Restore tests
πŸ‡¨πŸ‡­Switzerland Siegrist

siegrist β†’ made their first commit to this issue’s fork.

πŸ‡¨πŸ‡­Switzerland Siegrist

I am not sure in what entities may have used commerce\\BundleFieldDefinition. We might be able to filter by commerce, but it's then unclear that we find all occurrences in contrib and custom code.

πŸ‡¨πŸ‡­Switzerland Siegrist
πŸ‡¨πŸ‡­Switzerland Siegrist
πŸ‡¨πŸ‡­Switzerland Siegrist

In this original issue, we did not implement a hook to replace the already installed storage configs.

https://www.drupal.org/project/commerce/issues/2922811 β†’

With this very low-level update hook, we can change the used BundleFieldDefinition as the commerce and entity versions have the same footprint.
This way we don't need to implement it on the 2.x branch but can do it simply on the 3.x branch.

/**
 * Update outdataed payment method cache for commerce 3.
 */
function hook_update_xxxx() {
  $old_string = 'O:37:"Drupal\\commerce\\BundleFieldDefinition":5:';
  $new_string = 'O:35:"Drupal\\entity\\BundleFieldDefinition":5:';

  $escaped_old_string = \Drupal::database()->escapeLike($old_string);
  $escaped_new_string = \Drupal::database()->escapeLike($new_string);

  \Drupal::database()
    ->query(
      "UPDATE {key_value}
     SET value = REPLACE(value, '" . $escaped_old_string . "', '" . $escaped_new_string . "')"
    )->execute();
}
πŸ‡¨πŸ‡­Switzerland Siegrist

https://www.drupal.org/project/commerce/issues/3150917 β†’

This was the issue where this change was introduced, and therefore it makes sense to have a min requirement for commerce versions above this version. https://www.drupal.org/project/commerce/releases/8.x-2.25 β†’

^2.25 || ^3

πŸ‡¨πŸ‡­Switzerland Siegrist
πŸ‡¨πŸ‡­Switzerland Siegrist

We have the same issue. Is there a consistent fix for this?

πŸ‡¨πŸ‡­Switzerland Siegrist

What is holding this up?

πŸ‡¨πŸ‡­Switzerland Siegrist

siegrist β†’ made their first commit to this issue’s fork.

πŸ‡¨πŸ‡­Switzerland Siegrist

siegrist β†’ made their first commit to this issue’s fork.

πŸ‡¨πŸ‡­Switzerland Siegrist

This was never committed. We have been using it for years, and it works great. Please commit the fix.

πŸ‡¨πŸ‡­Switzerland Siegrist

Siegrist β†’ changed the visibility of the branch 3452717-cache-menu-links to active.

πŸ‡¨πŸ‡­Switzerland Siegrist

Siegrist β†’ changed the visibility of the branch 3452717-cache-menu-links to hidden.

πŸ‡¨πŸ‡­Switzerland Siegrist

Siegrist β†’ changed the visibility of the branch 3449445-revision-creation-time to hidden.

πŸ‡¨πŸ‡­Switzerland Siegrist

I hope I haven't deleted any functionality. Would be nice to get this committed. Thanks

πŸ‡¨πŸ‡­Switzerland Siegrist

Ok, this solution passes the test. Removing the unused code.

πŸ‡¨πŸ‡­Switzerland Siegrist

Siegrist β†’ changed the visibility of the branch 3426428-use-request-directly to hidden.

πŸ‡¨πŸ‡­Switzerland Siegrist

Siegrist β†’ made their first commit to this issue’s fork.

πŸ‡¨πŸ‡­Switzerland Siegrist

Siegrist β†’ made their first commit to this issue’s fork.

πŸ‡¨πŸ‡­Switzerland Siegrist

EntityQueryExtension needs this call wrapped in a render context.

return $connection->items($context);
Production build 0.71.5 2024