Hide Forgot
This bug is also affected by https://bugzilla.redhat.com/show_bug.cgi?id=1057420 , in the sense that project (see attachment 'project_update.png') receives updates, yet ~/version-group/view/ (see attachment 'version_group_view.png') doesn't reflect it.
CCing Alex.
Fixed calculation errors on the stats and made sure that stats were updated / invalidated when documents are uploaded, deleted, or when copy trans happens. See: https://github.com/zanata/zanata-server/pull/361
Tested with Zanata 3.3.0-SNAPSHOT (20140213-0020) commit d4627b2ebb39f845d After you complete translated, the statistics in document list view have not update. Step to reproduce: 1. Complete translated a project (or find a project that fully translated) 2. Clear a translation 3. Retranslate the cleared translation to make the translation 100% Completed again 4. Click Documents (LOCALE) to go to document list view Actural: On the statistics of document list shows 99%(0.12hrs) Words Clicking the stats by Messages did not change either the percentage, nor the unit of translation (Message) Expected: On the statistics of document list should show 100%(0.0hrs) Words Clicking the stats by Messages should change both the percentage (if applicable), and unit of translation (Message) Reassigned
The above should be created as a new bug, the original bug here re-evaluated.
The bug addressed in comment #6 is addressed as Bug 1064628.
Tested with Zanata 3.3.0-SNAPSHOT (20140213-0020) commit d4627b2ebb39f845d In Group View When the translation is updated, click the locale under Languages column should update the stat of that locale, however, it did not. Step to reproduce: 1. You need two browser tabs. One showing the group view, the other is in translation editor view, editing one of the documents that belong to project in the group. 2. In translation editor tab, Add a new translation or remove translation to make statistic change. 3. In group view tab, switch the sort under both column "Languages" and <LOCALE> Projects to "word remaining" so you can easily compare. 4. Click at the <Locale> you were editing under the column "Languages" to get the statist of that locale Actual: The words under languages column does not equal to the sum of the project remaining words. Expected: The words under languages column should equal to the sum of the project remaining words. Additional: The value will be corrected after reload the page.
Created attachment 862620 [details] Screen shot that demonstrate comment#9 Screen shot that demonstrate comment #9 The total remaining words for French should be 4200, not 4209
After reviewing the test scenario, it's determined that this scenario is out of scope for this bug. The issue is that although the cache is correctly updated upon translation, there are parts of the UI that are simply not refreshed when the user clicks to drill down the stats. the problem is partly solved by re-sorting any of the out-of-date panels so the page re-fetches the stats data from the server. A few suggested approaches for this are: - Simply update every single section of the UI that has any statistics. This might degrade the user experience by loading too much of the page when clicking around. - Show a message indicating that some stats might be out of date.
VERIFIED with Zanata 3.3.0-SNAPSHOT (20140217-1515) The bug described in comment #9 is now tracked in Bug 1066218
Closing VERIFIED bugs for Zanata server 3.3.2.