Problem/Motivation

When somebody uploads a file to an issue queue (a patch, a screenshot, etc.), their user is automatically ticked in the list of people to be credited in the "Credit & committing" section. When the issue is closed as "Fixed", they receive a credit unless the project owner or another project maintainer removes the tick . If the upload is a patch, it also look to me like the tick cannot be disabled. even if the patch is pure garbage.

It looks like some people may use this as a way earn undeserved issue credits. See related issue for what I suspect is an example of this.

Proposed resolution

Remove the misfeature that automatically credit people who upload files to an issue from Drupal.org customizations.

CommentFileSizeAuthor
#9 cat-small.jpeg28.97 KBbramdriesen

Issue fork drupalorg-3226881

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

gisle created an issue. See original summary.

drumm’s picture

look to me like the tick cannot be disabled

The maintainer can certainly untick credit when they update the issue. But yes, if it is the default, it will tend to stay ticked.

Changing this behavior is certainly straightforward, but I’d like to see a few more perspectives on it from project maintainers, since this is a large-enough change.

bramdriesen’s picture

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

bramdriesen’s picture

Status: Active » Reviewed & tested by the community

Not following 100% what the code exactly does. Code wise the merge request looks okay, and I trust @drumm's judgment of what needs to be done to get this fixed ;-).

  • drumm committed 3a060ca on 7.x-3.x authored by B_man
    Issue #3226881 by B_man, drumm: Do not automatically credit people who...
drumm’s picture

Status: Reviewed & tested by the community » Fixed

Yes, I think this was originally written to only suggest credit for patch files, so removing the line of code was straightforward, once it was found.

Just one more clarification- credit is never automatic. As a maintainer comments, its suggested for people who have uploaded files, but is not set until the maintainer updates the issue to confirm that.

bramdriesen’s picture

StatusFileSize
new28.97 KB

Hmm is that true?

Cat image as example.

bramdriesen’s picture

Okay seems you are right :-)

hestenet’s picture

Status: Fixed » Needs review
bramdriesen’s picture

Status: Needs review » Needs work

Needs work in that case I guess?

drumm’s picture

Status: Needs work » Fixed

I’m not seeing any real evidence of that. They didn’t have credit before, because that’s what the maintainer had saved. That could have been we we’re auto-suggesting credit for uploading patch files at the time, or maybe the pithy comment didn’t warrant credit. Regardless, the issue isn’t fixed, so credit isn’t finalized.

Query used to see the credit history:

MariaDB [drupal]> SELECT from_unixtime(nr.timestamp), group_concat(DISTINCT u.name ORDER BY u.name) FROM field_revision_field_issue_credit fdf_ic INNER JOIN comment c ON c.cid = fdf_ic.field_issue_credit_target_id INNER JOIN users u ON u.uid = c.uid INNER JOIN node_revision nr ON nr.vid = fdf_ic.revision_id WHERE fdf_ic.entity_id = 2617330 GROUP BY fdf_ic.revision_id;
+-----------------------------+-----------------------------------------------+
| from_unixtime(nr.timestamp) | group_concat(DISTINCT u.name ORDER BY u.name) |
+-----------------------------+-----------------------------------------------+
| 2022-09-08 07:58:59         | dagmar,mfb                                    |
| 2022-09-26 15:46:30         | dagmar,mfb                                    |
| 2022-09-26 17:34:44         | dagmar,mfb                                    |
| 2022-09-26 19:08:10         | dagmar,mfb                                    |
| 2022-09-26 20:10:27         | dagmar,mfb,Ratan Priya                        |
| 2022-09-26 20:26:13         | dagmar,mfb,Ratan Priya                        |
| 2022-09-27 09:26:59         | dagmar,fgm,mfb,Ratan Priya                    |
| 2022-09-27 09:27:49         | dagmar,fgm,mfb,Ratan Priya                    |
+-----------------------------+-----------------------------------------------+

Again, this is only about suggested credit. Nothing automatically adds or removes credit, it is up to the maintainers of each project to decide as they fix issues.

Status: Fixed » Closed (fixed)

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

ressa’s picture

Adding related issue.