Closed Bug 1408637 Opened 8 years ago Closed 7 years ago

[Pontoon] Batch approval is broken

Categories

(Webtools Graveyard :: Pontoon, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tomer, Assigned: mathjazz)

References

()

Details

Attachments

(2 files)

Attached image screenshot
Steps to reproduce: Trying to approve multiple strings at the same time. Actual result: An error message 'OOPS, SOMETHING WENT WRONG' Manual approval of strings one-by-one works as expected. The problem can be reproduced in other projects as well. Under the hood, the application fail to complete XMLHttpRequest to https://pontoon.mozilla.org/batch-edit-translations/ with HTTP Error 500 Internal Server Error. The response contains the following snippet (which sadly will never get displayed on the browser because it expect non-HTML content!) - <section id="error"> <div class="inner"> <h1 id="title"><a href="/">Oops!</a></h1> <h2 id="subtitle">Something is wrong. We're going to fix it soon.</h2> </div> </section>
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/6dbddb87e63b8074101d31ccefa2be7cc622251c Fix bug 1408637: EntityQuerySet.prefetch_resources_translations() is deprecated (#734)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Can we add tests for this feature in a sane way?
I was wondering about the same thing. We should have a unit test for each QuerySet method, and that should be sufficient. Once the method is removed, the test will fail.
I was going to say the same thing as Axel. I'm in favor of reopening this bug until we have a unit test for this test case. If you disagree, close away! :)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 8 years ago7 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: