Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMCL-101: Regenerate civix file and Base upgrader class #23

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

erawat
Copy link
Member

@erawat erawat commented Feb 19, 2021

Overview

This PR fixes is to updates civix file and an upgrader base class. The base class and civix file are generated automatically by running civix generate:upgrader
The reason for regenerating the civix file and base upgrader class because CiviCRM changed the way they handle warning for using a deprecated function. See this PR .

The changed will always throw use deprecated warning if the deprecated function is used in anywhere, for example, Drupal module, CiviCRM extension. This would not have an issue we install the extension / module via user interface. However, when we use Drush site-install command to install the Drupal site that ship with a Drupal profile that install the extension when creating a site.

Any module or extension that use CiviCRM's deprecated function in the installation hook, upgrade hook, the E_USER_DEPRECATED warning will throw during installation, but Drush handles deprecated messages as an error rather than a warning.

Since the old civix file and Base class are using the deprecated functions, we will also receive the error duration installation, for this reason, the deployment will always fail. This PR fixes this.

Note

PR for fixing this issue in Drush has been created and merged to Druah 8.x drush-ops/drush#4565, but we do not have a timescale for new Drush version to release, thus we fixed the extension.

@erawat erawat merged commit bb920ed into master Feb 19, 2021
@erawat erawat deleted the COMCL-101-regerate-civix-and-base-upgrader branch February 19, 2021 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants