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

Sanitize values before sending them to remote translation client #3874

Conversation

taitus
Copy link
Member

@taitus taitus commented Dec 3, 2019

References

Objectives

Sanitize resource fields values from ddbb before send to remote translate client.

Visual Changes

None

Notes

Before we saved the sanitized values in database
In #3749 was removed sanitize before saving in database and is only managed in the views.
The remote translation feature has been affected by this change, as we send the database value directly to the remote translation client. The solution is to sanitize the values of the fields before sending them to the remote translation client.

@taitus taitus requested a review from javierm December 3, 2019 18:39
@taitus taitus self-assigned this Dec 3, 2019
@javierm javierm added the Bug label Dec 3, 2019
@javierm javierm added this to Reviewing in Roadmap via automation Dec 3, 2019
@javierm javierm self-assigned this Dec 3, 2019
Copy link
Member

@javierm javierm left a comment

Choose a reason for hiding this comment

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

@taitus Great you found what was causing this issue! 🎉

I've left a couple of comments 😄.

lib/remote_translations/caller.rb Outdated Show resolved Hide resolved
spec/lib/remote_translations/caller_spec.rb Show resolved Hide resolved
Roadmap automation moved this from Reviewing to Doing Dec 3, 2019
Sanitize resource fields values from ddbb before send
to remote translate client.
@taitus taitus force-pushed the sanitize-descriptions-on-remote-translations branch from b9251b8 to d1c9df5 Compare December 4, 2019 16:05
@taitus taitus requested a review from javierm December 5, 2019 18:01
@taitus taitus changed the title [WIP] Sanitize resource fields values before send to remote translation client Sanitize resource fields values before send to remote translation client Dec 5, 2019
@javierm javierm moved this from Doing to Reviewing in Roadmap Dec 5, 2019
Roadmap automation moved this from Reviewing to Testing Dec 10, 2019
@javierm javierm changed the title Sanitize resource fields values before send to remote translation client Sanitize resource fields values before sending them to remote translation client Dec 10, 2019
@javierm javierm changed the title Sanitize resource fields values before sending them to remote translation client Sanitize values before sending them to remote translation client Dec 10, 2019
@javierm javierm merged commit f808af0 into consuldemocracy:master Dec 10, 2019
Roadmap automation moved this from Testing to Release 1.1.0 Dec 10, 2019
smarques pushed a commit to venetochevogliamo/consul that referenced this pull request Apr 29, 2020
…riptions-on-remote-translations

Sanitize values before sending them to remote translation client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

Remote translations from other languages not working as expected.
3 participants