Add create custom field button and mutation
What does this MR do and why?
Add simplified form for adding custom fields. This is for adding items to a list on Group Settings page, they are currently not usable elsewhere.
Form allows setting type, name, and option values for select fields.
What does this MR not do?
Things for next MRs, in approximate order:
- Dropdown button for setting custom field type - for now I set default value of the field instead
- Re-ordering of options
- Editing of existing custom fields
- Add custom fields to work item types
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
- Main issue [Custom Fields] Create a custom field (#479540 - closed)
- Designs on #461471 (closed)+
Screenshots or screen recordings
How to set up and validate locally
- In rails console enable the experiment fully
Feature.enable(:custom_fields_feature) - Visit /settings/issues page for a group with an Ultimate license (need to type URL manually sorry) e.g
http://127.0.0.1:3000/groups/gitlab-org/-/settings/issues - Click "Create field"
- Fill out some values
Edited by Simon Knox
