- Issue created by @tushar1
- First commit to issue fork.
- π―π΄Jordan yahyaalhamad Palestine
You can use this currently to install the module with the compatible dependency:
{ "type": "composer", "url": "https://packages.drupal.org/8", "exclude": [ "drupal/views_templates", "drupal/calendar" ] }, { "type": "git", "url": "https://git.drupalcode.org/issue/views_templates-3299458.git" }, { "type": "git", "url": "https://git.drupalcode.org/issue/calendar-3356537.git" }
And in the "require" section:
"drupal/calendar": "3356537-drupal-10-compatible-dev", "drupal/views_templates": "dev-3299458-automated-drupal-10 as 1.1"
- Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - π³π±Netherlands Web-Beest
You forgot a small part. Calendar depends on the core/jquery.farbtastic library as well, which is provided by the deprecated core/color module. So that needs to be replaced and make the contrib Color module a dependency.
You could also add the views_templates module in a lenient repository with the compose drupal lenient plugin, made by @mglaman (https://github.com/mglaman/composer-drupal-lenient)
- Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - π³π±Netherlands Web-Beest
Forgot the drupal/color dependency in the info.yml myself :-/
- Issue was unassigned.
- Status changed to Needs work
over 1 year ago 11:05am 22 May 2023 - π³π±Netherlands Eric_A
Thanks all for working on adding Drupal 10 compatibility to Calendar 1!
Calendar depends on the core/jquery.farbtastic library as well, which is provided by the deprecated core/color module.
The jquery.farbtastic library was provided by core, not by color module. But yes, it is now provided by the contrib color module as color/jquery.farbtastic and it seems like a reasonable idea to depend on contrib color module. Effectively this means that if this code gets merged today, then Calendar 1 will indirectly be depending on Drupal 9.4 going forward, and effectively alpha4 will be the last Calendar 1 release that runs on Drupal 8. Doesn't look like a problem to me, though...
The initial patch converts
debug()
todump()
while #5 convertsdebug()
to$this->messenger->addWarning()
.
Core deprecation message for debug():
deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use dump() instead.
The initial patch uses fully qualified names for the Twig classes, while #5 uses imports. Importing looks like the way to go to me.
Finally:
diff --git a/calendar.info.yml b/calendar.info.yml index 1deda9a..5f4865c 100644 --- a/calendar.info.yml +++ b/calendar.info.yml @@ -4,8 +4,8 @@ description: 'Provides a Views plugin to display views containing dates as Calen dependencies: - calendar:calendar_datetime - drupal:views + - drupal:color - views_templates:views_templates
diff --git a/calendar.libraries.yml b/calendar.libraries.yml index fc5f265..4fe1158 100644 --- a/calendar.libraries.yml +++ b/calendar.libraries.yml @@ -3,7 +3,7 @@ calendar.colorpicker: js: js/calendar_colorpicker.js: {} dependencies: - - core/jquery.farbtastic + - color/jquery.farbtastic
I think we should nstick with alphabetical order. It's the way to go to easily find stuff and to reduce chances on merge conflicts. (And latest Coder now even has a rule for this, if I'm not mistaken.)
- π³π±Netherlands Eric_A
Core deprecation message for debug():
deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use dump() instead.
Actually, using dump() seems problematic outside of tests, given that symfony/var-dumper is not a dependency of drupal/core itself.
- π³π±Netherlands Eric_A
One more ordering issue:
diff --git a/composer.json b/composer.json index 3421c73..432f446 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ "source": "https://git.drupalcode.org/project/calendar" }, "require": { - "drupal/core": "^8 || ^9", - "drupal/views_templates": "^1.1" + "drupal/core": "^8 || ^9 || ^10", + "drupal/views_templates": "^1.1", + "drupal/color": "^1.0" } }
- π³π±Netherlands Web-Beest
Updated the patch to change the order of the dependencies in composer.json and the info.yml file.
- Status changed to RTBC
over 1 year ago 1:47pm 22 May 2023 - Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - π³π±Netherlands Eric_A
Thank you!
I think it's indeed better to use the available messenger than using the dump() developer method which might not be available. The mesenger is already in use a couple of lines later at the end of the same render() method.
Wether it should be an error or a warning, could be a matter of taste here.Also adding some related issues for Calendar 1 and Calendar 2.
- π³π±Netherlands Eric_A
Wait a minute... The Twig replacements might rule out Drupal 8 anyways... If so we should do so explicitly in info.yml en composer.json, because Drupal 8 then no longer conflicts because of a dependency, but because of of our own code.
- πΊπΈUnited States nicxvan
Views template is now compatible with Drupal 10 so this ticket can now be worked on.
- πͺπΈSpain Carlos Romero
Carlos Romero β made their first commit to this issueβs fork.
- last update
over 1 year ago Build Successful - last update
over 1 year ago CI aborted - Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - @nicxvan opened merge request.
- last update
over 1 year ago Build Successful The last submitted patch, 11: 3356537-8.patch, failed testing. View results β
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - πΊπΈUnited States nicxvan
I made some coding standard fixes the tests were complaining about, I'm not entirely sure the list change is correct.
- last update
over 1 year ago PHPLint Failed - Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - Status changed to Needs review
over 1 year ago 1:16pm 4 August 2023 - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - πΊπΈUnited States nicxvan
I replaced farbtastic since it's removed in Drupal 10. I used the same process the new color module uses: https://git.drupalcode.org/project/color/-/blob/2.x/color.libraries.yml
- last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - Status changed to Needs work
over 1 year ago 2:17pm 7 August 2023 - πΊπΈUnited States nicxvan
There is an issue with month pagers with this implementation
- Status changed to Needs review
over 1 year ago 2:22pm 7 August 2023 - πΊπΈUnited States nicxvan
Scratch that last comment, when I was testing I had rolled back a patch that fixes the issue I was experiencing. Re applying that patch I was able to complete testing.
Patch here: https://www.drupal.org/project/calendar/issues/2858086 π view_args always contains the current date when using ajax pager Postponed: needs info
Moving back to needs review.
- πΊπΈUnited States nicxvan
I am also undoing my last change since it's a pre existing bug and is resolved in another commit.
- last update
over 1 year ago Build Successful - Open on Drupal.org βCore: 9.5.x + Environment: PHP 7.4 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago Build Successful - Status changed to RTBC
over 1 year ago 8:03pm 7 August 2023 - π©πͺGermany Anybody Porta Westfalica
Drupal 9 EOL is close. Any active maintainer to merge this and tag a new release?
-
joelpittet β
committed ababcfa4 on 8.x-1.x authored by
nicxvan β
Issue #3356537 by nicxvan, Web-Beest, Tushar1, Eric_A: Drupal 10...
-
joelpittet β
committed ababcfa4 on 8.x-1.x authored by
nicxvan β
- Status changed to Fixed
over 1 year ago 1:05pm 8 August 2023 - π¨π¦Canada joelpittet Vancouver
Thanks for pushing this along @nicxvan and all the others for helping. I've committed this to dev with a release coming in a few.
Automatically closed - issue fixed for 2 weeks with no activity.