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
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:
- 3185576-credit-given-for
changes, plain diff MR !174
- 3185576-another
changes, plain diff MR !23
Comments
Comment #4
alexpottComment #5
drummIn 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.
Comment #6
kristen polI 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 :)
Comment #7
ressaSo 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.
Comment #8
kristen pol@ressa Oooh. I like that idea! Playground :)
Comment #9
bramdriesenThat's actually a clever idea!
Comment #10
ressaI 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 :)
Comment #13
b_manNot 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.
Comment #14
fjgarlin commentedThe MR on #12 looks good to me. Waiting for confirmation from @drumm in case there are some other cases that need to be considered.
Comment #15
b_manThis 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.
Comment #16
b_manAdding a little more to the summary.
Comment #17
drummAdding 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.
Comment #20
drummThis 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.
Comment #23
ressaAdding "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.