-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
482cfbb
to
ddf0bc3
Compare
@@ -263,7 +263,8 @@ void importTextUnitsOfLocaleAndAsset( | |||
textUnitForBatchImport.getStatus(), | |||
textUnitForBatchImport.isIncludedInLocalizedFile(), | |||
importTime, | |||
importedBy); | |||
importedBy, | |||
true); |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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)
5e54348
to
484d36e
Compare
webapp/src/main/java/com/box/l10n/mojito/entity/TMTextUnitVariant.java
Outdated
Show resolved
Hide resolved
@@ -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, |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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
a3a1a0d
to
c8b72e7
Compare
Added a new status to text unit variants and avoid updating them
Added a new status to text unit variants and avoided updating them