Closed Bug 1602973 Opened 6 years ago Closed 6 years ago

One can submit the same suggestion multiple times

Categories

(Webtools Graveyard :: Pontoon, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: theo, Assigned: adrian)

Details

Attachments

(1 file)

Not sure how this contributor managed to do this, but they managed to submit the very same suggestion twice here (Empty diff): https://pontoon.mozilla.org/fr/seamonkey/suite/chrome/mailnews/msgHdrViewOverlay.dtd/?string=129125

The project (and file) now shows one unreviewed string, but it leads to an empty list: https://pontoon.mozilla.org/fr/seamonkey/

Asking for some potential STRs

Both strings got submitted within a 10th of a second and are indeed exactly the same:

>>> ts = Translation.objects.filter(locale__code="fr", entity=129125)
>>> for t in ts:
...   t.date
... 
datetime.datetime(2019, 12, 10, 22, 16, 33, 895901, tzinfo=<UTC>)
datetime.datetime(2016, 11, 26, 17, 43, 15, 130000, tzinfo=<UTC>)
datetime.datetime(2019, 12, 10, 22, 16, 33, 883073, tzinfo=<UTC>)
>>> ts[0].string == ts[2].string
True

IIRC we had a check on Translate.Dead that disabled the Submit button while the request was running. We have a similar check on Translate.Next, but only for Review buttons I believe.

:adrian, could you take a look please?

Priority: -- → P2
Assignee: nobody → adrian
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: