Closed (fixed)
Project:
Feeds Extensible Parsers
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2020 at 09:20 UTC
Updated:
16 Jul 2024 at 12:18 UTC
Jump to comment: Most recent
Comments
Comment #2
tormiComment #3
megachrizI looked at the requirements of the library and I saw that it requires at least PHP 7.1:
The D7 version of Feeds Extensible Parsers current minimum PHP version is 5.4. So I'm not sure if we should replace the library in the D7 version at all. An other option is finding a way to support both flow/jsonpath and softcreatr/jsonpath. If that's not possible, I think we would need to create a new major release, because especially sites that are still on D7 are not guaranteed to be able to run on PHP 7.1. Because they may have modules installed that aren't made compatible with that PHP version yet.
Comment #4
SoftCreatR commented@MegaChriz
composer require softcreatr/jsonpath:"^0.5 || ^0.7"The version 0.5.2 supports PHP 5.4 - 7.0, while the version 0.7 supports PHP 7.1 and newer (tested up to PHP 8.0). When requiring
"^0.5 || ^0.7", Composer automatically picks the correct JSONPath version, depending on the PHP version used.Comment #5
tormiThe main problem for me is this inaccurate error message, even if I used Composer &
composer/installersto add thesoftcreatr/jsonpathas a library in my Drupal setup:Comment #7
tormihttps://git.drupalcode.org/project/feeds_ex/-/merge_requests/16 is WIP, but I can now install
feeds_exwithcomposer_manager&softcreatr/jsonpathwhen using it + hackish patch from 3170173-2:- https://git.drupalcode.org/project/feeds_ex/-/merge_requests/16.diff
- https://www.drupal.org/files/issues/2020-09-10/3170173-2.patch
I think we should try to reduce the dependency checks & external dependencies defined in
feeds_ex.installand replace them withcomposer_manager.Comment #8
megachriz@tormi
How much I like to use one install method and make things simpler, I think we shouldn't do that as that could break people's existing workflows. Not all Drupal 7 sites are using Composer, I would even think a minority of the D7 sites do, though I have no data to back that up. So I think we shouldn't enforce people to use Composer Manager. There are also other methods of using Composer with Drupal 7 so enforcing Composer Manager would possibly create conflicts for these cases.
So I think the required steps are:
feeds_ex_update_7102().Comment #9
luigimannoni commentedJust dropping a small note that the 0.7 version is not compatible with php 8
Comment #11
benjifisherI updated the MR for Comment #9. I am in the process of upgrading my D7 site to PHP 8.
If I have a chance, I will address Comment #8.
P.S. I am using the version constraint recommended at https://github.com/SoftCreatR/JSONPath#installation.
Comment #12
megachrizI've updated the instructions for installing the library. Also included a fix for #3260725: Calling JSONPath::data() is deprecated, please use JSONPath::getData() instead.
I'm also requiring drupal/feeds:^2.0 in composer.json to see if that fixes the "Unable to generate test groups" error.
Comment #13
joelpittetThis worked like a charm, I'm tempted to commit this and add a release, any objections?
Comment #14
joelpittetAt the least this is RTBC from my standpoint
Comment #15
ceonizm commentedHello,
As the need of migrating to php 8.2 becomes more urgent with the release of Debian 12 and others distributions
Would it be possible to accept this MR and make a new tag in order to allow migrations ?
Thanks in advance
Comment #17
megachrizI looked at the code changes again. These look good to me and because others reported that these changes are working, I merged the code!
Comment #19
ceonizm commentedHello @MegaChriz,
Would it be possible to do a new release of the module in order to avoid using dev version in our composer.json ?
Comment #20
megachriz@ceonizm
I could do that. However, I see there's now also a 0.9.x release of softcreatr/jsonpath. Would it be an issue that a new feeds_ex D7 release is not officially compatible with the latest softcreatr/jsonpath?
Comment #21
megachrizAccording to #3442544: Support version 0.9.x of softcreatr/jsonpath there were no breaking changes in 0.9 other than dropping support for older PHP versions. I shall open a new issue.
Comment #22
megachrizOpened #3461768: Support version 0.9.x of softcreatr/jsonpath
Comment #23
megachrizBah! DrupalCI is gone, I have to add GitLab CI support for the D7 version first... #3461771: Add GitLab CI