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

Bulk merge CLI updates from ehoogerbeets/mojito #984

Merged
merged 8 commits into from
Nov 23, 2023
Merged

Conversation

wadimw
Copy link

@wadimw wadimw commented Nov 17, 2023

Applied changes from @ehoogerbeets fork with CLI updates, cleaned them up and added some tests.

  • fix for empty drop creation bug (88f3b06)
  • added --drop-id CLI parameter to drop-import command (6d6fb56)
  • added drop-cancel and drop-close commands (bf355c2)
  • added --quiet CLI switch to switch to minimal output (fd67a69)
  • added drop-view command to list info about available drops (7160496)

ehoogerbeets and others added 3 commits November 15, 2023 15:53
Prevent empty drop creation when locales are specified
Reimplemented logic in test helper method CLITestBase#waitForRepositoryToHaveStringsForTranslations to decouple it from DropExportCommand#shouldCreateDrop.
This is done to avoid CommandException thrown by shouldCreateDrop which can occur when the DropExportCommand is given locales that do not exist in a given repository.

Helper method is only supposed to check if any string in any of the translatable locales of a repository is awaiting translation (i.e. what the shouldCreateDrop checks when no locales are specified).
The logic is not changed here.

This is based on fix c28eabc.
@wadimw wadimw force-pushed the cli-updates-cleanup branch from 6feed1b to f5908a5 Compare November 17, 2023 20:00
Given a repository in which only some (but not all) locales are fully translated, when drop export is triggered specifying only locales which are fully translated, drop should not be created (because it would be empty).

This is a test for fix 88f3b06.
@wadimw wadimw added the legacy Pull requests for legacy Mojito code which should be merged into legacy branch label Nov 18, 2023
@wadimw wadimw force-pushed the cli-updates-cleanup branch from 5739fce to e5ac9ae Compare November 20, 2023 13:11
@wadimw wadimw mentioned this pull request Nov 20, 2023
wadimw and others added 4 commits November 21, 2023 00:53
Add commands to cancel a drop or mark it as complete
Add quiet mode for drop-export command
@wadimw wadimw force-pushed the cli-updates-cleanup branch from 7ebd01b to 7160496 Compare November 21, 2023 01:14
@wadimw wadimw changed the title Cli updates cleanup Bulk merge CLI updates from ehoogerbeets/mojito Nov 21, 2023
@wadimw wadimw marked this pull request as ready for review November 21, 2023 11:26
@wadimw wadimw merged commit 7bf2bf9 into legacy Nov 23, 2023
2 checks passed
@wadimw wadimw deleted the cli-updates-cleanup branch November 23, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy Pull requests for legacy Mojito code which should be merged into legacy branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants