Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2020 at 22:43 UTC
Updated:
28 Apr 2020 at 07:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirComment #3
mbovan commentedThis should not be needed anymore.
An extra line in composer.json.
Comment #4
mbovan commentedAddressed #3.
Comment #5
berdirTrue, I suppose we could completely skip the composer.json completely then now, that cleanup is even more unrelated now ;)
Comment #6
ankush_03Added new patch please review !
Comment #7
ankush_03Comment #8
berdirThat is not correct, that has additional wrong changes and re-adds the composer.json change.
Comment #9
ankush_03Changes added.
Comment #10
abhisekmazumdarComment #11
mbovan commentedThis all can be removed now.
This should not be needed since we are not using entity type manager in this class.
Comment #12
shimpyI have uploaded a patch with few changes. Review.
Comment #13
mbovan commentedWe still need replacement for
entity.managertoentity_type.managerintroduced in #1.Comment #14
shimpyI have corrected the entity.manager to entity_type.manager.
and other issues well. Hope this will work.
Comment #15
berdirNow you removed the composer.json completely. You should just remove the changes to it, so it doesn't exist in the patch, but remains as-is in the module.
Comment #16
shimpyThanks all for reviewing my patches. Giving it one more try.
Comment #17
berdirNow we have some changes in the file again, what I mean is this patch.
To get that, I applied your patch, then git checkout HEAD composer.json and then created a new patch.
Comment #18
mbovan commentedI think we are good with #17.
Comment #19
berdirTurns out there is at least one deprecation hiding in there, and it's one that requires 8.8. Drupal::service() calls is something that drupal-check currently doesn't find. That's where test would be handy ;)
Comment #20
berdirAnd that means we need to remove the core: 8.x key completely to ensure older versions aren't compatible anymore.
Comment #21
berdirOne more thing, apparently the arguments for replace() in twig have changed to an array, but it is anyway much easier to use the clean_css filter that is provided by core.
Comment #22
svenryen commentedThanks for fixing this. I'll take a look and review this week.
Comment #23
svenryen commented@berdir Won't this change make it impossible to use the module with Drupal versions below 8.8? What's the general advise on this? Should we bump the major version to indicate it's a change that breaks backwards compatibility?
Comment #24
berdirYes, it will.
It's up to you when to commit that, I've committed patches that require 8.8 now to token, pathauto, redirect, paragraphs and more, so at least 4 of the top 10 modules now require 8.8 already. I didn't do releases yet, that would still allow me to easily do a security release on top of the previous release.
And no, requiring a min version of a dependency is not a BC break per semver, that's a common and ongoing process that will continue over the next years. Eventually you're require 9.2 or something for some new feature that you want to rely on.
You could do that if you want to, but I'd advise against it at least for now, as semver for contrib should be enabled in the next weeks on d.o, meaning you could do 2.x.y instead of 8.x-2.x. But I still think this isn't a reason to do that, only if you want to break your own API's.
Comment #26
svenryen commentedThanks for clearing that up. WIth D8.7 being unsupported I think we can surely push this fix. Thanks for the through work all!
Comment #27
berdirOne clarification. 8.7 still gets security updates until 8.9/9.0 gets released, but there's no rule or even guideline on how long contrib maintainers still have to support it with their modules. But IMHO, it's perfectly fine to drop support for that now, I think it's fair to expect that people need to update core if they want to update their contrib modules to the latest version as well, and composer will ensure that it does not install an incompatible version and people doing it manually with an old core version will get an error in Drupal.
The only awkward situation is if you would need to release a security update, then it would be nice if users that are still on a core version with security update could update as well, that's why I'm waiting a bit with doing new releases atm. But even then, there's no rule right now that a contrib security update needs to support all core versions that still have security support. This will be easier with semver, then we can do a 2.1 release and later on a 2.0.1 and 2.1.1 security update if we have to.
Comment #30
gábor hojtsyThanks for all the great work. Opened #3131515: Create Drupal 9 compatible release of EU Cookie Compliance.