Page MenuHomePhabricator

ApiSandbox doesn't respect ApiBase::PARAM_ALLOW_DUPLICATES
Closed, ResolvedPublic

Description

For example, the expiry parameter to action=protect takes one expiry timestamp per protections, and it's entirely possible that someone would want to apply the same expiry to more than one protection. The API itself handles this fine, but the CapsuleMultiSelectWidget used in ApiSandbox does not allow this to be entered.

This will require a flag to OO.ui.CapsuleMultiSelectWidget to enable this behavior when it is needed.

Event Timeline

Change 331679 had a related patch set uploaded (by Anomie):
CapsuleMultiSelectWidget: Add allowDuplicates option

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

Change 331680 had a related patch set uploaded (by Anomie):
ApiSandbox: Honor ApiBase::PARAM_ALLOW_DUPLICATES flag

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

Change 331679 merged by jenkins-bot:
CapsuleMultiSelectWidget: Add allowDuplicates option

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

Change 331680 merged by jenkins-bot:
ApiSandbox: Honor ApiBase::PARAM_ALLOW_DUPLICATES flag

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