pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

could not update translation without term

Open srl295 opened this issue 1 year ago • 3 comments

  1. setup Pontoon 2a0287244042fdecb65a40e0bcca766fa0cd9614 using dev setup docs here
  2. tried to add a string using the http://localhost:8000/admin/projects/terminology/strings/ page
  3. then in translating, clicking on the Save button such as http://localhost:8000/csw/terminology/common/?string=71 'spins' briefly but doesn't mark as saved
  4. browser console shows a 500 internal error, and docker console shows
pontoon.base.models.Entity.term.RelatedObjectDoesNotExist: Entity has no term.
[ERROR:django.server] 2024-01-20 06:54:05,420 "POST /translations/create/ HTTP/1.1" 500 18782

(above error seen mentioned in another issue but that's all)

  1. however, trying to leave the area said 'you have unsaved changes!'
  2. i went to http://localhost:8000/a/terminology/term/add/ and somehow added my term. Then i was able to save.

so it seems that:

  • the 500 internal err should be propagated to the UI somehow
  • otherwise there may be user error here

thanks!

srl295 avatar Jan 20 '24 07:01 srl295

Hey @srl295, please see https://mozilla-l10n.github.io/documentation/tools/pontoon/adding_new_terminology.html on how to add new terms.

mathjazz avatar Jan 25 '24 14:01 mathjazz

@mathjazz thanks, though:

  • should this be documented within pontoon?
  • are the UI issues an internal error within pontoon?

srl295 avatar Jan 25 '24 17:01 srl295

  • should this be documented within pontoon?

Yes. That's covered by https://github.com/mozilla/pontoon/issues/2214.

  • are the UI issues an internal error within pontoon?

Good point. This is still a bug that should be fixed.

mathjazz avatar Jan 25 '24 18:01 mathjazz

The error was fixed in #3097.

mathjazz avatar Apr 16 '24 14:04 mathjazz