Re: Extracting data from Zanata : Was Re: Fedmsg and Zanata
Máximo Castañeda <[email protected]>
| Newsgroups | gmane.linux.redhat.internationalization |
|---|---|
| Message-ID | <CAGHwxBuSx6+RNfkcGYykGrkrr16d+B2=vVD3De_MyJp88Gpv8g@mail.gmail.com> |
2017-08-29 14:18 GMT+02:00 Jean-Baptiste Holcroft <[email protected]>: > Le 29 août 2017 06:55:23 UTC-04:00, "Máximo Castañeda" <[email protected]> a écrit : > >>If you need something before Zanata 4, I can provide a userscript to >>get a list of what can be seen in the user activity pages (date, >>user, project-version, locale, action, number of words). > Hi, this looks very interesting bravo, can you please share this script? > I tried to write something too, but used the API (which timeouts quite often..). > > https://github.com/Jibec/fedora-translation-statistics > > Even if I'm unsatisfied of the data I can collect, it still gives a picture of the current status of hosted projects. https://pagure.io/us4z/blob/master/f/all_activity.user.js When testing I limited it to 3 locales, I haven't run it even once to get all the data. So I don't know, it may explode too, and when it gets an error it doesn't retry or at least keep whatever it got to have less work next time. After installed and activated, go to the languages list in zanata and you'll see an "Activity" button dumped there. Click it, wait, pray, wait a little bit more, and if you are lucky a table will appear at the end of the page. You may also want to have a look at the other one in the repo (please use safety goggles), which is what I really had before this thread. Even though it's not finished and the code is still littered with TODO, test code and probably even dead code, it is a bit more integrated in zanata's look and feel. That one is aimed at reviewers and coordinators, and it has dates selection, different ways to group the data and links to projects. It appears as a new "tab" in the language members page. Most of the warnings I gave for the other one apply here, too. And then someday I may get to an it-seems-it-runs state the one with which it all started: aimed at translators, it shows a tab in your dashboard with the same project stats and bars you see everywhere in zanata, but with all the projects/versions/groups/languages you are interested in and only those, all together in a place. Don't hold your breath. And I should write at least a few words with a description and installation instructions. _______________________________________________ trans mailing list -- [email protected] To unsubscribe send an email to [email protected]