Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29886648: Issue #6942 - Add XTM integration in CMS (Closed)

Created:
Sept. 20, 2018, 4:24 p.m. by Tudor Avram
Modified:
Oct. 10, 2018, 3:09 p.m.
Reviewers:
Vasily Kuznetsov, wspee
Visibility:
Public.

Description

Issue #6942 - Add XTM integration in CMS

Patch Set 1 #

Total comments: 24

Patch Set 2 : Addressed initial comments #

Total comments: 99

Patch Set 3 : Addressed comments on patch set #2 #

Total comments: 6

Patch Set 4 : Addressed comments from patch set #3 #

Total comments: 6

Patch Set 5 : Addressed comments from Patch Set #4 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+2650 lines, -1 line) Patch
M .gitignore View 1 chunk +1 line, -0 lines 0 comments Download
M .hgignore View 1 1 chunk +1 line, -0 lines 0 comments Download
A cms/bin/xtm_translations.py View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M cms/sources.py View 1 2 3 4 1 chunk +10 lines, -0 lines 1 comment Download
A + cms/translations/__init__.py View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + cms/translations/xtm/__init__.py View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A cms/translations/xtm/cli.py View 1 2 3 1 chunk +162 lines, -0 lines 1 comment Download
A cms/translations/xtm/constants.py View 1 2 3 1 chunk +166 lines, -0 lines 0 comments Download
A cms/translations/xtm/projects_handler.py View 1 2 3 1 chunk +190 lines, -0 lines 0 comments Download
A cms/translations/xtm/utils.py View 1 2 3 4 1 chunk +443 lines, -0 lines 0 comments Download
A cms/translations/xtm/xtm_api.py View 1 2 3 1 chunk +432 lines, -0 lines 1 comment Download
A docs/usage/xml-sync.md View 1 2 3 1 chunk +113 lines, -0 lines 4 comments Download
M tests/conftest.py View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M tests/test_site/settings.ini View 1 2 chunks +4 lines, -2 lines 0 comments Download
A tests/test_xtm_api.py View 1 2 3 1 chunk +140 lines, -0 lines 0 comments Download
A tests/test_xtm_translate.py View 1 2 3 1 chunk +313 lines, -0 lines 0 comments Download
A tests/test_xtm_translations_utils.py View 1 2 3 1 chunk +221 lines, -0 lines 0 comments Download
M tests/utils.py View 1 2 2 chunks +37 lines, -0 lines 0 comments Download
A tests/xtm_conftest.py View 1 2 1 chunk +114 lines, -0 lines 0 comments Download
A tests/xtm_mock_api.py View 1 2 3 1 chunk +273 lines, -0 lines 0 comments Download
M tox.ini View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 12
Tudor Avram
Hi Vasily and Winsley, Here is my code for the XTM integration into CMS. There ...
Sept. 20, 2018, 4:33 p.m. (2018-09-20 16:33:32 UTC) #1
Vasily Kuznetsov
Hey Tudor! These are my comments so far. Don't be surprised that they are kind ...
Sept. 24, 2018, 4:32 p.m. (2018-09-24 16:32:12 UTC) #2
Tudor Avram
Hi Vasily, I addressed your initial comments. Let me know what you think. Thanks, Tudor. ...
Sept. 25, 2018, 12:26 p.m. (2018-09-25 12:26:25 UTC) #3
Vasily Kuznetsov
Hi Tudor, I have gone through everything in cms/bin/xtm_translations except for xtm_api.py. Below are my ...
Sept. 26, 2018, 10:43 a.m. (2018-09-26 10:43:17 UTC) #4
Vasily Kuznetsov
Hi Tudor, I've finished going through everything. Here are some more comments! Cheers, Vasily https://codereview.adblockplus.org/29886648/diff/29891625/cms/bin/xtm_translations/xtm_api.py ...
Sept. 26, 2018, 3:45 p.m. (2018-09-26 15:45:28 UTC) #5
Tudor Avram
Hi Vasily, I addressed your comments from the previous patch (except for a couple of ...
Oct. 4, 2018, 6:48 a.m. (2018-10-04 06:48:17 UTC) #6
Vasily Kuznetsov
Hi Tudor, There are just a couple of small kinks left (see below) but I ...
Oct. 5, 2018, 10:56 a.m. (2018-10-05 10:56:27 UTC) #7
Tudor Avram
Hi Vasily, Here is my ammended code. I addressed all of your comments and added ...
Oct. 5, 2018, 12:34 p.m. (2018-10-05 12:34:41 UTC) #8
Vasily Kuznetsov
Hi Tudor, Looks good, just a couple more formalities :) Cheers, Vasily https://codereview.adblockplus.org/29886648/diff/29902566/cms/bin/xtm_translations.py File cms/bin/xtm_translations.py ...
Oct. 5, 2018, 2:51 p.m. (2018-10-05 14:51:25 UTC) #9
Tudor Avram
Hi Vasily, I addressed your comments from the previous patch set. There are a couple ...
Oct. 5, 2018, 4:28 p.m. (2018-10-05 16:28:49 UTC) #10
Vasily Kuznetsov
LGTM
Oct. 8, 2018, 4:26 p.m. (2018-10-08 16:26:02 UTC) #11
wspee
Oct. 10, 2018, 3:09 p.m. (2018-10-10 15:09:17 UTC) #12
Message was sent while issue was closed.
That's all for now. XTM seems to be stuck in "analysis" so I cannot continue
trying this out for now but I may have a few more comments once I can continue
:/. I'll try again tomorrow :party:.

