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 #3239152: Drupal 9 - Deprecated code":
"https://www.drupal.org/files/issues/2021-10-29/deprecated-entity-query-3...",
"Issue #3200711: cannot add an action to a condition ":
"https://www.drupal.org/files/issues/2021-05-15/cannot_add_action-3200711...",
"Issue #3123554: Execution of scheduled tasks is completely broken":
"https://www.drupal.org/files/issues/2021-08-13/business_rules-schedule_t...",
"Issue #3056302: Variables placed in the email body aren't replaced by their actual value":
"https://www.drupal.org/files/issues/2020-01-21/collect_variables-3056302...",
"Issue #3087989: Duplicated condition":
"https://www.drupal.org/files/issues/2020-02-06/duplicate-condition-30879...",
"Issue #3250592: Class RedirectResponse not found":
"https://www.drupal.org/files/issues/2021-11-22/3250592-class-redirect-re...",
"Issue #3202890: 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).":
"https://www.drupal.org/files/issues/2022-04-06/send-email-action-access-...",
"Issue #3027292: HTML format mails showing markup tags":
"https://www.drupal.org/files/issues/2022-04-06/html-format-mails-3027292...",
"Issue #3274409: Show a system message action is not rendred":
"https://www.drupal.org/files/issues/2022-04-11/show-a-system-message-act...",
"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_...",
"Issue #3257814: implode() Error":
"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 #3239152: Drupal 9 - Deprecated code":
"https://www.drupal.org/files/issues/2021-10-29/deprecated-entity-query-3...",
"Issue #3200711: cannot add an action to a condition ":
"https://www.drupal.org/files/issues/2021-05-15/cannot_add_action-3200711...",
"Issue #3123554: Execution of scheduled tasks is completely broken":
"https://www.drupal.org/files/issues/2021-08-13/business_rules-schedule_t...",
"Issue #3056302: Variables placed in the email body aren't replaced by their actual value":
"https://www.drupal.org/files/issues/2020-01-21/collect_variables-3056302...",
"Issue #3087989: Duplicated condition":
"https://www.drupal.org/files/issues/2020-02-06/duplicate-condition-30879...",
"Issue #3250592: Class RedirectResponse not found":
"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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lexsoft created an issue. See original summary.

lexsoft’s picture

Issue summary: View changes
lexsoft’s picture

Issue summary: View changes
Duvan.Slabbert’s picture

+1 on this. I think its time to put some pressure on getting this done.

kazah’s picture

+1 for this update

Webbeh’s picture

Title: Plan for Business Rules 2.0.0-beta2 release » Business Rules 2.0.0-beta2 release plan
Issue summary: View changes
lexsoft’s picture

Issue summary: View changes
lexsoft’s picture

Issue summary: View changes
lexsoft’s picture

Issue summary: View changes
lexsoft’s picture

Issue summary: View changes
lexsoft’s picture

Issue summary: View changes
lexsoft’s picture

Status: Active » Needs review

lexsoft’s picture

Title: Business Rules 2.0.0-beta2 release plan » Business Rules 2.0.0-beta2 release plan D10 compatible
Version: 2.0.0-beta1 » 2.x-dev
Issue summary: View changes
lexsoft’s picture

rcodina made their first commit to this issue’s fork.

rcodina’s picture

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.

rcodina’s picture

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: Automated Drupal 10 compatibility fixes 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.

rcodina’s picture

Status: Needs review » Needs work

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

We need to add a composer.json like in #3286389: Automated Drupal 10 compatibility fixes but adding a dependency with dbug module too. However, this only could led to composer dependency errors until the dbug module has an official Drupal 10 release. Meanwhile, the mglaman/composer-drupal-lenient composer plugin could be used to fix this problem.

rcodina’s picture

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.

rcodina’s picture

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?

lexsoft’s picture

@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"
            },
rcodina’s picture

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.

rcodina’s picture

Version: 2.x-dev » 3.x-dev
rcodina’s picture

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

rcodina’s picture

@lexsoft The contents of patches/business_rules-php_8.1_deprecaation_errors.patch won't be necessary.

rcodina’s picture

All tests ok with latest commits.

rcodina’s picture

Status: Needs work » Needs review
rcodina’s picture

  • rcodina committed 99c8da58 on 3.x authored by lexsoft
    Issue #3261552: Business Rules 2.0.0-beta2 release plan
    
rcodina’s picture

Status: Needs review » Fixed

Gitlab MR has not given credit to me :_(

lexsoft’s picture

@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...
rcodina’s picture

Just added empty commit to fix credit. Just released 3.0.0-beta1.

@lexsoft Thanks for all support!

Status: Fixed » Closed (fixed)

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