Page MenuHomePhabricator

Remove CX1 codebase once there are no translations started with version 1
Closed, ResolvedPublic

Description

The new version (v2) of Content translation became the only one to translate new articles. So version 1 is only used when editing translations started long time ago. Since old translations are discarded automatically (T183890), at some point CX1 would no longer be reachable by users and the CX1 codebase can be removed.

Since there are may be common parts between CX1 and CX2 we need to be careful not to affect CX2 with this clean-up.

Event Timeline

Pginer-WMF triaged this task as Medium priority.Sep 9 2019, 5:07 PM
Pginer-WMF moved this task from Needs Triage to Enhancements on the ContentTranslation board.

CX1 code will be removed by end of this year

More likely by end of the next year, given CX1 was disabled for new translations just last month and purge scripts cleans drafts older than 420 days.

Thanks! A bunch of those involve CX1 which we would prefer not to touch at all until it is removed completely.

Hello, your annoying reminder is here :D, I think the 420 days you mentioned in T203695#5158942 has passed now, shall we drop them?

Can we?

Alternatively, we could explore something like https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ContentTranslation/+/607921 as an intermediary step. But I would need some guidance on how to test it and what should go where etc.

There are still quite a few CX1 drafts:

+---------+--------+----------+ 
| version | month | count(*) | 
+---------+--------+----------+ 
|      1 | 201903 |     171 | 
|      1 | 201904 |     236 | 
|      1 | 201905 |     108 | 
|      1 | 201906 |      83 | 
|      1 | 201907 |      70 | 
|      1 | 201908 |      68 | 
|      1 | 201909 |      71 | 
|      1 | 201910 |      64 | 
|      1 | 201911 |      45 | 
|      1 | 201912 |      13 | 
|      2 | 201903 |     783 | 
|      2 | 201904 |    2408 | 
|      2 | 201905 |    2719 | 
|      2 | 201906 |    2370 | 
|      2 | 201907 |    2611 | 
|      2 | 201908 |    2746 | 
|      2 | 201909 |    2786 | 
|      2 | 201910 |    2952 | 
|      2 | 201911 |    3889 | 
|      2 | 201912 |    3859 | 
|      2 | 202001 |    3930 | 
|      2 | 202002 |    4024 | 
|      2 | 202003 |    4811 | 
|      2 | 202004 |    5291 | 
|      2 | 202005 |    5778 | 
|      2 | 202006 |    5340 | 
+---------+--------+----------+

I think that in 3-5 months we could just decide to pull the plug on CX1 and delete all the remaining drafts for it, but I won't decide that on my own.

OK, in that case please make the neccecary investments to make this sustainable until then. Or postpone develments such as this one until later. I don't think we can justify both.

It wouldn't take much. Just combine all the CX1 modules and shared modules two larger ones. That is presumably what one would do regardless once CX1 is removed.

Change 671089 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Remove CX1 codebase

https://gerrit.wikimedia.org/r/671089

Change 672609 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Special:ContentTranslation: Remove access to CX1

https://gerrit.wikimedia.org/r/672609

Change 672609 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Special:ContentTranslation: Remove access to CX1

https://gerrit.wikimedia.org/r/672609

Change 671089 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Remove CX1 codebase

https://gerrit.wikimedia.org/r/671089