https://codereview.adblockplus.org/29886648/diff/29902698/cms/translations/xt...
File cms/translations/xtm/cli.py (right):

https://codereview.adblockplus.org/29886648/diff/29902698/cms/translations/xt...
cms/translations/xtm/cli.py:46: username = input_fn('Username: ')
This should be the client not the user name
(<https://www.xtm-cloud.com/rest-api/#tag/Authentication>). Very confusing since
I tried to login via my username (wspee) and the login call never fails (even
with wrong password etc) :).

https://codereview.adblockplus.org/29886648/diff/29902698/cms/translations/xt...
File cms/translations/xtm/xtm_api.py (right):

https://codereview.adblockplus.org/29886648/diff/29902698/cms/translations/xt...
cms/translations/xtm/xtm_api.py:26: _BASE_URL =
'https://wstest2.xtm-intl.com/rest-api/'
This is a hardcoded url to a user specific test system. Not sure it needs to be
configure/changeable but at least for production it should be
<https://eu1.xtm.cloud/rest-api/>?

https://codereview.adblockplus.org/29886648/diff/29902698/docs/usage/xml-sync.md
File docs/usage/xml-sync.md (right):

https://codereview.adblockplus.org/29886648/diff/29902698/docs/usage/xml-sync...
docs/usage/xml-sync.md:41: * *--source-lang* = The language of the source files.
If not provided,
This parameter is not mandatory

https://codereview.adblockplus.org/29886648/diff/29902698/docs/usage/xml-sync...
docs/usage/xml-sync.md:43: * *--save-id* = Whether to save the id of the newly
created project into
This parameter is not mandatory

https://codereview.adblockplus.org/29886648/diff/29902698/docs/usage/xml-sync...
docs/usage/xml-sync.md:64: python -m cms.bin.xtm_translations [-h] [-v] upload
[-h] [--no-overwrite]
For a per issue workflow (and also in general) it would be very nice to be able
to specify the project id via the command line.

https://codereview.adblockplus.org/29886648/diff/29902698/docs/usage/xml-sync...
docs/usage/xml-sync.md:64: python -m cms.bin.xtm_translations [-h] [-v] upload
[-h] [--no-overwrite]
Also it might make sense to document the settings.ini parameter?

Powered by Google App Engine
This is Rietveld