Closed (fixed)
Project:
Services
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Jun 2020 at 14:45 UTC
Updated:
30 May 2021 at 17:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nicola85 commentedComment #3
ravimane23 commentedComment #4
himanshu_sindhwani commentedComment #5
nicola85 commentedComment #6
steinmb commentedComment #7
marco.deligios commented@nicola85: è possibile mettersi in contatto con te? marco.deligios at globogis.it
Comment #8
RiddhiKhetani commentedPatch #5 Tested.
1)Adding patch with `core_version_requirement` in services_test.info.yml to make the module D9 compatible.
2)The "services\src\Plugin\ServiceDefinition\AliasGet.php" contains deprecated interface Drupal\Core\Path\AliasManagerInterface that should be fixed as well.
Tested it on D8.9.0 as well as D9, installs successfully after applying the attached patch.
Comment #9
harshit ghediya commentedPatch #8 works for me.
Installed successfully in D9 and works for D8 (8.9.3) as well.
Comment #10
florisg commentedThank you so much for the collaborative effort <3.
I can now use BAT in Drupal 9.
Process in a clean Drupal 9 install:
Now edit composer.json add 'fake core'
Just under `"drupal/core-recommended": "~9",`
and patches section in the "extra" section:
Now you can update lock and use composer normally until this patch is committed to services module.
Comment #11
tyler.frankenstein commentedWould anyone like to be the maintainer of Drupal 9 + Services? Please contact me to discuss.
Honestly, Drupal 8 + Services needs someone to maintain it too.
I am still heavily invested in Drupal 7 + Services and feel confident in maintaining it.
EDIT: I updated the project's maintenance status to indicate the need for a co-maintainer.
Comment #12
kylebrowning commentedSo cool, let me know if anyone needs help!
Comment #13
mybiit commentedHi There.
1) IS there, at last, any latest Service Module released for Drupal 9?
2) If there is none, what are the list of all the affected files that need to be amended?
"services\src\Plugin\ServiceDefinition\AliasGet.php" contains deprecated interface Drupal\Core\Path\AliasManagerInterface. this should be fixed as well. How do you fix it?
Comment #14
benjarlett commentedTo attempt this (installing services in d9.1.0 with latest dev 8.x-4.0-beta5+0-dev I couldn't use the composer method in #10 as it failed:
Problem 1
- The requested package drupal/core (locked at 9.1.0, required as 9.0.5 as 8.9.0) is satisfiable by drupal/core[9.1.0] but these conflict with your requirements or minimum-stability.
Problem 2
- drupal/core-recommended 9.1.0 requires drupal/core 9.1.0 -> satisfiable by drupal/core[9.1.0] but these conflict with your requirements or minimum-stability.
- drupal/core-recommended 9.1.0 requires drupal/core 9.1.0 -> satisfiable by drupal/core[9.1.0] but these conflict with your requirements or minimum-stability.
- drupal/core-recommended 9.1.0 requires drupal/core 9.1.0 -> satisfiable by drupal/core[9.1.0] but these conflict with your requirements or minimum-stability.
- Installation request for drupal/core-recommended ^9.1 -> satisfiable by drupal/core-recommended[9.1.0].
After a bit of thinking I worked out I needed to change the fake core to the current version.
Comment #15
benjarlett commented#13 mybiit - If you apply the patch as I did you can see which files are amended (or just look above at #14)
Comment #16
acnimda commentedHi there,
patch #5 is working and can't apply patch #8.
Applied patch as followed
git apply -v services-drupal9-3154535-8_0.patchresult: trailing whitespace and errors.
Comment #17
gebiss commentedI appreciate the community effort in making this module compatible with Drupal 9. Well done! This module is the only one left that is required in order to run BAT & BEE (Bookings) and that hasn't been done for Drupal 9. Patching and the use of Composer is nor for everyone leaving them with no options for Booking engine on Drupal 9. It would be nice to see Services module for Drupal 9. Is there no way to include the patches in the release of this module for Drupal 9?
Comment #18
tyler.frankenstein commentedI've created the 9.0.x branch, applied #8 to it, committed it, pushed it up, and added a D9 dev release.
I don't know why the automated comment related to the commit is not showing up here.
As a reminder, I am actively maintaining the D7 version of this module. If anyone would like to be the maintainer for D8+ please DM me.
Comment #19
gebiss commentedThanks tyler.frankenstein. I can confirm the 9.0.x-dev version works with no problems on Drupal 9.1.3. Really appreciate it.
Comment #21
jcnventura@tyler.frankenstein You should not have created a 9.0.x version of the module. Can you please give me maintainer access and I can try to untangle this mess.
Comment #22
tyler.frankenstein commented@jcnventura
What should I have done?
Done.
Comment #23
jcnventuraThanks for the maintainer access.
Drupal 9 modules are the same module as Drupal 8 modules. There's no need to create a 9.x version. Only to merge the D9 readiness fixes into the D8 module.
I'll take a look and try to see what I can do. Thankfully, the 9.x version was never made public.
Comment #24
jcnventuraOK. I'm merging this into the 8.x-4.x branch. After reviewing the changes, there's no need to create a new branch just yet.