Problem/Motivation
With the coming deprecation of Toolbar (#3484850: [meta] Tasks to deprecate Toolbar module) and release of Drupal 11.4 and Drupal 12, we should create a new major release (version 4) which will be compatible with Drupal 12.
So this issue's regular Admin Toolbar tickets are postponed until the "Transfer Toolbar tasks" below are solved, after the Toolbar module is ready in contrib.
A very likely scenario is that the 3.x branch will keep supporting the same versions: 9.5+, 10 and 11, while a new 4.x major branch will have to be created to support 11.4 and 12, due to new Composer constraints:
- 3.6.x → D9.5 / D10 / D11.0–11.3 (EOL, with last release of 3.6.4 to fix old versions of drupal currently broken with 3.6.2)
- 3.7.x → D10.3 / 11+ (release branch, cherry-picking/backporting resolved issues from 3.x)
- 3.x → D10.3 / D11.4+ / D12 (active / current branch with D12 support, first release being 3.8.0)
Why three minors?
Drupal core recently updated the 'provide' method for toolbar for Drupal 10.6 and 11.4. This conflicts with earlier versions of Drupal 10 and 11, which breaks compatibility on otherwise relatively recent sites. The 3.6 and 3.7 minor versions brings back the 'provide' functionality for these earlier versions of drupal, while the 3.8 version drops this for the core version and adds Drupal 12 support. Dependency lookup is automatic with the info.yml files: for D12, it'll bring in the contrib toolbar module. For D10 and 11 it'll use core.
We should be able to come back soon to the regular Admin Toolbar issues, when the contrib Toolbar is ready for use.
But as usual, these issues are for refactoring of the code, as well as adding new features, and this Meta issue gathers the relevant issues.
Steps to reproduce
- See that Toolbar is moving from Drupal core to contrib in Drupal 12.
- See that the code could be improved, and new features added.
Proposed resolution
Planned issues:
Transfer Toolbar tasks
Transfer ownership of Toolbar module project and set up Composer namespace to be drupal/toolbar:
- #3607179: Applying for 'Maintainer' role for the project Toolbar
- #3607814: Reserve the Composer namespace drupal/toolbar for this project
- Gitlab issue #3567861: Ensure that Toolbar does not get special core treatment
Regular Admin Toolbar issues
- #3636597: Fix highlight colour in search
- #3594696: Add support for Drupal 12
- #3565209: [Meta] Drop support for Drupal 10.2 and below
- #3553200: Add support for compact display options
Feel free to add issues :)
Done:
- #3634150: Tools menu link with route <front> becomes the active link on the front page since core #1578832
- #3630983: Cannot update to latest 11.3.x or 10.6.x core version due to impossible drupal/toolbar dependency
- #3629740: Views and module dropdown labels remain English across interface languages
- #3627551: Fix Gitlab validation jobs for next minor (11.x) and LTS build (9.5.x)
- #3624439: Guard Admin Toolbar Search JavaScript when the search tab is removed
- #3611568: ExtraLinks::getDerivativeDefinitions() docblock incompatible with DeriverInterface after Drupal 11.4.0
- #3609437: Enable Gitlab CI security scans
- #3590488: Unused variable in SearchLinks.php
- #3586889: Flushing caches inside an update hook is dangerous and can lead to data integrity problems (as well as poor update performance)
- #3573411: Do not add field_ui related views_ui menu link when module is not enabled
- #3571169: Two search inputs display when using Gin theme
- #3570717: Make configuration schema fully validatable
- #3570714: Convert constants classes to enums
- #3570710: Use autowiring for services and controllers
- #3569351: Drop support for Drupal 10.2 and below
- #3567243: Feature idea: optional confirmation form for flushing caches
- #3566416: Import of strings skipped due to malformed HTML tag <br/>
- #3565861: Add support for Ctrl + click in Search, or add as setting option?
- #3564708: Make enable/disable settings less ambiguous
- #3554736: Admin Toolbar Links Access Filter (Deprecated)
- #3549068: Look up module name as well, when searching with Admin Toolbar Search
- #3536457: Provide extra links for the Automatic Updates module
- #3532958: Make obvious when toolbar search returning no results
- #3529217: Determine and implement JS dependency approach
- #3528054: $original_link is null regression
- #3471725: Remove check for user 1 in admin_toolbar_links_access_filter_filter_non_accessible_links
- #3385337: admin_toolbar_tools more than doubles number of queries needed during site-install degrading performance
Possibly postponed issues:
Nice to have issues:
- #3526123: <thead> element and CKEditor toolbar hang, when Toolbar is hidden
- #3520700: Update the project page
- #3442725: Focus indication clashes with active tab indication
- #3426402: zindex issue between admin toolbar and ckeditor 5
- #3286466: Tabbing order does not satisfy 508 accessibility requirements
- #3087173: Allow shortcut keys to be configurable
Feel free to add issues :)
Remaining tasks
1 - Create release notes for each branch:
- #3571169: Two search inputs display when using Gin theme: Add API changes for Admin Toolbar Search.
- More changes from issues.
Comments
Comment #2
dydave commentedAdded structuring key BC breaking issue.
Comment #3
dydave commentedStacking up potential issue candidates. 😊
Comment #4
ressaLooks good! Just adding the compact issue.
Comment #5
ressaOn an Admin Toolbar related note, Toolbar will soon need a new home, after #3484850: [meta] Tasks to deprecate Toolbar module. Perhaps you could be interested in becoming a maintainer @dydave? 🙂 It could help facilitate fantastic changes and improvements, by allowing optimal coordination between the two projects.
Comment #6
dydave commentedTotally!! Super nice @ressa!
Thanks a lot! 🙏
In fact, there is already a ticket I was pushing in the core Toolbar module, see:
In AT: #3426402: zindex issue between admin toolbar and ckeditor 5
In Toolbar: #3410871-24: The CKEditor 5 toolbar is overlapping with the Admin toolbar .... looks like no one is actually going to answer anymore 😅
How would I go about asking to become maintainer for the Toolbar module?
I'll post a quick message in the ticket you indicated to let them know I would be interested in taking over the maintenance. 👌
Sorry for not having been very active in module's queue lately .... I've been a bit busy preparing my proposals for DrupalCamp France in April and DC Rotterdam in October ....
The submission deadlines are all this week 😅
I'm hoping I can get a bit more time the following weeks to get a few tickets landed 👍
But I'm following everything ... in case anything urgent pops up.
Thanks again very much @ressa!
Comment #7
ressaThank you @dydave for a fast reply, as always!
It's fantastic that you are ready to take on the task of Toolbar contrib maintainer, thank you very much! I see you asked about the process in the other issue, and hopefully they can help guide you.
And no problem about the quiet, Admin Toolbar is in really great shape after your coding frenzy last year, which really pays off now, as can be seen in the very low number of new bug issues. I wish you good luck with the applications!
Comment #8
dydave commentedI think I missed one of the main aspects in this issue:
A new 3.7 release would not be able to support D12, since it has a breaking change, moving the core toolbar module to contrib.
So all these tickets are most likely going to be paused for now, until we have a better vision of the toolbar module in contrib, see:
#3484850: [meta] Tasks to deprecate Toolbar module.
It is very likely that the 3.x branch will keep supporting the same versions: 9.5+, 10 and 11.
And that a new 4.x major branch will have to be created to support 11.4 and 12, mostly because the composer constraints will have to change.
3.x → D9.5 / D10 / D11.0–11.3 (maintenance/security only, current)
4.x → D11.4+ / D12 (new development branch)
Why a new major?
As mentioned this is a breaking change with the composer.json depending on the contrib toolbar module which would not have the different versions core has.
If the changes were made to the 3.x branch, the composer requirements would also have to work for all previous core versions 9.5, 10 and 11.
All the different versions of the toolbar module for the minor core branches would also need to be added to the contrib module's repo, which seems like a lot of work to keep backwards compatibility.
Additionally, a breaking change with a new major would allow proper removal of the sub-module admin_toolbar_links_access_filter, which has been deprecated since 10.3.
We should be able to come back soon on this issue, when 11.4.0 is released and see how the contrib toolbar module evolves.
Comment #9
ressaThanks for a great description of the situation @dydave, I think your plan sounds just perfect! I agree that being able to remove the deprecated sub-module
admin_toolbar_links_access_filterwould be very nice. I have attempted to update the Issue Summary based on your comment, and feel of course free to correct it, if something is not quite right.About Toolbar as contrib, I wonder if the https://www.drupal.org/project/toolbar maintainer has been contacted to check if it can be Drupal core Toolbar's new home? Because Drupal 12 will be released December 2026 without Toolbar in Drupal core ... so wouldn't it be nice to have Toolbar contrib ready soonish, to be able to release Admin Toolbar 4.x-dev by mid-September 2026, and aim to have a stable Admin Toolbar 4.0 release ready by mid-November 2026?
Comment #10
dydave commented@ressa!!! 🤩
Super nice to hear from you! 😊
YES! Definitely....
How do we go about that? Do we have to do everything ourselves? Or do the Core maintainers have a procedure or play a role in this?
Something like this?
I wouldn't be surprised we would need to do everything ourselves, given how busy the Core Team is, usually... 😅
Let's try getting this moving so we could potentially aim at a D12 release at the end of the summer.
Thanks again for keeping an eye on the module! 🙏
Comment #11
ressaThank you @dydave! Your thoughts about the two steps look correct:
drupal/toolbar/drupal.org/project/toolbar)It seems like the next step is that the appointed contrib maintainer creates an issue in the project (https://www.drupal.org/project/toolbar) requesting transfer of namespace ownership. Something like #3575102: Taking over the Keyboard shortcut namespace which @andypost made for the
drupal/shortcutnamespace #3569117: [meta] Tasks to deprecate the Shortcut module.And when it's created, you could share it in #3484850: [meta] Tasks to deprecate Toolbar module? Perhaps a "Transfer of Toolbar namespace"-issue could be created at the same time in https://www.drupal.org/project/issues/infrastructure? (or maybe wait 14 days ...)
Could the steps about infrastructure outlined in the documentation page about How to deprecate and remove an extension > Create the contrib project with a stable release work? I now see this on that doc page:
It says "Friday, September 11, 2026: Drupal 12 beta requirements must be completed" on the Drupal core release cycle page, and since Alpha is about a two weeks before, this means that Toolbar ideally has a stable release by mid-August 2026 :)
I like your plan of aiming for a D12 release at the end of the summer, I'll surely be ready to test the code as soon as there is something ready for testing! 🙂
Comment #12
dydave commentedThanks a lot @ressa!
Let's get on with this and start the procedure... I had no idea we had to do everything ourselves 😅
OK : What if I ask for the Toolbar full project maintainership, as it currently is?
https://www.drupal.org/project/toolbar
The module only has code for D6, which should not be conflicting with any of our code.
Then close all the D6 outdated tickets, import everything in new branches, create new releases, etc...
That could work no?!
Do we really need to go through a namespace transfer, so move the current toolbar project to toolbar_d6, for example, then create a new blank project?
Looks like this is what they did for the Shortcut project: (It still has all the D7 code)
https://git.drupalcode.org/project/shortcut/-/blob/7.x-1.x/shortcut.modu...
For the time being, I went ahead and requested maintainership for the Toolbar module:
#3607179: Applying for 'Maintainer' role for the project Toolbar
Let me know what you think. 🙏
Comment #13
dydave commentedI've contacted the current maintainer by email ... I have great doubts the person will reply....
Let's maybe give it until the end of the week and then move the issue to project ownership.
Comment #14
ressaThank you so much for the fast issue creation of request for maintainer-ship, it's great when momentum is kept, as you always do!
Requesting Maintainer-role seems to be the right approach like you did, but I don't know anything about all the technical parts, sorry ... Maybe ask in the deprecate Toolbar issue?
That sounds like a good plan!
I see that @elizondo already granted you the Maintainer role, which is fantastic, allowing us to keep moving forward with the Toolbar contrib task 🚀
Comment #15
dydave commentedWew! That was fast! 🥳
Sometimes things just work out! 😆
I replied to Luis (the maintainer) to thank him very much for granting me maintainer's rights so quickly! 🙏
OK: at this point, I should have everything needed to move forward with the D12 releases of the modules, all the way 🥳
I've done a bit of research on the core modules or themes deprecated previously or themes, such as seven, bartik, shortcut, tour, etc...
I think at this point I have a clearer idea of the next steps. 👍
Let me start experimenting a bit with the Toolbar module and I'll report back here. 👌
Hopefully, this should greatly help unblocking the issue queue, since we would be able to make a great jump supporting 11.3 and above.
Thanks again for your help @ressa! 😊
Comment #16
ressaThis is great @dydave! Yes, that was a pleasant surprise, because processes like this can drag out, as seen in other issues, sadly not rarely ...
Totally, your update comment (30 June 2026 at 00:08), granting of Maintainer-role, and committing Toolbar 1.x code on Gitlab (1 July 2026 at 00:06) happened in under 24 hours :)
Sounds fantastic that you got all you need to move forward. I have subscribed to "All issues" from the Toolbar contrib module, so I'll see new issues you create, and feel free to ask for testing of new code (or whatever assistance is needed) in this issue, or over there 🙂 Thanks!
Comment #17
dydave commentedThanks a lot @ressa! 😊
Ha ! 😅 You've probably been spammed with all the D6 tickets I closed yesterday 😅 (~28)
OK, just to give you a quick update:
I've processed all the tasks listed in #3607275: Create an initial 1.x-dev release for module Toolbar ✅
In particular, I've created an initial DEV release: toolbar-1.x-dev
which should allow unblocking us for the development of the D12 version for AT.
Then, I realized we did not have the correct namespace for the composer command 😅
Which brought me back to your comment above #11, so I created #3607814: Reserve the Composer namespace drupal/toolbar for this project to ask for help.
Hopefully, if this could be unblocked, we should be able to start creating the 4.x branch with a composer dependency. 🤞
In any case, I'll definitely keep you posted on any progress... Hopefully soon! 😅
Thanks again @ressa!
Comment #18
ressaAwesome @dydave, it's great to see all the activity, following along from the side line, thanks for your great efforts!
And yes, I got a few mails yesterday :) But the current set up already inundates us with extra "time to give credit"-mail for all issues, or "Drupal 12 readiness"-alerts so I think we all have become experts in keeping the inbox under control, heh.
It sounds great with the transfer of name space, I wasn't exactly sure what it meant (as seen in my comment, where it's a bit jumbled up), so great that it can be sorted out. I thought about making an issue to clarify exactly which steps are needed, so it can be added to the https://www.drupal.org/about/core/policies/core-change-policies/how-to-d... doc page. But then I checked the #3158669: [policy, no patch] By default deprecate non-experimental modules that are used by less 5% of sites before the next major version issue, and it looks like most of the deprecations have happened already ... or maybe there are just as many in the pipeline for Drupal 13? If you feel like it and have time, you could consider spending a few minutes, just to add the most basic required steps under "Create the contrib project with a stable release", in case it would help another green core-to-contrib maintainer in the future?
But altogether just great to see everything moving along, thanks @dydave!
Comment #19
ressaI am sorry to see all the required steps you have to discover bit by bit, because the core-to-contrib process is not documented in enough detail, and "look at these other deprecation issues" is often the best advice. I understand that these processes secure that nothing bad happens, and that no mistakes are made ...
But it would help a lot if there was a minimal checklist or something. It's too bad that an experienced Drupal module owner such as yourself, main maintainer of one of the most installed modules (Admin Toolbar) cannot consult the infrastructure documentation page section How to deprecate and remove an extension > Create the contrib project with a stable release and follow a checklist of tasks, to as easily as possible transfer ownership of a project, get the Composer namespace set up correctly, etc.
But great to see that there were constructive comments in the transfer-issue, and that the process is moving along! Hopefully it will get done before too long, fingers crossed🤞
Comment #20
dydave commentedThanks @ressa... I got a bit annoyed yesterday when Alberto (@avpaderno) announced a 2 weeks cooldown period for the transfer of the namespace 😅
Luckily Conrad (@cmlara) gave me another exploitable idea which seemed to be exactly what we were looking for.... So I created another ticket specifically for the composer namespace:
Gitlab issue #3583683: Ensure that Toolbar does not get special core treatment
Let's see if this pays off 🤞😅
Looks like Alberto (@avpaderno) has already taken a look at the issue and tagged it as
namespaceRequest. 👌After jumping through all these hoops, I'll certainly be glad to take some time to document my concrete experience going through this deprecation process 👍
I suppose with a little bit of patience we should be able to get everything we need to keep moving forward.
Let's see how things go in the coming days.
Thanks again for your great help @ressa! 😊
Comment #21
ressaHah, yes after the meteoric progress in the first 24 hours, running into a two week blocker would be a bucket of cold water! 🥶 Great to see that it was already tagged by @avpaderno, let's hope the Drupal infra team can take a look at it in due time. It looks like other core-to-contrib modules share the namespace challenge, like
drupal/shortcut-shortcutanddrupal/telephone-telephone(found via project_composer "ensure treatment" search).Thank you very much @dydave, it sounds fantastic that you may have time to document the basic steps, since that could help new core-to-contrib maintainers a lot, preventing a lot of wasted time and frustration. The whole Drupal community would be very grateful, I certainly would!
PS. Adding a list of "Transfer Toolbar" issues in the Issue Summary, to have them in one place :)
Comment #22
ressaClarify in the Issue Summary that "Transfer Toolbar tasks" are the current priority.
Comment #23
dydave commentedThanks so much @ressa!
and YES indeed !! 😆
You've summarized very accurately the big cooldown I experienced during this process 🤣
YES, definitely : This is for sure an issue that should be encountered by most contributors during the deprecation process of core modules 😅
So for sure, I will help documenting and assisting others going through this process 👍
But overall, after thinking again about it... We're not really blocked on the AT side :
We "should" be able to proceed with the 4.x branch, at least for the early development stages: we could surely use the current namespace
toolbar-toolbar==> It should not be a problem to start making changes, developing and testing on Gitlab CI....Then, down the road, once the namespace change has been made, we would only need to change the dependency in module's composer.json to finalize the merge requests and release.
I'll get started on 4.x dev branch and initial rounds of changes this week and the following, so we could at least start getting the module prepared, until the namespace change is in place.
I'll surely keep you posted on the progress for the D12 compatible release of Admin Toolbar. 👌
Thanks again for all your help and support! 🙏
Comment #24
ressaHeh, yes it was good that we didn't hit a road block!
And I guess you're right, that in the initial phase, using the wrong Composer name
drupal/telephone-telephoneis probably all right, so long as it doesn't drag out for too long, so too many people start actually using it. It may not be a big deal to switch Composer name in a project, but ideally it shouldn't be needed for too many users. I tried to nudge thedrupal/telephone-telephoneissue inproject_composer, and I hope that maybe the person who looks at that issue can handle Toolbar at the same time?Sounds fantastic that you plan to look at 4.x dev branch, and will share any interesting and relevant changes, I'll be ready for testing. Thank you so much @dydave!
Comment #25
ressaThe
project_composerToolbar issue was a duplicate, and I updated the Issue Summary to use the original one: Ensure that Toolbar does not get special core treatment. See also #3579778: Removed modules should be included as a replace in composer.json and #3188544: [policy discussion] Address Composer namespacing issues when extensions move between core and contrib.Comment #26
dydave commentedThanks @ressa!
I've been trying to get in as many issues as possible before creating the new 4.x branch, so we could have a 3.6.4 release with the latest fixes (D9 compatible), then copy the branch to 4.x and start making the D12 compatibility changes.
There's a pretty big one in this ticket #3385337-16: admin_toolbar_tools more than doubles number of queries needed during site-install degrading performance for which we could use some help testing and reviewing the changes, if you get a chance. 🙏
This could be a pretty big win with a significant performance improvement for the admin_toolbar_tools module. 👍
oh ... and not sure if you have seen this, but I have #3609437: Enable Gitlab CI security scans 👌
The builds on Gitlab CI will now check for any secrets/confidential information and run SAST (static code analysis) scans on all module files.
Feel free to ping me directly in any issue in the module queue, to attract my attention, if you would like to see anything in particular included in the upcoming releases. 👍
I'll keep digging in the issue queue to see what other issues could be folded in.
Thanks in advance! 😊
Comment #27
dydave commentedOK, now that we've got the namespace issue fixed:
Ensure that Toolbar does not get special core treatmentThe namespace
drupal/toolbarnow resolves to a proper package and the installation instructions on the contrib Toolbar module page now show:Therefore, we should now be able to fully proceed with the 4.x branch 🥳
(to declare contrib toolbar as a composer dependency)
OK, what I recommend we do for now:
1 - Try getting as many issues in 3.x before cloning to 4.x.
Do a sweep on the current issue queue to see if any ticket could be committed to the 3.x branch so that it could be included in 4.x from the start.
2 - At some point, clone 3.x to 4.x.
Update the Meta issue: #3565209: [Meta] Drop support for Drupal 10.2 and below and all related issues to correspond to the 4.x branch:
All these issues and merge requests are never going to be committed to 3.x, as they currently are.
Therefore, it makes sense to keep the same tickets if possible, adjust their contents where needed (for example with the correct core version requirements:
^11.5 || ^12), close the current merge requests and clone them to point to the correct 4.x branch with the necessary code adjustments.3 - Create the necessary stable releases:
We'll probably have a 3.6.4 patch version including any fixes from point 1, without any major changes, support or compatibility.
And of course the 4.0.0 initial stable release for the 4.x branch compatible with D11.5 and D12.
An important thing to note is that once we've done the split between 3.x and 4.x, many patches in the issue queue will not apply to 4.x and would need to be ported. In general, we will probably have to port patches for both branches for bug fixes mostly.
(See for example in the issue queue, problems related to the support for the Gin admin theme)
I think the plan is very clear at this point and we should be able to reuse most of the tickets and merge requests from the previous plans and meta issues, so it should not take "too" long to be able to have a dev version ready to be tested. 👌
Let's start with point 1 for now, and adjust issue summaries for this one and the others when we get to point 2. 👍
Let's see how it goes 🤞
Thanks in advance!
Comment #28
dydave commentedAdded #3571169: Two search inputs display when using Gin theme to the list of issues with documentation for the release notes.
A bit of clean-up of the issue summary.
Comment #29
dydave commentedComment #30
japerryJust getting re-situated with admin_toolbar as we're barrelling towards D12 compatibility. I wanted to chime in and recommend we don't cut a new major.
Why the roadmap's reasons for 4.x don't hold
- "The dependency on contrib Toolbar in composer.json is a breaking change." We don't need to add one. packages.drupal.org already adds drupal/toolbar: * to every admin_toolbar release because of the drupal:toolbar line in the info.yml. That's the cause of #3630983: Cannot update to latest 11.3.x or 10.6.x core version due to impossible drupal/toolbar dependency.
- "Every core minor's Toolbar version would need to be added to the contrib repo." Not needed. Core now declares replace: drupal/toolbar in 10.6.15+, 11.3.20+, 11.4.5+ and 11.5.0-beta1. Contrib drupal/toolbar 2.0.0 covers D12.
- Code: a phpstan deprecation scan of 3.x on core 11.4.5 is clean, apart from the two calls already ignored, which are deprecated in 11.5 and only removed in D13. Nothing found so far would make D12 support break D10.
That gives us two options that avoid a major (and the complications related to that):
3.6.x would only need fixes for cores that are already unsupported, so it barely needs maintaining. Since this module is in my next batch to update, it'd be good if we can come to consensus on how to resolve it. I'll also setup my canary sites (d10, 11, and 12) to test the different composer combinations to ensure consistency as users try to upgrade from D10
Comment #31
dydave commentedThanks Jakob (@japerry)!
I had not seen that ... 😅
Indeed, if that's the case, then requiring admin_toolbar lower than 12 would not install contrib toolbar and requiring 12 or above would install contrib toolbar which is exactly what we would want.
Thanks a lot for clarifying the versions, your solution is much cleaner and simpler. 👌
Let's go with the versions and plan you suggested :
I'll try getting these changes processed this week and get the corresponding releases created.
Thanks again for your great help and advice. 🙏
Comment #32
dydave commentedOK step 1 of the plan was completed: ✅
Issue #3630983: Cannot update to latest 11.3.x or 10.6.x core version due to impossible drupal/toolbar dependency was merged with MR !225 in 3.x.
Then 3.x was cloned to 3.6.x as a LTS branch:
https://git.drupalcode.org/project/admin_toolbar/-/tree/3.6.x
We should now be able to proceed with the next steps:
1 - #3565209: [Meta] Drop support for Drupal 10.2 and below
2 - #3594696: Add support for Drupal 12
Then create the 3.7.0 release compatible with D12.
We should be able to create the 3.6.x-dev and 3.6.4 stable releases at any time.
Comment #33
ressaThanks for getting the versioning in order @japerry and @dydave. I am adding a regular issue to the Issue Summary.
Comment #34
ressaMoving two fixed issues.
Comment #35
ressaI checked for issues fixed since the last release, and attempted to add them, since it seems like they will be part of the next release? There are a lot! I guess if Matt Glaman's wonderful Dependabot tool is used, it ought to return roughly the same list as the one under "Done" here?
Comment #36
dydave commentedYes, I think so @ressa!
Super helpful! Super nice!
Thanks a lot!
Just waiting on a little bit more feedback for D12 ... Then we'll merge all RTBC and be ready to create the releases. 👍
Comment #37
ressaYou're welcome! It sounds like a good plan to wait a bit, I am adding the Drupal 12 issue to the list, it somehow got missed :)
Comment #38
dydave commentedJakob (@japerry), could you please help us with a composer issue? 😖
I've just tested a build of the D12 compatible branch, with 10.3.x and the composer job seems to have failed: 🔴
with the following requirement errors:
the
providekey was removed from the composer.json to support D12, see:https://git.drupalcode.org/project/admin_toolbar/-/merge_requests/230/di...
I'm assuming this is probably due to the fact the line
replace: drupal/toolbaris not declared on 10.3.x versions....Would you have any workaround for that?
Would there be any way to fix this issue?
Otherwise, should the core version requirements be raised to 10.6.x? (for 3.7.x, D12 compatible)
How to test?
Trigger a 10.3.x build from here:
https://git.drupalcode.org/issue/admin_toolbar-3594696/-/pipeline_schedules
Any advice, help and suggestions would be greatly appreciated.
Thanks in advance! 🙏
Comment #39
japerryYup! I probably cannot do it today, as I'm fixing up google_tag today, but I'll put this on my list for Monday if that works
Comment #40
dydave commentedRaaa ... that's super nice Jakob (@japerry)!
Thanks a lot! 🙏
No problem at all... I am in no rush personally 😅
We've left the D12 MR in a stage where it should be "mergeable", at any time, see:
https://git.drupalcode.org/project/admin_toolbar/-/merge_requests/230
We've merged pretty much everything else.... trying to leave really the final go on the D12 MR before creating a new release. 👌
Please let us know what you think would be the best way to approach this issue and we will be glad to proceed accordingly. 👍
Thanks in advance for your all your help! 🙏
Comment #41
japerryOkay, so I had a bit of time to parse all of this (man it's confusing, there are so many versions, constraints, and conflicts it just makes my mind swirl, even with AI assistance!)
I think balancing support for existing users is paramount. After quite a bit of back and forth with claude, I think I have a good plan that will keep existing users from having broken sites, while moving us forward for D12 compatibility:
Comparing 3.x with 3.6.3, a few things that shipped in 3.6.3 were removed or renamed on 3.x. Since 3.6.5 and 3.7.0 should stay API compatible with 3.6.3, these need BC shims on 3.x. I've added a new issue to track that work #3641340: Add BC shims for recent commits and pushed a branch to its issue fork.
No shim is needed for the following:
As for versioning,
Sites on Drupal 9.5 to 10.2 stay on 3.6.4 (which fixes an issue where 9.5 has been stuck on 3.6.2). Composer can only install 3.7.0 on cores that replace drupal/toolbar (10.6.15+, 11.3.20+, 11.4.5+ and 12), so sites on older cores get 3.6.5 without doing anything.
With this plan, the only difference between 3.6 and 3.7 is removing 'provide' from composer.json and adding ^12 to the info files. That should make it straightforward to backport fixes between the two branches.
One note for step 3: the test fix from #3639317: Fix phpunit jobs for the 3.6.x branch is on 3.6.x but not on 3.x, so its bundle ID part should also go to 3.x.
Comment #42
dydave commentedThanks a lot! Fantastic plan!! 🤩
I can imagine how hard it must have been to come up with it 😅
Took me a while to understand...
TBH since I didn't really know how to approach the issue, I took the simplest road: creating a new major 😅
But I remember your blog post about why Majors are bad and we should try avoiding them as much as possible...
OK, I need some help clarifying a few points:
Could it be worth adding one more minor release support branch instead of merging/fast-forwarding 3.6.x?
So we would have instead:
we would then be able to potentially backport patches or fix bugs specific to certain release branches?
(In particular the 9.5.x...10.2.x supported branch // 3.6.x could continue living on its own)
What about the contrib toolbar module for drupal 12? 🤔
It's worth noting here your comment in the D12 issue, about why the contrib toolbar module dependency does not need to be added to module's composer.json file:
So if I understand correctly: The composer dependency is automatically resolved by packages.drupal.org through the evaluation of the dependencies in module's
admin_toolbar.info.ymlfile which declaresdrupal:toolbaras a dependency.OK... No problem, makes sense... good to know 😅
(I'm barely starting to piece together all the work we did with the composer namespace, infrastructure and all... 😅)
Summary of the suggested actions:
provide, remove^12from all info files and update gitlabci config accordingly (removecomposer (next major)and commentOPT_IN_TEST_NEXT_MAJOR&RUN_JOB_UPGRADE_STATUS).Stays true with branches 3.7 and 3.8, the only difference is that we still have 3.6.
The core version requirements also stay the same, just with a different version increment.
We could make it a policy to systematically merge changes on these two branches (3.8, 3.7) and in more special cases or when it is directly possible, on the LTS branch (3.6).
(thinking of AI context, mkdocs and such)
On the project page, in the Releases section, we would have 3 supported releases displayed: 3.6.4, 3.7.0 and 3.8.0
We would be dropping support for 3.5.3.
Let me know what you think of this updated plan.
If the discussion in issues becomes too complicated, let me know and I'll try joining you on slack. 👌
Thanks again Jakob (@japerry) for your great help! 🙏
Comment #43
dydave commentedWithout the provide in the module, so they need the replace in core, which also correctly installs the drupal/toolbar contrib module for D12 (through the info.yml).
Sites needing the provide in the module, otherwise there could be an error with the composer dependencies requiring the drupal/toolbar contrib module on an unsupported version (see #3630983: Cannot update to latest 11.3.x or 10.6.x core version due to impossible drupal/toolbar dependency).
and maybe more, such as some JS issues that were recently fixed/committed... maybe they could be directly backported (cherry-picked).
This should also cover all the same versions from your plan at #41.
Comment #44
japerryYup! The 3.6 / 3.7 / 3.8 split works too! I just put them both in 3.6 because then you have multiple versions on the front page, and I'm more in the camp of being okay with dropping core support in patches when they're well out of date.. but, certainly having three minors is fine too.
And your understanding of the next process is correct as well. 3.6.4 can be tagged today, as is. This will get Drupal 9.5 to 10.6 users fixed today. Then commit the shims to 3.x, create a 3.7.x branch from 3.x so you can release 3.7.0, and then make 3.8 with D12, drop provide, and new fixes. Then 3.7.x is easy to backport changes that aren't related to D12.
Now that I have ai do my gate testing, the different versions (and backporting) is more seamless. Especially if I work on this issue in the future, claude has all the context it needs to not mess it up....
Comment #45
dydave commentedYES! Definitely @japerry!
Thanks a lot for reviewing and confirming the next steps! 🙏🥳
🤖 For AI, I'd really like your feedback on something I tried for another module:
#3612109: Add GitLab Pages documentation site using MkDocs
Mostly, because I wanted to do "spec-driven" development and wanted to share and keep track of my specs MD files, see the resulting site:
https://project.pages.drupalcode.org/image_link_formatter/specs/
My specs for this particular ticket: GitLab Pages Documentation Site Specification
https://project.pages.drupalcode.org/image_link_formatter/specs/GITLAB_P...
I ended up putting my specs in the repo in the mkdocs folders.
All the doc files were generated with AI through rounds of prompt exchanges/reviews which you can follow in the spec MD file for the initial docs base.
All the exchanges and documentation in this ticket is going to be very helpful putting together similar content sections to provide more context to our AI Agents and hopefully further ease or automate more and more maintenance tasks, as well as provide an interoperable ground for developers to collaborate with the same set of rules for their agents.
I know that's out of scope for the time being (future roadmap), but I'd greatly appreciate your opinion or suggestions on this method to collaborate in the Open Source space assisted by AI agents.
Thanks again @japerry! 🙏