add cron jobs to svn up .po files periodically

NEW
Unassigned

Status

Webtools Graveyard
Verbatim
8 years ago
2 years ago

People

(Reporter: wenzel, Unassigned)

Tracking

Details

(Whiteboard: [better verbatim])

(Reporter)

Description

8 years ago
The .po files in Pootle are not updated automatically. Instead the localizers need to remember clicking the "update from version control" button.

We should consider adding cron jobs to update the files from SVN periodically.

What about merge conflicts, though?

Comment 1

8 years ago
Merge conflicts is a big issue, since it could render the files unusable by Pootle. Ideally we should factor out the merging code to the Translate Toolkit or at least a command line client in Pootle so that it can be done from cron or similar. My guess is that many teams might have simple setups where there might not be lots of people working both on Pootle and directly in SVN.

Comment 2

8 years ago
I think Friedel's suggestion is the best approach.  With Pootle we took the position that we don't want to mess with people messing in SVN.  So an update will always merge.

With code factored out this could be added as a manage.py task that can then be scripted in cron.

Comment 3

6 years ago
Let's get some traction to this. Fred,

Maybe we could do a cron and check against a locale in verbatim first to see if:

* there are some localizers logged in
* there was some activity ~5 mins ago
* `svn st` has output

and if any of those is met, maybe we shouldn't run update.

What do you think?
Whiteboard: [better verbatim]

Comment 4

5 years ago
Two things have made it into Pootle 2.2 that should make this easier:

1) Separate checkouts: we keep the VC checkout separate from the working files.  This means that VC is always pristine and this limits issues.
2) Two new manage command allow update and commit.

So a cron job can be created to periodically update with no risk of merge conflicts.  

I'm leaving this open for an actual implementation.  Best to schedule when we deploy.

Updated

5 years ago

Updated

5 years ago
(Assignee)

Updated

2 years ago
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.