Create a new team UI has optional renewal period, then returns an error when not supplied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
I selected "Create a new team" (https:/
After I submit the page, I get this error:
You must specify a default renewal period greater than 0.
The UI does not reflect the rules. Renewal Period is optional because the value is ignored when the Renewal Policy is None (the default value) The UI must not suggest the user provide the value if it will not be used. When the Renewal Policy is Ondemand or Automatic, the UI must ask the user to provide a Renewal Period.
Since users can be confused when choosing a sensible Renewal Period, the field could contain 365 by default. So regardless of what policy the user chooses, the period has a value that will be accepted.
Changed in launchpad-registry: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: teams |
description: | updated |
Updating the field to have a sensible period is trivial. Toggling the period field to disabled when the policy is None requires Javascript. The Enable Bug Expiration field has similar rules and maybe the JS can be extended or used as a template. The Period field should be indented under the policy field to show that it is subordinate (as is done with the Enable Bug Expiration field).