<div dir="ltr"><span style="font-size:12.8px">> I have found that API 'stats/user/%s/%s..%s'</span><br style="font-size:12.8px"><span style="font-size:12.8px">> and API 'stats/project/%s/version/%s/</span><span style="font-size:12.8px">contributor/%s/%s..%s' generate</span><br style="font-size:12.8px"><span style="font-size:12.8px">> different results.</span><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">There's a slight difference between "</span><span style="font-size:12.8px">stats/user/%s/%s..%s' and </span><span style="font-size:12.8px"> '</span><span style="font-size:12.8px">stats/project/%s/version/%s/</span><span style="font-size:12.8px">contributor/%s/%s..%s' as Patrick explained. </span></div><div><span style="font-size:12.8px">To sync with what shown in the user profile page in Zanata, '</span><span style="font-size:12.8px">stats/user/%s/%s..%s' is use for </span>Stackalytics.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">To fix it, I think we can change the way how Stackalytics uses Zanata's API. Based on 'stats/user/%s/%s..%s' we can get 'savedDate'. So just use the 'savedDate' to display on Stackalytics.</blockquote><div> </div><div>Yes. Zanata does returns daily statistics based on search query(last parameter in the api request). Depending on how you want to show in Stackalytics, you can just manipulate the results to daily, weekly.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br></div><div><font face="arial, helvetica, sans-serif" color="#999999"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">---------------------------------------------</span></font></div><div><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"><font face="arial, helvetica, sans-serif" color="#666666"><br></font></span></div><font face="arial, helvetica, sans-serif" color="#666666"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Alex Eng</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#666666">Senior Software Engineer<br style="font-size:13.3333330154419px"><span style="font-size:12.8000001907349px">Globalisation Tools Engineering</span><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">DID:</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><span style="font-size:13.3333330154419px"><a href="callto:+61+3514+8262" style="text-decoration:none" target="_blank">+61 3514 8262</a></span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Mobile:</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><span style="font-size:13.3333330154419px"><a href="callto:+614+2335+3457" style="text-decoration:none" target="_blank">+614 2335 3457</a></span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><br style="font-size:13.3333330154419px"><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Red Hat, Asia-Pacific Pty Ltd</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Level 1, 193 North Quay</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Brisbane 4000</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Office:</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><span style="font-size:13.3333330154419px"><a href="callto:+61+7+3514+8100" style="text-decoration:none" target="_blank">+61 7 3514 8100</a></span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Fax:</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><span style="font-size:13.3333330154419px"><a href="callto:+61+7+3514+8199" style="text-decoration:none" target="_blank">+61 7 3514 8199</a></span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><br style="font-size:13.3333330154419px"><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)">Website:</span><span style="font-size:13.3333330154419px;background-color:rgb(253,253,253)"> </span><span style="font-size:13.3333330154419px"><a href="http://www.redhat.com/" style="text-decoration:none" target="_blank">www.redhat.com</a></span></font><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, May 17, 2016 at 5:18 AM, Remo Mattei <span dir="ltr"><<a href="mailto:remo@rm.ht" target="_blank">remo@rm.ht</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Ian, <div>as you can see </div><div><br></div><div><dl style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px"><dt style="margin:0.5em 0px 0.3em;padding:0px;font-weight:bold;max-width:45em">Launchpad Id:</dt><dd style="margin:0px 0px 0.5em;padding:0px;max-width:45em">remo-o</dd></dl><dl style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px"><dt style="margin:0.5em 0px 0.3em;padding:0px;font-weight:bold;max-width:45em">Email:</dt><dd title="This email address is only visible to Launchpad users." style="margin:0px 0px 0.5em;padding:0px;max-width:45em"><span style="white-space:nowrap"><img alt="" style="border:none" height="14" width="14" src="cid:9B378D15-7191-4088-A9E3-3FBD40A83F0B@local"> <a href="mailto:Remo@rm.ht" target="_blank">Remo@rm.ht</a> <br></span></dd></dl><div><br></div><div><br></div><div>Thanks </div><div><blockquote type="cite"><div>On May 16, 2016, at 12:01, Remo Mattei <<a href="mailto:remo@rm.ht" target="_blank">remo@rm.ht</a>> wrote:</div><br><div><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">my id is the same on launchpad and zanate<span> </span></span><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">which is<span> </span></span><a href="mailto:Remo@rm.ht" style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">Remo@rm.ht</a><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">This should be also usable on OpenStack.<span> </span></span><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Any other suggestions<span> </span></span><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite" style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">On May 16, 2016, at 04:02, Ian Y. Choi <<a href="mailto:ianyrchoi@gmail.com" target="_blank">ianyrchoi@gmail.com</a>> wrote:<br><br>Hello,<br><br><br>On 5/16/16 4:33 AM, Remo Mattei wrote:<br><blockquote type="cite">Well I just checked and no there are no diff on this list but I still do not have any words translated.<br>What needs to be done to have this fixed?<br></blockquote>What are your launchpad and Zanata ID?<br>If they are different, Stackalytics will not find your translation counts.<br><br>I am asking because your translated words are zero on Stackalytics, which may be different from<br>Akihiro-san and Kato-san's case because their counts are not zero.<br><br>If you are in the case I mentioned, then you need to add your user data into detault_data.json in the Stackalytics repository,<br>similar to <a href="https://review.openstack.org/#/c/284638/1/etc/default_data.json" target="_blank">https://review.openstack.org/#/c/284638/1/etc/default_data.json</a> .<br><br>Fortunately(?), my launchpad, gerrit and Zanata IDs are all the same, so I do not need to add my date on this file :)<br><br><br>With many thanks,<br><br>/Ian<br><br><blockquote type="cite"><br>Remo<br><blockquote type="cite">On May 15, 2016, at 10:55, Ian Y. Choi <<a href="mailto:ianyrchoi@gmail.com" target="_blank">ianyrchoi@gmail.com</a> <<a href="mailto:ianyrchoi@gmail.com" target="_blank">mailto:ianyrchoi@gmail.com</a>>> wrote:<br><br>Hello Remo!<br><br>Your translation count on Stackalytics is zero?<br>If then, I think [1] and [2] will help to solve your problem :)<br><br>[1]<a href="http://lists.openstack.org/pipermail/openstack-dev/2016-February/087537.html" target="_blank">http://lists.openstack.org/pipermail/openstack-dev/2016-February/087537.html</a><br>[2]<a href="http://lists.openstack.org/pipermail/openstack-dev/2016-February/087659.html" target="_blank">http://lists.openstack.org/pipermail/openstack-dev/2016-February/087659.html</a><br><br><br>With many thanks,<br><br>/Ian<br><br>Remo Mattei wrote on 5/16/2016 2:22 AM:<br><blockquote type="cite">The last 2 months I translated about 400 words but stack does not even show any. It will be great to get this fixed.<br><br>Thanks<br><br>Inviato da iPhone<br><br><blockquote type="cite">Il giorno 15 mag 2016, alle ore 09:56, Ian Y. Choi <<a href="mailto:ianyrchoi@gmail.com" target="_blank">ianyrchoi@gmail.com</a> <<a href="mailto:ianyrchoi@gmail.com" target="_blank">mailto:ianyrchoi@gmail.com</a>>> ha scritto:<br><br>Hello,<br><br>I might have found the problem.<br><br>The problem is that there can be several 'Translated' results within a week,<br>however, those results are saved with the same primary key.<br><br>I have just proposed <a href="https://review.openstack.org/316460" target="_blank">https://review.openstack.org/316460</a> .<br><br>I am not sure whether 'date' field is used on other Stackalytics sources,<br>but at least, generating the primary key for translation records on record_processor.py<br>does not use 'savedDate' field, as Shengjing mentioned.<br>If 'date' field is used on other Stackalytics sources, please tell me, then I will change the review :)<br><br><br>With many thanks,<br><br>/Ian<br><br><br>SJ Zhu wrote on 5/16/2016 12:14 AM:<br><blockquote type="cite"><blockquote type="cite">On Sun, May 15, 2016 at 10:42 PM, Ian Y. Choi <<a href="mailto:ianyrchoi@gmail.com" target="_blank">ianyrchoi@gmail.com</a> <<a href="mailto:ianyrchoi@gmail.com" target="_blank">mailto:ianyrchoi@gmail.com</a>>> wrote:<br>I have a question, although it is not mainly related to wrong Stackalytics<br>stats.<br><br>I have found that API 'stats/user/%s/%s..%s'<br>and API 'stats/project/%s/version/%s/contributor/%s/%s..%s' generate<br>different results.<br><br>For example, from Apr 1 2016 to today, my count is 34320 with the first API,<br>but the send API generates 29490 for the same period.<br><br>I do know why the two APIs generate different numbers.<br>Can statistics numbers on user API and the sum of results from each project<br>API be different?<br></blockquote>Hi all,<br><br>Previously Stackalytics uses API<br>'stats/project/%s/version/%s/contributor/%s/%s..%s'.<br>But I change it to 'stats/user/%s/%s..%s' in<br><a href="https://review.openstack.org/#/c/288871/" target="_blank">https://review.openstack.org/#/c/288871/</a><br><br>I may find the BUG but I have no time to fix it these days. So I hope<br>someone to help.<br><br>Stackalytics will get the results every week. And<br>'stats/user/%s/%s..%s' will return<br>everyday's count. However Stackalytics seems not to sum a week's work.<br><br>To fix it, I think we can change the way how Stackalytics uses<br>Zanata's API. Based on<br>'stats/user/%s/%s..%s' we can get 'savedDate'. So just use the<br>'savedDate' to display<br>on Stackalytics. I haven't read the code carefully but I think the<br>change is possible.<br>What's more we can debug the wrong results on Stackalytics more conveniently.<br><br>But there's another question. How can we fix the old results on Stackalytics?<br></blockquote><br>_______________________________________________<br>OpenStack-I18n mailing list<br><a href="mailto:OpenStack-I18n@lists.openstack.org" target="_blank">OpenStack-I18n@lists.openstack.org</a> <<a href="mailto:OpenStack-I18n@lists.openstack.org" target="_blank">mailto:OpenStack-I18n@lists.openstack.org</a>><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n</a><br><br><br><br></blockquote></blockquote><br><br>_______________________________________________<br>OpenStack-I18n mailing list<br><a href="mailto:OpenStack-I18n@lists.openstack.org" target="_blank">OpenStack-I18n@lists.openstack.org</a> <<a href="mailto:OpenStack-I18n@lists.openstack.org" target="_blank">mailto:OpenStack-I18n@lists.openstack.org</a>><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n</a><br><br></blockquote><br></blockquote><br><br><br><br><br></blockquote><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">OpenStack-I18n mailing list</span><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="mailto:OpenStack-I18n@lists.openstack.org" style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">OpenStack-I18n@lists.openstack.org</a><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n" style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n</a><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:13px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">!DSPAM:573a19236031948371752!</span></div></blockquote></div><br></div></div><br>_______________________________________________<br>
OpenStack-I18n mailing list<br>
<a href="mailto:OpenStack-I18n@lists.openstack.org">OpenStack-I18n@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-i18n</a><br>
<br></blockquote></div><br></div>