Problem/Motivation

If a user creates an issue, opens a merge request, uploads a file, or leaves unhelpful comments they are listed for issue credit. A maintainer has to explicitly uncheck these suggestions when they were not helpful.

Since gaining issue credit is incentivized, some small, unhelpful contributions have been made. It should be more fair for maintainers to actively decide what is helpful.

Steps to reproduce

See the 'your_inner_alexpott' user on this issue. This user created a branch and merge request and did nothing.

Proposed resolution

Remove all auto crediting, as the system is starting to attract unhelpful contribution.

Remaining tasks

Merge the current MR.

User interface changes

API changes

Data model changes

Issue fork drupalorg-3185576

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alexpott created an issue. See original summary.

your_inner_alexpott made their first commit to this issue’s fork.

alexpott’s picture

Issue summary: View changes
drumm’s picture

In https://git.drupalcode.org/project/drupalorg/-/blob/4cf30addbf6ec238fdea..., we’ll have to add logic for this.

However, with a new branch, we only get the new branch’s HEAD hash. We don’t have what it was branched from. We don’t know where the commits came from - for example, if there is some time between issue forking and pushing the new branch, upstream commits can/should be in the new branch’s history. The best I can think of offhand is check if the last commit author matches the person pushing.

kristen pol’s picture

I noticed this yesterday in one of my issues so removed the credit because the person didn’t do anything or even add a comment.

To be fair, I’m pretty sure I’ve accidentally clicked the button before that did this, so I know not everyone is trying to game the system with this :)

ressa’s picture

So true @Kristen Pol. Also, there will always be a first time you push the "Create issue fork" button, where you're not sure what will happen, what if I break something, etc. Some go ahead and do it, others will probably never, sadly ...

I was somewhat accustomed to the Gitlab/Drupal interaction and its many moving parts. But all the recent interaction updating the README.md and all the README.txt -> README.md issues made me much more comfortable, simply due to repeat interaction with the system, adding comments, resolving comments, editing MR's, etc.

Which just gave me a thought: Would it be possible to make a training project for users who are new to Drupal/Gitlab, where they can create issues, add merge requests, add comments in the MR, resolve them, etc.? It could be housed under https://www.drupal.org/project/drupalgitlab

If possible, automated testing should probably be disabled to save resources, as well as any crediting, indexing in https://www.drupal.org/project/issues/content, and so on.

I think it would be a great way of lowering the barrier to entry, which as we know is tall for Drupal itself, adding Gitlab makes it even taller.

kristen pol’s picture

@ressa Oooh. I like that idea! Playground :)

bramdriesen’s picture

That's actually a clever idea!

ressa’s picture

I am glad you like the idea! I have created #3344829: Drupal+Gitlab playground for new users, feel free to expand on the Issue Summary, add comments, etc. Playground is a great suggestion, and I have used in the issue. Thanks @Kristen Pol :)

B_man made their first commit to this issue’s fork.

b_man’s picture

Not quite as elegant as Neil's solution, but considering the pressure the credit system is under right now, removing all auto credit checking might be net neutral as far as extra work for maintainers, and also disincentivizes the behavior of doing empty things just for credit.

fjgarlin’s picture

The MR on #12 looks good to me. Waiting for confirmation from @drumm in case there are some other cases that need to be considered.

b_man’s picture

Title: Credit given for merely creating a merge request » Remove automatic crediting
Assigned: Unassigned » b_man
Issue summary: View changes

This was discussed a bit here: https://drupal.slack.com/archives/C0451JV7HRD/p1689090567790169. And for now completely removing auto crediting seems to be the direction we are looking to take.

b_man’s picture

Issue summary: View changes

Adding a little more to the summary.

drumm’s picture

Title: Remove automatic crediting » Remove issue credit suggestions
Issue summary: View changes
Status: Active » Needs review

Adding a bit more detail. To be clear, issue credit was never automatic. It was suggested as a default for maintainers, which can end up being like a default if the maintainer isn’t spending too much time on credit, or doesn’t feel like removing the suggested credit.

  • drumm committed 32199ce9 on 7.x-3.x authored by B_man
    Issue #3185576 by drumm, B_man, alexpott, Kristen Pol, ressa, fjgarlin:...
drumm’s picture

Status: Needs review » Fixed

This is now deployed.

The only credit suggestion is crediting people with authorship of commits mentioning the issue on the canonical repository. That is mostly for the maintainers to not worry about self-crediting, reviewing and committing is work you should go ahead and credit yourself for.

  • drumm committed 32199ce9 on owner-tools authored by B_man
    Issue #3185576 by drumm, B_man, alexpott, Kristen Pol, ressa, fjgarlin:...

Status: Fixed » Closed (fixed)

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

ressa’s picture

Issue summary: View changes
Related issues: +#3395901: Use Gitlab CI in Simplenews

Adding "If a user creates an issue, opens a merge request, uploads a [...]" in the Issue Summary, since that's not currently stated, but the reality. I saw that this was missing while updating Granting credit to issue contributors, and @fjgarlin clarified it for me a while ago.