Page MenuHomePhabricator

[Story] remove a Form
Closed, ResolvedPublic13 Estimated Story Points

Description

As an editor, I want to remove a form

Acceptance criteria:

  • A form can be removed via the UI

Wireframes

Wireframes for individuals features referencing the style guide components
UX - to prepare a style guide components for Wikidata
Click Here for Wireframe

Happy Path:

Given I am on the Lexeme page
And I have permissions to edit Lexeme
And a Form for the Lexeme exists
When I click on the Form’s edit button
And I see a delete button in the edit form block
Then I click delete
And I see Removing... message
And the form is deleted
And the removal shows up in the edit history with the summary
And the summary says Removed form: Leitern (Dativ, Plural)

Error Flows:

Given I am on a Lexeme page
And I have permissions to edit Lexeme
And a Form for the Lexeme exists
When I click on the Form’s edit button
And I see a delete button in the edit form block
And I click delete
And I see Removing... message
And an error from error list 1 occurred
Then The Removing... message is hidden
And I see the Form is still there
And I see the Error Message bubble next to the save button
And the Error Message says ERROR MESSAGE FOR EACH ERROR
And the Delete button is still shown and can be clicked

Error List 1:

Error TypeError message
Error MessageTODO
Edit ConflictTODO
Rate LimitTODO
Read OnlyTODO
Token failure/Session FailureTODO
Abuse filter failureTODO
Unexpected exceptionsTODO
PermissionsTODO
ProtectedTODO

Given I am on a Lexeme page
When I don’t have permissions to edit Lexeme
And a Form for the Lexeme exists
Then I don't see Form's edit button

Given I am on a Lexeme page
When The Lexeme is protected
And a Form for the Lexeme exists
Then I don't see Form's edit button

Event Timeline

Lydia_Pintscher renamed this task from Not possible to remove forms or senses to [Story] remove a Form.Feb 12 2018, 9:30 PM
Lydia_Pintscher updated the task description. (Show Details)
Lydia_Pintscher raised the priority of this task from Medium to High.Mar 8 2018, 4:14 PM
WMDE-leszek set the point value for this task to 8.Mar 13 2018, 10:39 AM
WMDE-leszek changed the point value for this task from 8 to 13.Mar 14 2018, 12:02 PM
WMDE-leszek updated the task description. (Show Details)