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

fix: single-step-import lack of auto-translation #2446

Closed

Conversation

balk-sp
Copy link

@balk-sp balk-sp commented Aug 29, 2024

Issue

The auto-translation step is not executed after single-step-import, when the project is configured to have auto-translation executed on import.

Solution

The PR is functional, but may not be in line with the event triggering/handling of Tolgee.
It may be possible that this PR can be boiled down to 1 line: firing the correct Event.

@balk-sp balk-sp changed the title Fix single-step-import lack of auto-translation fix: single-step-import lack of auto-translation Aug 30, 2024
@JanCizmar
Copy link
Contributor

Hey! Thanks for the PR. The AutoTranslation is handled by this listener: io.tolgee.component.autoTranslation.AutoTranslationListener#onApplicationEvent so maybe there's error somewhere around it?

@JanCizmar
Copy link
Contributor

Oh! Maybe it's because single step import doesn't have @RequestActivity(ActivityType.IMPORT) annotation in the controller method: io.tolgee.api.v2.controllers.dataImport.SingleStepImportController#doImport

@JanCizmar
Copy link
Contributor

I've fixed it here: #2447

@JanCizmar JanCizmar closed this Aug 30, 2024
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