Business Rules 2.0.0-beta2 release plan D10 compatible

Created on 31 January 2022, over 2 years ago
Updated 9 February 2024, 5 months ago

Updates

Merged all patches into a merge request and added the D10 compatibility fixes.

Problem/Motivation

The intent of this issue is to help the maintainer(s) coordinate community efforts in the creation of a stable release. Community involvement is only intended as a suggestion; it is up to maintainers to ultimately decide the creation of, and what goes into, a stable release. If you are not interested in using this issue, please mark the issue as Fixed or Closed (works as designed).

There are many benefits to publishing a stable release for a module.

Release-blocker issues

"Issue 🐛 Drupal 9 - Deprecated code Fixed ":
" https://www.drupal.org/files/issues/2021-10-29/deprecated-entity-query-3... ",
"Issue 🐛 cannot add an action to a condition Fixed ":
" https://www.drupal.org/files/issues/2021-05-15/cannot_add_action-3200711... ",
"Issue 🐛 Execution of scheduled tasks is completely broken Fixed ":
" https://www.drupal.org/files/issues/2021-08-13/business_rules-schedule_t... ",
"Issue 🐛 Variables placed in the email body aren't replaced by their actual value Fixed ":
" https://www.drupal.org/files/issues/2020-01-21/collect_variables-3056302... ",
"Issue 🐛 Duplicated condition Fixed ":
" https://www.drupal.org/files/issues/2020-02-06/duplicate-condition-30879... ",
"Issue 🐛 Class RedirectResponse not found Needs work ":
" https://www.drupal.org/files/issues/2021-11-22/3250592-class-redirect-re... ",
"Issue 🐛 Notice: Trying to access array offset on value of type null in Drupal\business_rules\Plugin\BusinessRulesAction\SendEmail->getSettingsForm() (line 118 of modules/contrib/business_rules/src/Plugin/BusinessRulesAction/SendEmail.php). Fixed ":
" https://www.drupal.org/files/issues/2022-04-06/send-email-action-access-... ",
"Issue 🐛 HTML format mails showing markup tags Fixed ":
" https://www.drupal.org/files/issues/2022-04-06/html-format-mails-3027292... ",
"Issue 🐛 Show a system message action is not rendred Fixed ":
" https://www.drupal.org/files/issues/2022-04-11/show-a-system-message-act... ",
"Issue 🐛 Variable evaluation is skipped when multiple events are processed within a single request Fixed ":
" https://www.drupal.org/files/issues/2022-04-12/business_rules-variables_... ",
"Issue 🐛 implode() Error Fixed ":
" https://www.drupal.org/files/issues/2022-01-21/implode-error-3257814-5.p... ",

Good-to-fix issues

Above and beyond tasks

  • Create issue fix list for stable release using the grn tool .

Remaining tasks

  • Establish a list of release-blockers and 'good-to-fix' issues for a stable release.
  • Resolve above issues blocking the release of a stable release.
  • Craft changelog for new release.
  • Create new release.

Do you have resources you'd like to contribute to this template? Have feedback on the stable release request issue template? We want your feedback: #3239062: 'Stable Release Request' Issue Template

Original issue summary

Problem/Motivation

@colan, would it be possible to commit some patches to --dev and possibly in the feature tag a 2.0.0-beta2 release? Thanks for considering.

Proposed resolution

"Issue 🐛 Drupal 9 - Deprecated code Fixed ":
" https://www.drupal.org/files/issues/2021-10-29/deprecated-entity-query-3... ",
"Issue 🐛 cannot add an action to a condition Fixed ":
" https://www.drupal.org/files/issues/2021-05-15/cannot_add_action-3200711... ",
"Issue 🐛 Execution of scheduled tasks is completely broken Fixed ":
" https://www.drupal.org/files/issues/2021-08-13/business_rules-schedule_t... ",
"Issue 🐛 Variables placed in the email body aren't replaced by their actual value Fixed ":
" https://www.drupal.org/files/issues/2020-01-21/collect_variables-3056302... ",
"Issue 🐛 Duplicated condition Fixed ":
" https://www.drupal.org/files/issues/2020-02-06/duplicate-condition-30879... ",
"Issue 🐛 Class RedirectResponse not found Needs work ":
" https://www.drupal.org/files/issues/2021-11-22/3250592-class-redirect-re... ",

This is what I use in production now. We can add more to this list.

🌱 Plan
Status

