Page MenuHomePhabricator

Type creation: When creating an Enum type, restrict the type to have only one key (identity).
Closed, DeclinedPublic

Description

Description

While creating a new type, if one of its keys is set to is identity/Z3K4 = true, the type should only contain that key.

We should create logic in the front-end to make sure that no multiple-key enums are created.

Some possibilities:

  1. Show errors and have the contributor remove the non-identity keys before they can publish
  2. Show a warning and, if the editor goes ahead with the publishing, automatically delete the non-identity keys pre-submission

Completion checklist

Event Timeline

Jdforrester-WMF moved this task from To Triage to Backlog on the Abstract Wikipedia team board.

I believe we've decided this will not happen (we will allow enums with more than one key). I suggest marking this task as Declined.