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

I18N-1297 - Temporarily block third-party sync for a Text Unit Variant #165

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

DarKhaos
Copy link

@DarKhaos DarKhaos commented Oct 18, 2024

Added a new status to text unit variants and avoided updating them

@DarKhaos DarKhaos requested a review from a team as a code owner October 18, 2024 23:47
@DarKhaos DarKhaos force-pushed the I18N-1297 branch 7 times, most recently from 482cfbb to ddf0bc3 Compare October 22, 2024 12:27
@@ -263,7 +263,8 @@ void importTextUnitsOfLocaleAndAsset(
textUnitForBatchImport.getStatus(),
textUnitForBatchImport.isIncludedInLocalizedFile(),
importTime,
importedBy);
importedBy,
true);
Copy link
Author

Choose a reason for hiding this comment

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

Does not update text unit variants with TRANSLATED_IN_MOJITO status

noUpdate = true;
}
}

return new AddTMTextUnitCurrentVariantResult(!noUpdate, tmTextUnitCurrentVariant);
}

public AddTMTextUnitCurrentVariantResult addTMTextUnitCurrentVariantWithResult(
Copy link
Author

@DarKhaos DarKhaos Oct 22, 2024

Choose a reason for hiding this comment

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

Method with existing parameters and behavior (checkTranslatedInMojito set to false)

@@ -52,4 +52,6 @@ public enum StatusFilter {
* TextUnits that are not rejected, ie {@link TMTextUnitVariant#includedInLocalizedFile} is true.
*/
NOT_REJECTED,
/** TextUnits with status ({@link TMTextUnitVariant.Status#TRANSLATED_IN_MOJITO}). */
TRANSLATED_IN_MOJITO,
Copy link
Member

Choose a reason for hiding this comment

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

Similar to previous comment around naming

@@ -20,7 +20,8 @@ class TextUnitsreviewModal extends React.Component {
this.REVIEW = "review";
this.REJECT = "reject";
this.ACCEPT = "accept";
this.TRANSLATE = "translate";
this.TRANSLATE = "translate"
this.TRANSLATED_IN_MOJITO = "translated_in_mojito";
Copy link
Member

Choose a reason for hiding this comment

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

Adding here to be tracked by naming conversation

@DarKhaos DarKhaos force-pushed the I18N-1297 branch 3 times, most recently from a3a1a0d to c8b72e7 Compare October 24, 2024 23:09
Added a new status to text unit variants and avoid updating them
@DarKhaos DarKhaos merged commit ec41231 into master Oct 25, 2024
2 checks passed
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.

3 participants