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

ThirdPartySyncCommand - Adding new parameters #613

Closed
wants to merge 1 commit into from
Closed

ThirdPartySyncCommand - Adding new parameters #613

wants to merge 1 commit into from

Conversation

comunacho
Copy link
Contributor

To implement the PULL, PUSH and PUSH_TRANSLATIONS commands in ThirdPartyService, we need to update ThirdPartySyncCommand 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

Copy link
Collaborator

@aurambaj aurambaj left a 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>
Copy link
Collaborator

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>
Copy link
Collaborator

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)
Copy link
Collaborator

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
Copy link
Collaborator

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);
Copy link
Collaborator

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?

@comunacho
Copy link
Contributor Author

Closed in favor of #614

@comunacho comunacho closed this Jul 27, 2020
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.

2 participants