Bug 873483

Summary: RFE: [WebTrans] should report to user when server is down or connection is lost
Product: [Retired] Zanata Reporter: Patrick Huang <pahuang>
Component: UsabilityAssignee: Patrick Huang <pahuang>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developmentCC: aeng, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.0.3-SNAPSHOT (20121127-0017) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 03:46:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick Huang 2012-11-06 00:25:04 UTC
Description of problem:
When user enter WebTrans, if server is down or connection is lost, client is still not notified by this. When then perform an action needs to call the server, they will get back an specific error but not knowing the root cause. In some occasion error may only get logged into console and hidden from user.

Version-Release number of selected component (if applicable):
2.0-

How reproducible:
Always

Steps to Reproduce:
1.Go to WebTrans translation editor
2.Shutdown server
3.Perform an action like selecting a translation unit, search in project or save a translation
  
Actual results:
An specific error will show, i.e. search failed, TM or glossary result not coming back but logs an error in browser console.

Expected results:
Client should be notified that the connection to server has lost and they should refresh their browser to make sure the connection is still live.

Additional info:

Comment 1 Patrick Huang 2012-11-06 02:34:38 UTC
committed into master:
https://github.com/zanata/zanata/commit/a71292921aca760f228e9131e45feeb0560bb629

Comment 2 Ding-Yi Chen 2012-11-08 05:37:47 UTC
VERIFIED with Zanata version 2.1-SNAPSHOT (20121108-1439)

Comment 3 Sean Flanigan 2012-11-09 01:53:17 UTC
Please test on 2.0-SNAPSHOT as well.

Comment 4 Patrick Huang 2012-11-15 07:22:29 UTC
*** Bug 872041 has been marked as a duplicate of this bug. ***

Comment 5 Alex Eng 2012-11-27 04:43:41 UTC
Message "No response from server. Please refresh your page and make sure server is still up." is shown when connection lost.

Verified in Zanata version 2.0.3-SNAPSHOT (20121127-0017).