Needs review
Project:
Localization server
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Jun 2009 at 17:35 UTC
Updated:
7 Aug 2012 at 03:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidPatch attached for review. Sorry, my IDE auto-corrects trailing whitespace, so there's not too much I can do since I don't like to disable it. :)
Comment #2
pasqualle+1
yes, especially a core committer should use a text editor which automatically removes trailing spaces. It is really bad to create and read patches like this. This is the no 2 reason when I want to contribute but I refuse to.. no 1 is the limited time..
Comment #3
pvasili commentedYou can make SQL queries on the PHP block. It's easy ;)
I think more useful to integrate in the VotingAPI (see at: http://drupaler.ru/translate/download)
Comment #5
gábor hojtsyThe idea looks cool. However, to make this work on heavy duty sites like localize.drupal.org, we need to cache this data heavily.
Comment #6
podaroksubscribe
looking for adding counters for suggested+approved+declined+notapproved_suggestions for every user too...
Comment #7
claudiu.cristea@Gábor Hojtsy,
I think that implementing some cache clearing for native block caching may be enough. Administrators can enable the Block caching.
The default
BLOCK_CACHE_PER_ROLEis suitable. We only have to implement:where the table
{l10n_community_translations}get INSERTed/UPDATEd/DELETEed.Comment #8
gábor hojtsy@claudiu.cristea: given how often that table changes, that would be almost identical to no caching. We need to accept some staleness of that data at least. Maybe even include the date of generation in the block and leave it stale for a day or so.
Comment #9
podarokone day - is a good period for recalculation...
Comment #10
claudiu.cristeaComment #11
claudiu.cristeaThis patch add caching to #1.
Comment #12
claudiu.cristeaUps... There was a bug in the above patch...
Check this one...
Comment #13
tobiasbmy version
Comment #14
gábor hojtsyLooking at the patch, I think the latest translations block is not useful at all on a server the scale of localize.drupal.org, because showing the last 10 strings and then caching for a day will not show much. To show the site activity, I think #599322: Add activity 2.x integration has a better objective / strategy (it also shows when people moderate, import a .po file, etc).
For the top contributors block, we already have this per group in l10n_group. It would be good to generalize this, maybe even make it a block and then reuse all around. There is also #587686: Add more granular contributor statistics about adding thing like "recent top contributors".
Comment #15
gábor hojtsy#245067: Display recent progress statistics as well is also related.