Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set as old the previous translations with changes requested #1497

Merged
merged 9 commits into from
Nov 24, 2022

Conversation

amieiro
Copy link
Member

@amieiro amieiro commented Oct 4, 2022

What?

When a translator suggests different translations for the same original and the validator request changes for these translations, the old translations are not marked as "old", so we have the history in the main table.

Fixes #1496.

Why?

This PR solves the problem explained in #1496.

How?

This PR sets the previous translations with "changesrequested" status as old:

  • When a new translation is suggested.
  • When a new translation for the same user is set as changesrequested. This case should never happen, because we should not have 1 translation in changesrequested and another in suggested, but it is simply to avoid possible edge cases.

Testing Instructions

You can follow the steps available in #1496 to test this PR.

Screenshots or screencast

See #1496.

@akirk
Copy link
Member

akirk commented Oct 5, 2022

Can we add a unit test for this?

@amieiro amieiro requested a review from akirk October 7, 2022 18:24
Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it works, also verified that the (most of the) unit tests fail with the old code.

@amieiro amieiro merged commit 42841f8 into GlotPress:develop Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The old "Changes requested" translations are not set as old
3 participants