- Issue created by @project update bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module β these changes make this module compatible with Drupal 11! π
Therefore these changes update theinfo.yml
file for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot β to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-127659These packages were used to generate the fixes:
- drupal/upgrade_status: 4.1.0
- mglaman/phpstan-drupal: 1.2.9
- palantirnet/drupal-rector: 0.20.1
- Status changed to Active
9 months ago 2:08pm 11 September 2024 - π¨π¦Canada deviantintegral
Drupal now has a machine name field for options items. However, it kind of makes the experience worse, because it means that generated option keys will always use underscores which can have readability issues in URLs. We likely want to change how this module works so it alters the machine name field to always use dashes.
- Assigned to mmenavas
- πΊπΈUnited States mmenavas
Thanks for the feedback @deviantintegral. I think this module is not working anymore as of Drupal 10.3 because hook_form_field_storage_config_edit_form_alter was deprecated β in 10.2. I am assigning this issue to myself so I can fix it for Drupal 10.3+ and 11+. I think the code changes will call for a major version bump on the next release.
- πΊπΈUnited States mmenavas
Since the 1.0.x branch was not compatible with 10.3+, I created a new branch (2.0.x) to include Drupal 10.3+ and 11 compatibility. Below is the summary of changes for the 2.0.0 release:
Bugfixes:
- Alterfield_config_edit_form
instead offield_storage_config_edit_form
as the latter was deprecated in Drupal 10.2. (see https://www.drupal.org/node/3386675 β ).
- Override machine name form element default behavior by using hyphens instead of underscores as the replacement for non alphanumeric characters.
- Updated preg_match call to ensure second parameter is always a string.New Features:
- Add functional (javascript) test.
- Add gitlab CI integration.
- Add Tugboat preview. - πͺπΈSpain marcoscano Barcelona, Spain
Thanks for working on this! I left a review, nothing super blocking, but it would be good to check if we can improve the test without the waiting calls.
Also, not sure if I'm seeing things right, but maybe the MR is being targeted against1.x
(instead of the 2.x new branch)
Thanks! - πΊπΈUnited States mmenavas
Thanks for the thorough review @marcoscano! I pushed code changes yesterday to address your feedback. Please let me know if I missed anything.
-
marcoscano β
committed 5cc7367a on 2.0.x authored by
project update bot β
Issue #3435245 by mmenavas, marcoscano, deviantintegral: Drupal 11...
-
marcoscano β
committed 5cc7367a on 2.0.x authored by
project update bot β
- πͺπΈSpain marcoscano Barcelona, Spain
Thanks @mmenavas! Looks great π
I went ahead and created https://www.drupal.org/project/url_friendly_options/releases/2.0.0 β after merging. - πΊπΈUnited States mmenavas
Excellent! Thank you very much for making the release.