-
Notifications
You must be signed in to change notification settings - Fork 73
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
ThirdPartySyncCommand - Adding new parameters #613
Conversation
…tions implementation
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.
also as I see you're making more and more change, I'm not sure my suggestion of working of master is a good idea. If you foresee the merge to spring2x branch to become complicated, you should probably move to that branch
@@ -217,7 +218,6 @@ | |||
<groupId>com.box.l10n.mojito</groupId> | |||
<artifactId>mojito-restclient</artifactId> | |||
<version>0.111-SNAPSHOT</version> | |||
<scope>test</scope> |
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.
why removing the test scope here?
@@ -205,6 +205,7 @@ | |||
<dependency> | |||
<groupId>junit</groupId> | |||
<artifactId>junit</artifactId> | |||
<scope>test</scope> |
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.
ooops
@@ -54,8 +54,7 @@ | |||
@Parameter(names = {Param.TARGET_DIRECTORY_LONG, Param.TARGET_DIRECTORY_SHORT}, arity = 1, required = false, description = Param.TARGET_DIRECTORY_DESCRIPTION) | |||
String targetDirectoryParam; | |||
|
|||
@Parameter(names = {Param.REPOSITORY_LOCALES_MAPPING_LONG, Param.REPOSITORY_LOCALES_MAPPING_SHORT}, arity = 1, required = false, description = "Locale mapping, format: \"fr:fr-FR,ja:ja-JP\". " | |||
+ "The keys contain BCP47 tags of the generated files and the values indicate which repository locales are used to fetch the translations.") | |||
@Parameter(names = {Param.REPOSITORY_LOCALES_MAPPING_LONG, Param.REPOSITORY_LOCALES_MAPPING_SHORT}, arity = 1, required = false, description = Param.REPOSITORY_LOCALES_MAPPING_DESCRIPTION) |
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.
thanks!
getL10nJCommander().run("thirdparty-sync", "-r", repository.getName(), "-p", "does-not-matter-yet", "-ps", " _"); | ||
String projectId = testIdWatcher.getEntityName("projectId"); | ||
|
||
// TODO: For a plural separator like " _" this test will fail. The current version we have for |
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.
I see now why you created the issue
public void setUp() throws Exception { | ||
testingJobListener = new TestingJobListener(objectMapper); | ||
jobMatcher = new PollableTaskJobMatcher<>(ThirdPartySyncJob.class); | ||
scheduler.getListenerManager().addJobListener(testingJobListener, jobMatcher); |
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.
this will also impact other test, i'm always reticent with changing the application context. Can we validate in some other ways?
Closed in favor of #614 |
To implement the
PULL
,PUSH
andPUSH_TRANSLATIONS
commands inThirdPartyService
, we need to updateThirdPartySyncCommand
and several dependencies to utilize these new parameters:--skip-text-units-with-pattern
and--skip-assets-path-pattern
.Please note the TODO added to
ThirdPartySyncCommandTest
and documented in #612