Im my project page I have a totally outdates sidebar block: "Maintainers for<Module Name>"

Maintainers and commits are more than two months outdated.

What I need to Edit to get this cleared?
I tried:

  • Editing the page
  • Editing Maintainers page

Or is it a bug?

Would be great to get this fixed before Drupalcon Baltimore.

https://www.drupal.org/project/ethereum
https://www.drupal.org/node/2298519/commits

Comments

digitaldonkey created an issue. See original summary.

drumm’s picture

Component: Continuous Integration » Git
Assigned: Unassigned » drumm
Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Git commits are associated with Drupal.org user accounts by email address. Please add, and confirm, the email address used in your recent commits at https://www.drupal.org/user/392978/edit/email-addresses. git log will show you what the email address(es) were.

Once this is done, please update this issue.

digitaldonkey’s picture

Thank you. I understood now how i was wrong.
The commit email is now associated with my drupal.org account. Would be great if you can reindex

digitaldonkey’s picture

StatusFileSize
new12.45 KB

From a UX perspective:
It would be good if the sidebar shows ALL commits (including anonymous) are represented in the more visual sidebar statistics. Like:

Proposal for sidebar

This would increase the sites coherence and hint stupid commiters like me that they did something wrong more early.

digitaldonkey’s picture

Status: Postponed (maintainer needs more info) » Needs review
digitaldonkey’s picture

Title: Cache invalidation in projects sidebar » Commits in projects sidebar
digitaldonkey’s picture

digitaldonkey’s picture

digitaldonkey’s picture

Title: Commits in projects sidebar » Anonymous commits in projects sidebaranonymous
digitaldonkey’s picture

Title: Anonymous commits in projects sidebaranonymous » Anonymous commits in projects sidebar
drumm’s picture

Issue tags: -cache

Your commits are now up to date with your added email.

drumm’s picture

Project: Drupal.org infrastructure » Version Control / Project* integration
Version: » 7.x-1.x-dev
Component: Git » User interface
Assigned: drumm » Unassigned
Category: Support request » Feature request

Moving to the project which implements this block.

If we add commits not associated to user accounts, we can show the name associated with the commit. I could see “Anonymous” looking like insecure commit access.

digitaldonkey’s picture

You may name it "unknown" or use the provided Git name.

marvil07’s picture

Status: Needs review » Active
Issue tags: +Needs issue summary update

I would say this is by-design, but it could be argued depending on the concept of maintainer that you support.
I differentiate between a maintainer and a collaborator, although the idea is not defined on the code IRRC, at least not explicitly.

A collaborator may get attribution into the project by different means. E.g. the "Credit others" field on the issue, the commit message containing a username, or the git commit author stating the right git name and git mail. In all of these cases the collaborator is part of the project, but not a maintainer.

A maintainer do have at least direct access to push on the git repository (@drumm please correct me if I am wrong), and it is a person with a long term involvement in the project, and that's why it is shown on the maintainers block.

I know the difference can be fuzzy, but if you think someone deserves to be there, maybe you want to ask if they would like to co-maintain the module instead.

In the special case of anonymous, I do not really see the point of adding that to the maintainers block, it does not even make the idea of collaborator in my mind.

drumm’s picture

Title: Anonymous commits in projects sidebar » Show commits not matched to users in project sidebar

“Anonymous” is confusing here - the issue is a maintainer pushes commits, but the email isn't matched up. Showing the maintainer this happened will help them get more commits matched up.

marvil07’s picture

Status: Active » Needs review
StatusFileSize
new1003 bytes

Here an example of how this may be addressed, naturally the help text needs to be improved.
Open to suggestions.

drumm’s picture

We should only show this type of message to people with commit access to the project. It isn’t really actionable for anyone else.

I think it might make sense to show this on pages like https://www.drupal.org/node/148303/committers only. There will be plenty of cases where this isn’t correctable, such as commits with an old email address the committer no longer has access to. Since we don't allow or want history rewriting for that, we don't want the message to be too prominent. We mostly want to educate people making their first few commits.

This probably should check committer_uid instead of author. For example, importing a repository that has commit history might have good author emails that Drupal.org doesn’t know. Those not being matched up is normal.

Maybe a good simple fix is just replacing “Anonymous” with “Unattributed” in the block.

marvil07’s picture

StatusFileSize
new1.77 KB

Because of the way the block content is build, author data is easier to show, here the simpler approach I can think of, not tested.
If we want to show unattributed, I think it is more relevant to use author data anyway, but that's totally debatable, so maybe it is better to just provide both, given the idea is to inform about it, but that would require a bit more change.

  • drumm committed 465f1ff on 7.x-1.x
    Issue #2865988 by marvil07, drumm: Show commits not matched to users
    
drumm’s picture

Status: Needs review » Fixed
Issue tags: -Needs issue summary update +needs drupal.org deployment

Moved Unattributed to where the table is rendering, so it doesn’t get theme_username’s “(not verified)” added on.

drumm’s picture

Issue tags: -needs drupal.org deployment

This has been deployed. For example: https://www.drupal.org/node/2897195/committers

marvil07’s picture

Thanks for the changes and the deploy!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.