pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Remove bilingual files removed from repository

Open bugzilla-to-github opened this issue 8 years ago • 4 comments

This issue was created automatically by a script.

Bug 1345431

Bug Reporter: @mathjazz CC: @TheoChevalier

Projects using bilingual file formats (xliff, po, lang...) can have different files exposed for each locale. If the file is added to the locale folder in repository, we detect it and enable it Pontoon. If it's removed, we also detect it, but don't remove it from Pontoon.

This doesn't happen often, but it still does: https://github.com/mozilla-l10n/engagement-l10n/commit/7bac95f3d0ced07a109d5bb8f9497fe8fa9568a4

Implementations notes: Files are represented with an instance of the TranslatedResource model. If an instance exist for the given locale, we expose the file in Pontoon. When a file is removed from the repository, we need to remove the TranslatedResource instance and aggregate denormalized stats for the corresponding Project, Locale and ProjectLocale instance.

Unlike changed_source_files(), changed_locales_files() ignores removed_files: https://github.com/mozilla/pontoon/blob/master/pontoon/sync/vcs/models.py#L129

bugzilla-to-github avatar Mar 07 '17 19:03 bugzilla-to-github

Comment Author: @mathjazz

*** Bug #1427767 has been marked as a duplicate of this bug. ***

bugzilla-to-github avatar Jan 03 '18 00:01 bugzilla-to-github

Bumping priority, because the bug might hit us again soon after we stop using project configuration for "Foundation website - content".

mathjazz avatar Sep 09 '22 09:09 mathjazz

@mathjazz Is it expected to have a P1 issue open for so long?

flodolo avatar Mar 06 '24 14:03 flodolo

No. :)

This should be taken care of as part of the "Improve Pontoon sync reliability" OKR.

Also, P1 was probably to high priority in first place.

mathjazz avatar Mar 06 '24 15:03 mathjazz