docbrown/app/views/admin/profile_fields
Daniel Uber afa214ac52
Require profile fields to belong to a group (#16390)
* Require profile fields to belong to a group

Remove the empty group dropdown from the group select tag

Remove the optional: true from the belongs_to validation (raise a
validation error on save if the group is not provided)

Update test to remove belongs_to's optional setting

* Update ProfileFields::Add spec to include profile field group

* update factory to ensure a non-empty profile field group

* Add required profile field group to seeded profile fields

Since profile field is required, create was failing (silently).

Add required field so these are available in e2e tests.

* Use factory `association` to create a profile field group

https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#explicit-definition

* provide required profile field group when posting data

* Fix one spec, drop another

Both of these scripts will be removed in the other branch (changing
the attribute name) - dropping the test here seems lower trouble than
modifying an out of data data update script to pass.

* skip test slated for removal

Similar to the last commit - this test exercises a script about to be
archived in the other branch.
2022-02-15 09:27:18 -06:00
..
_add_group_modal.html.erb improve keyboard accessibility of modals 12427 10610 (#12511) 2021-02-24 16:01:10 +00:00
_add_profile_field_modal.html.erb Escape periods and display the group name properly (#15819) 2021-12-17 17:35:42 -05:00
_edit_group_modal.html.erb Escape periods and display the group name properly (#15819) 2021-12-17 17:35:42 -05:00
_grouped_profile_fields.html.erb Escape periods and display the group name properly (#15819) 2021-12-17 17:35:42 -05:00
_profile_field_form.html.erb Require profile fields to belong to a group (#16390) 2022-02-15 09:27:18 -06:00
_ungrouped_profile_fields.html.erb Use crayons buttons in card headers (#11367) 2020-11-11 02:22:10 -06:00
index.html.erb Fix profile field production display area functionality and remove SiteConfig.dev_to? hacks for better generalization (#12015) 2021-02-11 10:05:06 -05:00