Page MenuHomePhabricator

Automatically add fallback procedure on new template field or default to fallback template on new template added
Open, Needs TriagePublic

Description

The templates JSON schema in Web2Cit-Core defines a default fallback procedure for each template field type.

However, this default fallback procedure is not added automatically when the user adds a new template field. Instead, the user has to manually add a procedure (which is automatically filled in with the fallback procedure for the given template field type).

This extra step of adding a procedure is unnecessary. I'm not sure if remains like this from what the JSON editor looked like before (long format, which probably made having the procedure automatically added make the editor even longer), or if it is a problem with JSON schemas.

Check if we can change to adding the procedure automatically when a new template field is added.

Alternatively, implement what a user suggested in T309310. Namely, that we have the whole template added default to the fallback template and have the user change (or remove) test templates as required (instead of having users manually add template fields, with the risk that they may forget mandatory fields).

Event Timeline

Alternatively, implement what a user suggested in T309310. Namely, that we have the whole template added default to the fallback template and have the user change (or remove) test templates as required (instead of having users manually add template fields, with the risk that they may forget mandatory fields).

Or at least include the item type and title fields by default, which are mandatory. Forgetting them would cause the template to be non-applicable.