Lyon
Account created on 13 June 2012, about 13 years ago
#

Recent comments

🇫🇷France flocondetoile Lyon

I ran this patch since 4 years without issues. But I didn't have use case with coupons. I used it to make promotions incompatibles with others, without any coupons behavior associated with them.

🇫🇷France flocondetoile Lyon

For those who need the patch without the hook_update_N, as me who run this patch since 4 years (I implements the update_N in a custom module to not break other futur hook_update_N of the module), here it is.

🇫🇷France flocondetoile Lyon

patch rerolled against 3.1.0 version

🇫🇷France flocondetoile Lyon

This module allows to inject in the HEAD and in the page top the scripts required by Google Tag Manager (for ad word campaign for example). Google_tag module don't do this, and even if Google says that Google Tag will replace Google Tag Manager, in fact GTM is the only module which permit to satisfy the Google requirements about injecting Google Tag Manager in your website (instead of copy/paste their piece of script in the site's template)

🇫🇷France flocondetoile Lyon

Yes, better to wait that this module works again before publish a release...

🇫🇷France flocondetoile Lyon

You should revamp your theme for table of contents and go with 3.x version. It's not a big deal to add some css rules to visually flatten the TOC.

🇫🇷France flocondetoile Lyon

If you can confirm me this is working well on Drupal 11, I will be able to publish soon a new release. ?

🇫🇷France flocondetoile Lyon

If you can confirm me this is working well on Drupal 11, I will be able to publish soon a new release.

🇫🇷France flocondetoile Lyon

Thanks. Patch slighty updated and committed.

🇫🇷France flocondetoile Lyon

Tests are failing

🇫🇷France flocondetoile Lyon

Added a .gitlab-ci.yml too, to launch existing tests

🇫🇷France flocondetoile Lyon

But you need to check the status (as you do in your patch) too juste before deleting it. An order can be locked after being added in the queue expiration

🇫🇷France flocondetoile Lyon

Hello. Better to do this at the query level no ?

In the commerce_cart.cron service


protected function getOrderIds($order_type_id, Interval $interval) {
    $current_date = new DrupalDateTime('now');
    $expiration_date = $interval->subtract($current_date);
    $ids = $this->orderStorage->getQuery()
      ->condition('type', $order_type_id)
      ->condition('changed', $expiration_date->getTimestamp(), '<=')
      ->condition('cart', TRUE)
      ->range(0, 250)
      ->accessCheck(FALSE)
      ->addTag('commerce_cart_expiration')
      ->execute();

    return $ids;
  }
🇫🇷France flocondetoile Lyon

This patch should resolve this issue.
Patch done on /2.x-dev / 2.1.0 version.
Could you give a try ?

🇫🇷France flocondetoile Lyon

This module uses the node access system. So it can only control access to node, not on others entity types, as media.

🇫🇷France flocondetoile Lyon

I 'don't understand the issue reported. Need reformulation and/or actionnable elements.

🇫🇷France flocondetoile Lyon

There is already a patch in 📌 Automated Drupal 11 compatibility fixes for pbf Needs work and it looks nobody has test it yet.

🇫🇷France flocondetoile Lyon

You can write your own custom field widget for the pdf field and use it instead of the default one provided.

🇫🇷France flocondetoile Lyon

May be you just don't need this module if it don't meet your need.

🇫🇷France flocondetoile Lyon

Without error message we can't do anything. Please provide more actionnable elements about this crash.

🇫🇷France flocondetoile Lyon

This module should not altering this behavior. It's not its responsabilities to add the user.roles context for local action links. Your fix does the job, but doesn't fix the root cause I think. The best way would be (perhaps) to stop overriding route.route_provider and start using addExtraCacheKeyPart() (as domain did it see https://www.drupal.org/project/domain/issues/3359253 Use core route provider with addExtraCacheKeyPart for route caching? Needs review ).

But is this override which is the root cause ? What happens if this module stop to override the Class of the router.route_provider service ?

🇫🇷France flocondetoile Lyon

What impact of such change if content_moderation is not enabled on a project with micro_site ?

🇫🇷France flocondetoile Lyon

I don't understand why micro_site is involved with the /admin/content page (it only provide site entity and related features, and don't change change the node behaviors). This module don't change this page, and don't change any permissions. You should have same bug without micro_site enabled ?

🇫🇷France flocondetoile Lyon

MR11 is not mergeable.

Also you changed the entity type definition for the Site entity.
So you need to update this definition too for existing sites, with a hook_update_N. See https://git.drupalcode.org/project/commerce/-/blob/3.0.x/modules/order/c... (commerce_order_update_8210()) as an example.

🇫🇷France flocondetoile Lyon

Hope the module works fine on D11, as you tell here. I didn't test it on D11 yet.

🇫🇷France flocondetoile Lyon

So I close this issue. Anyway I plan to release a D11 compatible version of the module soon.

🇫🇷France flocondetoile Lyon

There's no hurry. It can wait if other small bug fixes crop up soon. I'll let you decide.

🇫🇷France flocondetoile Lyon

Yes. Thanks. Forgot there is the 3.1.x branch

🇫🇷France flocondetoile Lyon

Thanks for the reminder

🇫🇷France flocondetoile Lyon

Another patch with the value TRUE for TemplateLanguage this time.

🇫🇷France flocondetoile Lyon

Given the doc (https://dev.mailjet.com/email/guides/send-api-v31) not sure the value of the TemplateLanguage should be the language id, but instead just the value TRUE ?

🇫🇷France flocondetoile Lyon

Hello. Thanks for reporting and the patch. I'll commit it with a slight change.

Production build 0.71.5 2024