💯 🔢 👎 | 💯, 👎, and 🔢 emoji reactions to issues and MRs are permanent

Summary

If you add a 💯 (:100:), 🔢 (:1234:), or 👎 (:thumbsdown:) reaction to an issue or MR you are unable to un-react.

Steps to reproduce

  • Add a 💯 or 🔢 to any issue or MR — feel free to use this one.
  • Note in the console that the POST returns a 404

Try and remove your reaction.

What is the current bug behavior?

After reacting, clicking again on the reaction temporarily adds a second reaction, then removes it.

The original reaction remains.

What is the expected correct behavior?

After reacting, clicking again on the reaction removes it.

You can replicate the correct behaviour with any other emoji.

Relevant logs and/or screenshots

Request:

POST /api/v4/projects/278964/issues/384167/award_emoji name:100

Response:

{"message":"404 Award Emoji Name has already been taken Not Found"}

Kapture_2022-11-30_at_13.33.13

Output of checks

This bug happens on GitLab.com /label reproduced on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Gabe Weaver