Closed (fixed)
Project:
Block Class
Version:
4.0.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2023 at 08:38 UTC
Updated:
11 Sep 2026 at 21:24 UTC
Jump to comment: Most recent
Comments
Comment #2
ressaComment #3
ressaAdd to parent page.
Comment #4
ressaThe project page still mentions a template, which is for Drupal 7 ...
Comment #5
dydave commentedAdded related topics:
ย
3.x: https://git.drupalcode.org/project/block_class/-/commits/3.0.x
Upgrading from Drupal 7:
Supported to D9, D10, D11 ==> Use the 3.x branch.
Very simple, lightweight, fully tests covered, easy to use
Does one thing only: CSS classes in a plain text field stored as a string.
Very stable.
4.x: https://git.drupalcode.org/project/block_class/-/commits/4.0.x
Latest features and developments.
Experimental ==> Use the 4.x branch.
Lots of features: CSS classes, ID, Attributes
Much larger code base, limited tests coverage, limited user documentation.
Does many things but is less easy to use and is still a bit unstable (WIP).
It is possible to upgrade from 3.x to 4.x but not the opposite.
The 3.x branch still provides an intermediate step for sites upgrading from Drupal 7 not necessarily comfortable using the most recent 4.x development branch of the module at the start.
But an upgrade can still be considered after. ๐
Comment #6
ressaThanks for collecting the issues @dydave, and summarizing the differences between the two versions, very useful! I have tried to create a suggestion for a new "Should I use version 3 or 4?" section for the project page, based on your great summary. I also updated my suggestion about adding the ID and data attribute. What you do you think?
Comment #7
ressaFix formatting.
Comment #8
dydave commentedThanks @ressa!! ๐คฉ
Glad to find you in this project as well ๐
I had no idea nobody was actually maintaining this anymore.... Nothing for more than 6 months ๐
Anyway, I've done a big sweep on the Project page. ๐
(All the D7 mentions are gone, added several content sections, etc...)
I still need to add your notes above and revamp the README file, but we should already be on the right track ๐
There are 2 or 3 related tickets in the issue queue... so we'll be approaching these issues at the same time.
I should be able to follow-up on this issue this week, so any feedback, comments, suggestions or advice would certainly be greatly appreciated.
Thanks again for your great help @ressa! ๐
Comment #9
ressaYes, great to see you here as well, and thanks for giving this module some attention @dydave!
Your revisions of the project page text are great improvements already, and I have followed the other related issues you mentioned as well, so let's give this module some more attention ๐
Comment #10
ressaAfter gaining a better understanding via another issue, I think the focused should be on clarifying the difference :)
Comment #11
dydave commentedThanks a @ressa!
Glad you saw my exchanges with Michael, in particular in:
ย
and my skepticism about the 4.0.x branch ๐
There's a ton of code, duplications, unnecessary settings, etc... It feels like this is a very rough initial version, which I'm not confident in using in our projects unless it is absolutely necessary ๐ (after all and/or any other solution has failed).
Nobody is currently maintaining this branch and I'm not planning on taking over or owning the code as it currently is...
As I told Michael, we'll try improving Project page's documentation as much as possible, and see with time, if we could work on tickets to improve 4.0.x ๐
That's why, for the time being, I thought we might want to stick to the features the module currently does well (100% supported and stable), so I've updated the summary and the project page to mostly focus on CSS classes and have not mentioned so much HTML ID or Attributes, see #3475108: Update summary on project page for compatibility with Project Browser (==> I went for the summary suggested by Leslie).
Thanks again very much for your feedback and help with this more sensitive part of the documentation.
As usual, any feedback, comments or suggestions are very helpful! ๐
Comment #12
dydave commentedOne of the reasons I accepted to maintain this module is because of its very clear scope of features, small and clean code base and full tests coverage.
This is the case for the 3.0.x branch, but not at all for the 4.0.x one, for which I would not engage my responsibility in terms of code or maintenance.
In other words: No problem for 3.0.x // Use at your own risks for 4.0.x
Comment #13
dydave commented@ressa, I've done a big clean-up of all the issues in the queue and the only tickets left now are on the Documentation, mostly:
==> Export in markdown meaningful pieces to the README files (both branches 3.x and 4.x).
ย
Overall, I would only really need your review and confirmation on the changes to be made to the Project page (point 1/this ticket)...
Then, I should be able to take all the following steps on my own. ๐
Thanks again for your help @ressa! ๐
Comment #14
ressaThanks for taking a deeper look into getting this module sorted out @dydave, it seems like it has been without a Captain for some periods of time, and "stuff" happened ๐
I hope that you, maybe together with @justcaldwell?, can make a downgrade path from 4 to 3 possible, in case that seems to be the best road forward ...
Awesome that you got the big picture now, and see what needs to be done for the next release! Let me know what you think about the "Proposed resolution", and if it could work, or in case you think some things need to be clarified?
Comment #15
dydave commentedThank you so much @ressa for your support! ๐
and I'm glad to see I'm not the only one with doubts on the more recent developments ๐
Indeed, I think you summed it up quite well ๐
The code from the 4.x branch went in mostly without much supervision, revisions or opinions on certain of the features added to the module... For example, the use of certain settings fields is more than questionable, while still adding non negligeable weight to the module ๐
I've seen what it could be like with admin_toolbar: Leave the module unattended for 6 months and you'll find the validation jobs broken, the phpunit tests broken, a backlog with tons of tickets, plenty of merge requests with broken pipelines, etc... ๐๐
OK.... I've done a bit of thinking over this again yesterday and "think" we might still have a way forward ๐๐ค
What we "could" do is: Try bringing back the basic features / original behavior (3.x) of the module as the defaults and break into a submodule the newest features (4.x), branded as experimental (a bit like what Drupal core does with newer features and/or modules, see for example the Drupal core navigation module). So we would have two modules: block_class (3.x) and block_class_attributes (4.x / submodule).
In other words, we would be sort of merging back 3.x and 4.x (maybe in a 5.x... to be discussed), setting the features of 3.x as the defaults (new features disabled by default) while still allowing users to switch/enable the newer features if they really want to.
For users upgrading, we could have some sort of script/hook which would check from which version you would be upgrading and enable or disable the corresponding module:
ย
Something like that?! ๐ค
This would need a little bit more thinking, planning and testing to see if it could really work and what it would imply in terms of maintenance and moving forward with the module, but it could provide an acceptable compromise that would help reconcile the two branches in the module and potentially a smoother, more step by step approach to integrating newer features.
It would allow reconciling very different groups of users:
More conservative ones, preferring to stick to what they already know (like us), or more adventurous ones requesting/requiring new and more complete features.... within the same code base. ๐
This is definitely not the object of this ticket and would most likely be quite a big one with transverse impacts in terms of documentation, testing, code changes, etc.... requiring more time, work and efforts.
But I just wanted to put out there this idea and try giving a bit of hope on how we could potentially try our best to bring back module's code base on more stable and reasonable grounds, avoiding to break too much the community behind the module. ๐
I think the bottom line here is that the new 4.x version does not give the ability to opt-out of the new features, for all the users who are actually satisfied with the current set of features (3.x).
Ideally, when the module builds up new features (especially as significant as managing HTML attributes), it should give the ability to users to retain the exact set of features (or closest to it) with which they are already comfortable.
ย
I spent a bit of time on admin_toolbar yesterday (created a nice new one #3556081: Admin Toolbar Tools: Remove dependency on Admin Toolbar, check it out when you have some time ๐) but will take care of finishing the points from #13 for Block Class before the end of the week ๐
and of course integrate the section you've helped writing in the issue summary ๐
As always, it's great to be able to work with Michael and you on these modules. ๐
Thank you very much @ressa! ๐
Comment #16
dydave commentedOK @ressa ๐
I have just finished updating the Project page with the new section "Should I use version 3 or 4?":
https://www.drupal.org/project/block_class#choose-version
I moved the "Matrix of compatibility" to a specific document page:
https://www.drupal.org/docs/contributed-modules/block-class/version-comp...
and replaced the section with a link pointing to the doc.
Overall, except for the screenshot images, I'm pretty satisfied with the wording and texts of the project page right now ๐ฅณ
I think it's going to be a tremendous improvement compared to its previous version. ๐
(with all the clutter of Drupal 7 theme code ๐คฆโโ๏ธ... very confusing for users ๐ )
As a follow-up to #15, I created #3556324: Merge 3.x and 4.x branches, just throwing a bottle to the sea... ๐ ๐๐งด
Moving on to the next point of list at #13: Marking issue as Fixed, for now.
Please let us know @ressa if you spot anything else, in the documentation or the module in general, any advice or suggestion would be a great help!
Thanks again very much! ๐
Comment #18
ressaI agree, @dydave good calls! Both with moving the matrix to its own page, and the overall updates. Perhaps you can ask https://www.drupal.org/u/renatog to add you as https://www.drupal.org/docs/contributed-modules/block-class documentation admin, so you can add the new page in the Menu?
The project page also works much better now, but I do think the "๐ Download now!" looks a bit ... not so serious? Maybe it could be considered to be removed?
Also, perhaps the "Installation" step could be simplified, since Composer is the method now? From this:
... to something like this?
Thanks for creating the follow up issues, to streamline the 3.x and 4.x versions -- maybe into a future unified version 5? Or whatever the best solution turns out to be :)
Comment #19
dydave commentedThanks @ressa! ๐
Ha! ๐
I knew "old-timers" such as ourselves would not necessarily like this button ๐
Looks a bit "vulgar" like some kind of marketing or selling website ๐
I mostly did this, since it is supposed to be a very popular module, used by "new" users who are maybe used to other systems, such as Wordpress, which uses this kind of "branding", links and vocabulary.
No problem to remove it ==> DONE โ
If this link is removed, should we add a link in the TOC to go to the download section ?
URL: https://www.drupal.org/project/block_class#project-releases
I've updated the section on
InstallationโAs for:
I need to write a personal contact to @renatog to see if he could do it himself, or if I would need to ask Drupal.org admins (in a specific ticket) to grant me greater privileges so I could do it myself.... I've been thinking of this for some time now, since #3356443: Set default branch to 4.0.x is probably never going to get a reply ๐ (It would be good if I could get full privileges on the repo as well ๐ )
But, this process is most likely going to take more time ... ๐
ย
Let me know if you spot anything else @ressa, I'd be happy to make any additional changes.
Once this documentation/project page is stabilized, I will export the meaningful pieces to the markdown README files ... most likely this evening.
Thanks in advance! ๐
Comment #20
ressaHi @dydave -- Heh, yes to old-timers such as you and me, it may look a bit too "used car salesman"-like :) Thanks for being open to removing it!
And yes, a Download link could be nice.
I think you should apply to get admin documentation permissions, since you are involved in so many projects, and it would ease your task solving speed -- adding a new documentation Guide or Page, or editing the menu for an existing one could then be easily done. You could consider applying for getting an admin editor documentation permission globally (if it's possible) or for those projects you are involved with, where it makes sense? https://www.drupal.org/drupalorg/docs/content/documentation
About everyday Block Class maintenance, including setting a default branch, it looks like @toddnienkerk is the only one with the "Maintainer" role: https://git.drupalcode.org/project/block_class/-/project_members
And he hasn't been active for a while, at least five years, judging from https://git.drupalcode.org/users/toddnienkerk/activity ... So maybe you could apply for the Maintainer-role? That would certainly make sense to me.
Sounds great with the update of README later, thanks!
Comment #21
dydave commentedThanks again @ressa! ๐
No problem, I've added the Download link in the TOC on the Project page โ
I will create the tickets later today to apply for greater maintainer privileges for the module and its documentation ๐
I just wanted to give you a very quick reply to see if you could please try to help me reviewing the remaining issues (in Needs review) for the admin_toolbar project ๐
This is still my top priority and focus on Drupal.org.
I'm going to spend the evening/night working on the project... and will most likely start merging some issues...
So this is sort of a final call, not for all, but for some of the issues in the list ๐
Also, we should probably try getting in touch with the user contact form so we could exchange our direct contacts, since we've been working together so much, we could perhaps consider we're on a first name basis now (?!) ๐๐
You'll most likely see quite a lot of updates from me later today (after office hours). ๐
Thanks again for all the great help @ressa! ๐
Comment #22
ressaYou're welcome @dydave, thanks for keeping so many contrib modules in tip top shape, I really appreciate it! The Download link looks great.
And sure thing about taking a look at some of the remaining Admin Toolbar issues, I tried to review a few of them, to the best of my capabilities. I hope you make progress, while taking care to not get over-worked -- at least, there are a few issues that are Done already :)
And yes, we should get in touch and exchange contacts, I'll send you a PM!
Comment #23
dydave commentedLogging progress here:
1 - Created: #3556750: Applying for 'Maintainer' role for the project Block Class on Gitlab
2 - Applied for Block Class documentation guide maintainer in doc page discussion:
https://www.drupal.org/node/3268043/discuss#comment-16338253
As per: https://www.drupal.org/drupalorg/docs/content/documentation#become-maint...
"use Discuss tab to show your interest"
Let's see if we could get some help with these two tickets first... ๐ค Then, we'll see if a specific formal issue would need to be created here:
https://www.drupal.org/project/issues/documentation
ย
Moving on to finalizing code changes and the release! ๐ฅณ
(Finally ๐ )
Comment #24
dydave commentedAll done @ressa! ๐
I "think"... for now ๐ค
I created the new stable release block_class 4.0.2 which should pretty much wrap up this round of code clean-up and fixes for the Block Class module. ๐ฅณ
I was initially interested in looking at the 3.0.x release and more particularly its testing pipeline on Gitlab when I found it was failing: ๐คฆโโ๏ธ
#3554895: Fix failing tests compatibility with D11
When I got this one fixed, I thought I might as well restore the pipeline for the 4.0.x branch ๐ค
So I fixed #3555338: Fix BlockClassController compatibility with D11....
Then I thought I might try rebasing/updating quickly some of the MRs in the queue, so they could be tested and reviewed... and that's how I got to fix 30 issues, revamp module's project page and end up creating a new release ๐
I hope the new release with documentation will be a bit more stable and easier to understand for users, so it gives us a little bit of time before the next round of tickets ๐
I "think" other than the documentation page, we don't really have anything outstanding here anymore ๐
Feel free to keep us posted @ressa if you still spot anything with the module, whichever branch you use: anything that could help maintaining and improving the module would be welcome!
Thanks again! ๐
Comment #25
ressaThanks @dydave for yet another epic effort, for Block Class there are now only 4 active issues, very impressive!
https://www.drupal.org/project/issues/block_class?text=&status=1
And really great to get tests up and running! Combined with the updated documentation, new users have a much easier time deciding which version to choose. And by the way, with your admin doc permissions, you should now be able to add https://www.drupal.org/docs/contributed-modules/block-class/version-comp... to the menu ๐
It could be placed at the top?
Thank you @dydave, it's so great to get both Admin Toolbar and Block Class in very good shape!
Comment #26
dydave commentedThanks @ressa! ๐ฅณ
I was finally able to update the documentation page and it is now displayed at the top of the "Block Class" guide: ๐
https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib...
I also have greater maintainer permissions now, which should save us some time with these types of administrative tasks in the future ๐
Back to Admin Toolbar now, for a bit longer! ๐
We've made great progress, but still have a long way to go. ๐
In particular, all the work that will need to be done with the Documentation as well, see:
#3520700: Update the project page
I've been thinking of this, looking at the README files recently for the refactoring ticket for Admin Toolbar Search...
This is still going to take some time ๐
Thanks again for all the great help and suggestions @ressa! ๐
Comment #28
fallenturtle commentedThis is a little confusing. Has V4 been cleaned up and no longer "experimental"? I would think if a module version is experimental it should be considered beta. Just 2 cents from a nobody.