Problem/Motivation

As per drush documentation, Drush 9 should be used for Drupal core >= 8.4.x. Considering we have stable core version 8.6.x and avoid composer depenedecy issues (as new modules require drush 9), we have to port Drush commands to version 9

Proposed resolution

Since Drush 8 commands are not compatible with Drush 9, we have to port them. This Blog post has few automated steps to start with.

Remaining tasks

1. Port (webform_devel, webform_scheduled_email modules)
2. Test
3. Review

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

TBC

Comments

vijaycs85 created an issue. See original summary.

vijaycs85’s picture

Issue summary: View changes
jrockowitz’s picture

StatusFileSize
new1.24 KB

Most of the webform's drush coomands have been port to drush 9.0. Attached is the only missing command.

jrockowitz’s picture

Status: Active » Needs review
vijaycs85’s picture

Title: Support Drush 9 » Update Drush 9 Commands

Thanks for the quick reply @jrockowitz. I have few questions/comments:

1. WebformDevelCommands has wfdcu but it's not part of webform_devel.drush.inc
2. Could we update the docblock here?

/modules/webform_devel/src/Commands/WebformDevelCommands.php
/**
 * Webform scheduled email commands for Drush 9.x.
 */
class WebformDevelCommands extends DrushCommands {

3. The method names are still with underscores instead of camelCase. This is applicable for existing commands as well.

+++ b/modules/webform_devel/src/Commands/WebformDevelCommands.php
@@ -63,4 +64,21 @@ class WebformDevelCommands extends DrushCommands {
+  public function drush_webform_devel_reset() {
jrockowitz’s picture

1. wfdcu is only used by me. Not sure it needs to backported to drush 8.
2. Please roll a new patch with Docblock changes.
3. I would rather we keep using drush_webform_devel_reset() is drush 9 commands so that it easier sync the drush 8 command.

I suspect we are going to be supporting drush 8 for another year or two.

vijaycs85’s picture

StatusFileSize
new1.38 KB
new528 bytes

#6.1 - OK
#6.2 - Done
#6.3 - We could use @see to reference each other if we want to make sure we keep both versions' updated. But I leave that with you :)

jrockowitz’s picture

For .3 please add the @see reference to the webform devel and scheduled email drush commands.

The Webform module's Drush 8 and 9 commands are dynamically generated so they don't need an @see reference

vijaycs85’s picture

StatusFileSize
new4.35 KB
new3.65 KB

Thanks @jrockowitz

1.

For .3 please add the @see reference to the webform devel and scheduled email drush commands.

Not sure where & how drush_webform_scheduled_email_cron_validate is used. I couldn't find any reference. So I didn't touch it. Others are updated.

2.

The Webform module's Drush 8 and 9 commands are dynamically generated so they don't need an @see reference

👍🏽

jrockowitz’s picture

StatusFileSize
new3.39 KB
new3.79 KB

I want to keep the drush command naming convention AS-IS since we support Drush 8 & 9.

vijaycs85’s picture

I want to keep the drush command naming convention AS-IS since we support Drush 8 & 9.

Sorry, I misunderstood your reply on #8.3.

+1 to RTBC.

  • jrockowitz committed 3767708 on 8.x-5.x
    Issue #3020129 by vijaycs85, jrockowitz: Update Drush 9 Commands
    
jrockowitz’s picture

Status: Needs review » Fixed
vijaycs85’s picture

Yay! Thanks.

Status: Fixed » Closed (fixed)

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