Fixed

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom lexsoft London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom lexsoft London
  • 🇬🇧United Kingdom lexsoft London
  • 🇬🇧United Kingdom lexsoft London
  • First commit to issue fork.
  • 🇪🇸Spain rcodina

    I've just fixed the following error reported to me by upgrade_status module after applying MR patch.

    Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked.

  • 🇪🇸Spain rcodina

    Just fixed the following error which happens when editing entity fields of certain types: link, color, etc:

    Fix error: Typed property Drupal\field\Entity\FieldConfig::$original must not be accessed before initialization in business_rules_field_widget_single_element_form_alter() (line 293 of modules/contrib/business_rules/business_rules.module)

    I've taken the code to fix it from #3286389 patch (MR13). In that issue, they use the same piece of code multiple times in business_rules.module but I only applied it in the line 293 because this line was the only one with property_exists checking. I've been doing some testing and in the other cases the access to original property doesn't fail.

  • Status changed to Needs work 6 months ago
  • 🇪🇸Spain rcodina

    Just enabled testing. All testing errors needs to be fixed.

  • Pipeline finished with Failed
    6 months ago
    Total: 1037s
    #69115
  • 🇪🇸Spain rcodina

    As expected, the latest commit didn't pass the composer validation because dbug hasn't an official D10 release yet. We can use lenient on local environment but I don't know if GitlabCI can be configured to use it. We need to specify this dependency to pass all the tests.

  • 🇪🇸Spain rcodina

    I'm just rerunning pipeline again since we already have a Drupal 10 compatible version of "dBug for Drupal".

    @lexsoft Which issues are included on your first commit of MR15? Are the ones listed under Proposed resolution?

  • Pipeline finished with Failed
    6 months ago
    Total: 109298s
    #69119
  • 🇬🇧United Kingdom lexsoft London

    @rcodina,

    The MR15 includes all of this:

    "drupal/business_rules": {
                    "Issue #3239152: Drupal 9 - Deprecated code": "https://www.drupal.org/files/issues/2021-10-29/deprecated-entity-query-3239152-4.patch",
                    "Issue #3200711: cannot add an action to a condition": "https://www.drupal.org/files/issues/2021-05-15/cannot_add_action-3200711-29.patch",
                    "Issue #3123554: Execution of scheduled tasks is completely broken": "https://www.drupal.org/files/issues/2021-08-13/business_rules-schedule_task_execution_broken-3123554-11.patch",
                    "Issue #3056302: Variables placed in email body not being replaced with actual value": "https://www.drupal.org/files/issues/2020-01-21/collect_variables-3056302-11.patch",
                    "Issue #3087989: Duplicate condition": "https://www.drupal.org/files/issues/2020-02-06/duplicate-condition-3087989-3.patch",
                    "Issue #3250592: Class RedirectResponse not found": "https://www.drupal.org/files/issues/2021-11-22/3250592-class-redirect-response-missing.patch",
                    "Issue #3202890: Notice: Trying to access array offset on value of type null": "https://www.drupal.org/files/issues/2022-04-06/send-email-action-access-array-offset-on-value-of-type-null-3202890-3.patch",
                    "Issue #3027292: HTML format mails showing markup tags": "https://www.drupal.org/files/issues/2022-04-06/html-format-mails-3027292-19.patch",
                    "Issue #3095392: Set multiple fields values": "https://www.drupal.org/files/issues/2022-04-11/set-multiple-fields-value-action-3095392-11.patch",
                    "Issue #3067571: Variable evaluation is skipped when multiple events are processed within a single request": "https://www.drupal.org/files/issues/2022-04-12/business_rules-variables_evaluation_skipped-3067571-13.patch",
                    "Issue #3257814: implode() Error": "https://www.drupal.org/files/issues/2022-01-21/implode-error-3257814-5.patch",
                    "Issue #3274409: Show a system message action is not rendred": "https://www.drupal.org/files/issues/2022-04-11/show-a-system-message-action-is-not-rendred-3274409-2.patch",
                    "Issue #3135986: Only build matrix for flowchart when needed": "https://www.drupal.org/files/issues/2020-05-12/business_rules-lazy-matrix-3135986-2.patch",
                    "Issue #3277915: Exception with flowchart on condition when used with commerce_br module": "https://www.drupal.org/files/issues/2022-05-04/exception-flowchart-matrix-position-not-empty-3277915-3.patch",
                    "Issue #3283637: You have requested a non-existent service business_rules.processor": "https://www.drupal.org/files/issues/2022-06-01/requested-non-existent-service-business-rules-processor-3283637-2.patch",
                    "Issue #3314230: PHP 8.1": "https://www.drupal.org/files/issues/2022-10-07/business_rules-php81_deprecation_error-3314230-2.patch",
                    "Issue #3298781: PHP 8.1": "https://git.drupalcode.org/project/business_rules/-/merge_requests/9.diff",
                    "Issue #3389853: Drupal 10 Compatible": "https://www.drupal.org/files/issues/2023-10-16/Drupal10_Compatible_business_rules-3389853.patch",
                    "Local Patch: resolve all D10/PHP 8.1 deprecation errors": "patches/business_rules-php_8.1_deprecaation_errors.patch"
                },
    
  • 🇪🇸Spain rcodina

    Thanks for the list @lexsoft! I'm pushing all linked issues in a new branch 3.x one by one so I can give the deserved credit to all contributors.

  • 🇪🇸Spain rcodina

    @lexsoft Could you please share me the contents of patches/business_rules-php_8.1_deprecaation_errors.patch?

  • 🇪🇸Spain rcodina

    All tests ok with latest commits.

  • Status changed to Needs review 5 months ago
  • Status changed to Fixed 5 months ago
  • 🇬🇧United Kingdom lexsoft London

    @rcodina fantastic work! Going to test this the following week.

    • rcodina committed 5e0aced4 on 3.x
      Issue #3261552 by rcodina, lexsoft: Business Rules 2.0.0-beta2 release...
  • 🇪🇸Spain rcodina

    Just added empty commit to fix credit.

    @lexsoft Thanks for all support!

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

Production build 0.69.0 2024