Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata, Wikidata Lexicographical data.

TASK DESCRIPTION
  As a Wikidata editor, I want to know when my input is faulty in order to 
correct it.
  
  **Problem:**
  When adding a Lemma to a Lexeme where the text is only whitespace, the edit 
appears to save correctly (and afterwards the language code is shown in an 
unusual position, since the text takes up no vertical space), but in fact no 
edit is made, and when reloading the page the lemma is gone.
  
  **Example:**
  Add a lemma with the text “ ” and any valid language code to a lexeme (e.g. 
L123 <https://www.wikidata.org/wiki/Lexeme:L123>).
  
  **Screenshots/mockups:**
  F33996595: Screenshot_2021-01-12 ama 𒂼.png 
<https://phabricator.wikimedia.org/F33996595>
  
  **BDD**
  GIVEN an existing lexeme
  WHEN I edit the lemmas
  AND add a new one
  AND set the new lemma’s text to some nonempty whitespace string
  AND set its language code to a valid language code for which the lexeme has 
no lemma yet
  AND try to save the edit
  THEN the an error should be reported
  AND the UI should stay in edit mode
  
  **Acceptance criteria:**
  
  - an error is reported
  - no edit is made (like currently)
  
  **Open questions:**
  
  **Notes:**
  
  - Adding a completely empty lemma already results in an API error (though the 
error is not currently shown correctly – compare T265783: No error shown when 
trying to save lemma with invalid language code 
<https://phabricator.wikimedia.org/T265783>).

TASK DETAIL
  https://phabricator.wikimedia.org/T271805

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, 
Mahir256, QZanden, LawExplorer, _jensen, rosalieper, Bodhisattwa, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to