-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Update Transifex to use new SDK & improve code for M4 #11758
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…is used instead of username and password
…updated I needed to add a new dependency.
…entInterface TransifexFactory would use live Client which made it impossible to test. The problem was that the Guzzle Client service was overwritten by a Pipedrive client. So now the Pipedrive bundle use the core Client instead.
777af4d
to
ce039a3
Compare
Codecov Report
@@ Coverage Diff @@
## 4.4 #11758 +/- ##
============================================
+ Coverage 49.97% 50.07% +0.10%
+ Complexity 35424 35418 -6
============================================
Files 2145 2145
Lines 106358 106348 -10
============================================
+ Hits 53153 53256 +103
+ Misses 53205 53092 -113
|
RCheesley
approved these changes
Nov 30, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great for both pulling (with DE language) and pushing (with Webhooks bundle).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Issues or PR's relating to bugs
cla-signed
The PR contributors have signed the contributors agreement
essential
This must be done to close the milestone
ready-to-commit
PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged
translations
Anything related to translations
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is duplicate of #11724
Description:
This PR implements new Transifex SDK version:
mautic/Transifex-API#4
And improves the code related to pushing and pulling translations.
The API version we use today will stop work at the end of the month!
The old mautic:transifex:push used to only update resources. It never created the new ones. It had a --create option for that. The new command checks whether the resource exists and decides whether it needs to create or update it. So it may happen that once we run the new command for the first time we'll get a bunch of new resources created.
Steps to test this PR: