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

feat: sync & compare commands #16

Merged
merged 10 commits into from
Jan 13, 2023
Merged

feat: sync & compare commands #16

merged 10 commits into from
Jan 13, 2023

Conversation

cyyynthia
Copy link
Collaborator

The long awaited commands to sync code projects and localization projects!

tolgee compare is essentially a dry-run of tolgee sync. There is the option to skip deleting unused keys when syncing, aborting on warnings, and dumping a backup of all keys before syncing.

@cyyynthia cyyynthia added the enhancement New feature or request label Jan 11, 2023
@cyyynthia cyyynthia requested a review from stepan662 January 11, 2023 16:08
Copy link
Contributor

@stepan662 stepan662 left a comment

Choose a reason for hiding this comment

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

Good job with the speed improvements 👍

I was briefely testing it with the tolgee-platform and i've noticed following issues:

  • fails when project has no keys yet
TypeError: Cannot read properties of undefined (reading 'keys')
    at /Users/stepangranat/Projects/tolgee/tolgee-cli/dist/client/project.js:20:38
  • node gives me this warning:
(node:92961) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Worker]. Use emitter.setMaxListeners() to increase limit
    at _addListener (node:events:601:17)
    at Worker.addListener (node:events:619:10)
    at Worker.once (node:events:663:8)
    at callWorker (/Users/stepangranat/Projects/tolgee/tolgee-cli/dist/extractor/worker.js:50:12)

src/commands/extract.ts Show resolved Hide resolved
src/commands/sync/sync.ts Outdated Show resolved Hide resolved
src/commands/sync/sync.ts Outdated Show resolved Hide resolved
it was not actually leaking anything, but we were exceeding Node's
maximum event listener count for the Worker object when real workloads
were hitting it
@JanCizmar
Copy link
Contributor

When the extraction is running, there should be the cool animation of running mouse I've created before. This is important! ⬆️

@cyyynthia cyyynthia merged commit 1093dd6 into main Jan 13, 2023
@cyyynthia cyyynthia deleted the cynthia/sync branch January 13, 2023 15:54
@github-actions
Copy link

🎉 This PR is included in version 1.0.0-prerelease.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants