Closed
Bug 1408637
Opened 8 years ago
Closed 7 years ago
[Pontoon] Batch approval is broken
Categories
(Webtools Graveyard :: Pontoon, defect)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tomer, Assigned: mathjazz)
References
()
Details
Attachments
(2 files)
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>
| Assignee | ||
Comment 1•8 years ago
|
||
This is a regression:
https://github.com/mozilla/pontoon/commit/2d6c1baa4186a9fa8687153868f62eb8cc9bb405#diff-c18ce63ddb8aca155c0553a0c1b174e3L1917
Assignee: nobody → m
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
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)
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 4•8 years ago
|
||
Can we add tests for this feature in a sane way?
| Assignee | ||
Comment 5•8 years ago
|
||
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.
Comment 6•8 years ago
|
||
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 → ---
| Assignee | ||
Comment 7•7 years ago
|
||
This is being tested as of https://github.com/mozilla/pontoon/commit/cc2c0af38fed56e39b4e5511c28de089b35d76bf.
Status: REOPENED → RESOLVED
Closed: 8 years ago → 7 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•