Skip to content

Unify the sync and upload translation-import implementations #4527

Description

@flodolo

pontoon/sync/core/translations_from_repo.py:update_db_translations() and pontoon/sync/upload.py:import_uploaded_translations() (#4511) solve the same problem (reconcile incoming translations against what's in the DB) but are architected differently. That makes it hard to tell how their behavior actually differs, and make future change to the sync code harder.

Related: translation matching in update_db_translations should compare value + properties via translations_equal() instead of matching on string in the DB query — see #4491 (comment).

See thread

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Default, possibly shipping in the following two quartersdays

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions