Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
MAINTAINERS.txt still uses the old machine URLS, e.g. user/1
to link to user profiles.
Proposed resolution
Update MAINTAINERS.txt to use the new human URLS e.g. u/dries
.
Remaining tasks
Update for 8.0.x- Update for 7.x
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#22 | interdiff.txt | 1 KB | opdavies |
#22 | 2491333-22.patch | 14.99 KB | opdavies |
#8 | human_maintainers_links-2491333-8.patch | 27.07 KB | Mac_Weber |
#1 | 2491333-1.patch | 25.76 KB | opdavies |
Comments
Comment #1
opdaviesHere's an initial patch. It will likely need re-rolling after #2491155: Update drupal.org and kernel.org URLs in core modules (Follow-up to 2489912) is committed.
Comment #2
dawehnerMh, so this makes things a little bit more tricky in case someone decides to rename themselves.
Comment #3
jhodgdonYeah... not sure about this either. What happens on d.o to these aliases if someone does change their user name, are they redirected though?
Comment #4
Mac_Weber CreditAttribution: Mac_Weber as a volunteer commentedAt first I liked this change, but now I think we better keep the UID. If D.O changes its pathauto settings to something different, then we would still get correct links at
MAINTAINERS.txt
.Moreover, today the links work either if we use
/u/mac_weber
or/u/Mac_Weber
, while the one provided by the system is the first one, I do prefer the second one as it reflects my real nickname better. If either one stops working in the future, then we would have to change this file again.As we already have the nickname in this file, then I don't see a good reason for changing it now.
Comment #5
opdaviesYes, a redirect is automatically added. I just tested this on my D.o dev site with https://opdavies-drupal.redesign.devdrupal.org/u/opdavies (redirects to https://opdavies-drupal.redesign.devdrupal.org/u/opdavies2).
Comment #6
Mac_Weber CreditAttribution: Mac_Weber as a volunteer commentedFrom @xjm at https://www.drupal.org/node/2491155#comment-9956299
Then, I'm sending a rerolled patch.
Comment #7
opdaviesThe patch in #6 appears to be empty?
Does the patch in #1 no longer apply?
Comment #8
Mac_Weber CreditAttribution: Mac_Weber as a volunteer commented@opdavies, there was too many changes on MAINTAINERS.txt
As I had to delete the file and upload it again before posting I think there was a problem when I really posted the reply.
Sending it again.
Comment #10
opdavies@Mac_Weber: Ah, OK. I cancelled the testbot for #6.
Comment #11
opdaviesPatch in #8 looks good to me. It applies cleanly, and has the desired result.
Comment #12
Wim LeersDevil's advocate: does d.o also prevent users from reusing *old* usernames of other users?
Comment #13
opdaviesNo, apparently not. I've logged into that site as a different user and can change my username to "opdavies" now that my username is something else.
Comment #14
Mac_Weber CreditAttribution: Mac_Weber as a volunteer commented@Wim Leers if an user could reuse an old username from other user, then there would be people "reserving" usernames just to not allow others to use them. While it is really bad in case someone takes an old username form someone else to pretend to be this person, I also don't like the idea of someone withholding a bunch of nicknames for no good reason.
This can bring an interesting discussion, but a bit off topic for this particular issue =)
Comment #15
tim.plunkettThis is not a technical argument, but I like seeing the UIDs of different users. You can't easily see them on d.o anymore, but knowing how long someone has been on d.o (by relative lowness of UID) is always interesting.
So -0.5 from me :)
Comment #16
xjmI guess this is nominally a patch for Dries as well. :)
Comment #17
webchickJust a general note to the "what about renames?" objection... Note that if someone decides to rename themselves, the line needs to change either way, because it includes their username as well as their d.o URL.
As for the "what about potentially broken links?" objection... if a link goes dead (and sounds like it won't, according to #5), it's a simple one-line change to fix it. No big deal; more Novice patches for new contributors! :D
The objection in #15 still stands, though as a counter-point I've also seen people use UIDs as a means of showing off their "l33tness" and shunning "n00bs" (thankfully no one in MAINTAINERS.txt, but still), so in that respect putting everyone on equal footing could be seen as an improvement. :)
Comment #19
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks!
Comment #20
opdaviesComment #21
opdaviesHere's a similar patch for D7.
(Test cancelled).
Comment #22
opdaviesHere's another patch that also fixed the wrapping of some comments that are now longer after updating the URL, also an interdiff compared to #21.
Comment #24
opdaviesComment #25
jhodgdonAh, I was hoping the reviewer of the D8 patch would review the D7 patch, but instead he *made* the D7 patch. ;) Thanks!
So I gave it a look. Mostly it looks fine, but it appears that several of the user names in the file are no longer correct (people had apparently changed their D.o user names since the last edit, which is not much of a surprise). I'm not sure if fixing these is in or out of scope for this issue, probably out of scope... so I think I'll go ahead and mark it RTBC and we can (if we want to) address the user names in a separate issue.
Here are my notes:
Interesting, I didn't realize the u/ aliases were case insensitive. I wonder if user names are also case insensitive? hm. Anyway, verified this is the correct URL for David.
That page needs to be updated to point to the new Governance page, but that's a separate issue.
DamZ is not his user name any more apparently.
Apparently 'killes' is also not his user name any more, at least for user/83. Now that's one ID that it's a shame to lose from this file.
Here's another user name that changed.
Comment #26
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedCommitted to 7.x - thanks!
Regarding #25, maybe some of those nicknames are like that deliberately if people want their IRC nicknames in there?
Fixed on commit since those were the only two that still had the old URL format.