Page MenuHomePhabricator

Function editor: Aliases field, clearing a value from the field doesn't clear it from the internal data
Closed, ResolvedPublic

Description

Steps to reproduce

  • Navigate to the create function page
  • Create a valid function with name, input and output valid fields
  • In the Alias field, create a couple of aliases, by writing strings followed by enter
  • Remove some of the created chips by pressing the "delete" cross button on them
  • Publish the function
  • In the function view page, observe the ZObject JSON value

Observed behavior

  • The field Z2K4 (aliases) contains a list of aliases for the selected language that has empty strings. These are the tags that were created and then deleted using the chip cross button.

{F35522182}

Expected behavior

  • Using the chip cross buttons, aliases should be cleared successfully, and the whole alias string should be deleted from the list

Event Timeline

Change 833415 had a related patch set uploaded (by EWright; author: EWright):

[mediawiki/extensions/WikiLambda@master] Ensure proper deletion of aliases.

https://gerrit.wikimedia.org/r/833415

Change 833415 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Ensure proper deletion of aliases.

https://gerrit.wikimedia.org/r/833415