Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm leveraging commerce_product and commerce_price and just saw that rules.module wants to be on board with no invitation!
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce-product_price_no_rules.patch | 1.27 KB | jonhattan |
commerce-product_no_rules.patch | 900 bytes | jonhattan | |
Comments
Comment #1
jonhattanI don't think price needs to depend on rules neither.
Comment #2
JulienD CreditAttribution: JulienD commentedHi,
That certainly because Rules is needed by the commented code at the bottom of the commerce_product.test file. Rszrama decided to comment this big chunk of code in order to rewrite it and maybe we should do the same with the Rules dependency.
For the price module I think this dependency is useful.
Comment #3
rszrama CreditAttribution: rszrama commentedThe original patch satisfies the needs of the tests by making the test helper module depend on Rules, so no worries there. Re: JulienD's concerns, the primary use cases involving the Price module will involve Rules, but technically speaking there's no reason to force the dependency since we never directly invoke the API. We just passively expose Rules integration points in the event that Rules is present on a site.
Committed.