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.
Follow-up to #2827845: [roadmap] YAML Form 8.x-1.x to Webform 8.x-5.x
Problem/Motivation
The YAML Form module is going to be moving into the 8.x-5.x branch of the Webform module.
The YAML Form module namespace must be converted to use the Webform namespace.
Proposed resolution
Remaining tasks
- Freeze YAML Form 8.x-1.x branch
- Create webform-8.x-5.x branch (in the YAML Form repos)
- Rename files. See: http://stackoverflow.com/questions/9984722/git-rename-many-files-and-fol...
- Rename classes
- Update inline comments
- Remove documentation, which will be moved to D.O.
- Remove all hook_update_N() functions.
- Update menu links
- Update breadcrumbs
Notes
- Sandboxes don't support automated tests.
Renaming
- YamlForm => Webform
- yamlform => webform
- YAML Form => Webform
- Form => Webform
- form => webform
Comment | File | Size | Author |
---|---|---|---|
#5 | rename_yaml_form-2827847-5.patch | 15.21 KB | jrockowitz |
#4 | Test result YAML Form Demo Site.png | 374.54 KB | jrockowitz |
Comments
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedSo I wrote a
drush yamlform-to-webform-convert
command that automatically converts the YAML Form module to the Webform. Making the renaming automated will allow me to continue working on the YAML Form code base while I #2827850: Provide YAML Form 8.x-1.x to Webform 8.x-5.x migration (yamlform_to_webform.module)Below are the commands required to convert the YAML form module to the Webform module
First, you must make the yamlform_to_webform.module visible by adding
$settings['extension_discovery_scan_tests'] = TRUE
to your settings.php....and all tests are passing.
DO NOT USE THE GENERATED WEBFORM MODULE FOR ANYTHING OTHER THAN TESTING.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedAttached is the patch which just needs to pass the automated test and then I will commit it.
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedComment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedI can't get the automated tests to run.