[zanata-bugs] [Bug 1006063] RFE: Enforcing validation

bugzilla at redhat.com bugzilla at redhat.com
Thu Sep 26 02:48:46 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=1006063

Ding-Yi Chen <dchen at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ON_QA                       |ASSIGNED



--- Comment #2 from Ding-Yi Chen <dchen at redhat.com> ---
Test with Zanata version 3.1-SNAPSHOT (20130926-0037)

I. Since the filter "Has Warning" now includes error as well, 
  please change the label to "Invalid" with tooltip that says "Translation that
does not pass the validator, includes warning and error."

II. When you make an invalid error and click somewhere else, 
    click on "return to editor" should make the input focus back to the
confronting translation. 

 Step to reproduce:
 1. Set the validation level to Error on "printf"
 2. Go to any document, click on translation entry for row 2.
 3. Trigger the validation error, 
    such as type excess "%d", DO NOT save now.
 4. Click on translation entry of row 2.
 5. In the "You're trying to save translation that contains validation error",
    Click "Return to editor"

 Expected:
   Input focus is back to row 1. 

 Actual:
   Input focus stays on row 2.

III. Upload using GWT Document list
 1. Set the validation level to Error on "printf"
 2. Set the validation level to warning on "tab"
 3. Prepare a translated document.
    a. 1st translation is valid
    b. 2nd translation trigger the error (such as excess %d)
    c. 3rd translation trigger the warning (such as excess tab \t)
    d. 4th translation and rest are empty
 4. Go to Projects->[ProjectName]->[VersionName]->[LocaleName]
    GWT Document lis should be shown.
 5. Upload with upload button

 Expected:
   After upload, message 2 should produced an error message.
   After upload, message 3 should produced an warning message.
   The stat on the document should be updated.
   Message 1 and 3 are saved as translated. 
   Message 3 are shown as invalid.
   The other messages are empty.

 Actual:
   ! After upload, message 2 DID NOT produce an error message.
   ! After upload, message 3 DID NOT produce an warning message.
   ! The stat on the document DID NOT update.
   Message 1 and 3 are saved as translated. 
   Message 3 are shown as invalid.
   The other messages are empty.

 (!) stands for where actual does not meet expectation.

IV. Upload using JSF Document list
 1. Set the validation level to Error on "printf"
 2. Set the validation level to warning on "tab"
 3. Prepare a translated document.
    a. 1st translation is valid
    b. 2nd translation trigger the error (such as excess %d)
    c. 3rd translation trigger the warning (such as excess tab \t)
    d. 4th translation and rest are empty
 4. Go to Projects->[ProjectName]->[VersionName]->Documents Icon in
[LocaleName]
    A JSF Document list should be shown.
 5. Upload the translation with upload button

 Expected:
   After upload, message 2 should produced an error message.
   After upload, message 3 should produced an warning message.
   The stat on the document should be updated.
   Message 1 and 3 are saved as translated. 
   Message 3 are shown as invalid.
   The other messages are empty.

 Actual:
   After upload, message 2 produced an error message.
   ! After upload, message 3 DID NOT produce an warning message.
   The stat on the document was updated.
   Message 1 and 3 are saved as translated. 
   Message 3 are shown as invalid.
   The other messages are empty.
 (!) stands for where actual does not meet expectation.

Reassigned.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=hFA4zfsGdY&a=cc_unsubscribe




More information about the zanata-bugs mailing list