Bug 1056849 - Incorrect group l10n statistics due to caching missing out update(s)
Incorrect group l10n statistics due to caching missing out update(s)
Status: CLOSED CURRENTRELEASE
Product: Zanata
Classification: Community
Component: Component-UI (Show other bugs)
3.3
Unspecified Linux
high Severity high
: ---
: 3.3
Assigned To: Carlos Munoz
Zanata-QA Mailling List
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-22 23:23 EST by sandeep shedmake
Modified: 2014-03-20 01:47 EDT (History)
5 users (show)

See Also:
Fixed In Version: 3.3.0-SNAPSHOT (20140217-1515)
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-03-20 01:47:28 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Screen shot that demonstrate comment#9 (69.97 KB, image/png)
2014-02-12 22:23 EST, Ding-Yi Chen
no flags Details

  None (edit)
Comment 1 sandeep shedmake 2014-01-24 02:20:54 EST
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.
Comment 4 sandeep shedmake 2014-02-04 02:17:52 EST
CCing Alex.
Comment 5 Carlos Munoz 2014-02-09 20:57:16 EST
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
Comment 6 Ding-Yi Chen 2014-02-12 19:57:13 EST
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
Comment 7 Damian Jansen 2014-02-12 20:42:47 EST
The above should be created as a new bug, the original bug here re-evaluated.
Comment 8 Ding-Yi Chen 2014-02-12 20:52:01 EST
The bug addressed in comment #6 is addressed as Bug 1064628.
Comment 9 Ding-Yi Chen 2014-02-12 22:18:54 EST
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.
Comment 10 Ding-Yi Chen 2014-02-12 22:23:36 EST
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
Comment 11 Carlos Munoz 2014-02-16 19:40:19 EST
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.
Comment 12 Ding-Yi Chen 2014-02-17 23:38:30 EST
VERIFIED with Zanata 3.3.0-SNAPSHOT (20140217-1515)

The bug described in comment #9 is now tracked in Bug 1066218
Comment 13 Sean Flanigan 2014-03-20 01:47:28 EDT
Closing VERIFIED bugs for Zanata server 3.3.2.

Note You need to log in before you can comment on or make changes to this bug.