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.
Problem/Motivation
We need project_issue.module to run on PHP7+ before we can port it to D8 (or D9)
Proposed resolution
Make it compatible.
Remaining tasks
Static analysis with PHPCompatibilityRun automated tests.Limited local testing- Test once d.o dev sites can run different versions of PHP.
- Fix any remaining problems.
User interface changes
None.
API changes
Hopefully none.
Data model changes
Hopefully none.
Release notes snippet
TBD.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3116822-2.patch | 779 bytes | dww |
Comments
Comment #2
dwwLocal testing is proving somewhat challenging, since I'm running into bugs with non-d.o installs. Fixing all of that is out of scope for the immediate need. Per @hestenet I'm going to wait until we can have d.o dev site sandboxes with different PHP config so I can do more thorough testing there.
So far, static analysis only finds the following:
Note, in local testing, this code isn't being hit. I've got an 'Issue tags' vocab created and configured (vid 2), with the following variable set:
I've confirmed project_issue_menu_alter() is firing, but when I use the autocomplete on the issue tags field on my local issues, project_issue_issue_tag_autocomplete() isn't getting called(). So I can't actually test this with PHP 7.4 easily. But I installed the patch on https://project-drupal.dev.devdrupal.org and project_issue_issue_tag_autocomplete() is happening there and still seems to be sorting tags correctly (most used at the top). And
phpcs --standard=PHPCompatibility
is happy once it's applied.Comment #4
drummI can also confirm this is being hit on a Drupal.org dev site, and works as expected.
Not sure how this might not be called with everything you’ve set up. Is the result of the menu altering making it into the DB?
Comment #5
dwwI tracked it down to a separate non-d.o bug in project_issue with regards to the issue_tags special casing:
#3143386: project_issue_menu_alter() assumes D6-style autocomplete paths
I think we can call this postponed until we have a PHP 7.4 d.o dev site to test on.
Thanks,
-Derek