docbrown/app/validators
Jacob Herrington 45e45491b1
Migrate "static" profile fields into new columns (#13641)
* Move static profile fields to profiles columns

In order to remove some ambiguity around the availability of certain
profile fields, we can designate certain fields as "static." These
fields are intended to exist on every Forem regardless of configuration;
they contain basic personal info that most Forem's will likely use.

Because these fields already exist on some Forems it is necessary to
migrate the data from existing profile's data column to their respective
columns.

This change should behave as expected irrespective of the existence of
the static fields having associated ProfileFields, however, the UI that
is rendered in a user's settings still depends on the presence of the
ProfileFields. We can address that in a future change when we are
prepared to delete those ProfileFields entirely. We should make sure the
migration occurs without issue before moving to that step, in my
opinion.

* Apply suggestions from code review

Co-authored-by: Michael Kohl <me@citizen428.net>

* Add clarifying comments

Co-authored-by: Michael Kohl <me@citizen428.net>

Co-authored-by: Michael Kohl <me@citizen428.net>
2021-05-26 14:40:18 -05:00
..
bytesize_validator.rb [15 min fix] Enforce an upper limit for articles.body_markdown (#13418) 2021-04-16 20:20:11 +02:00
color_contrast_validator.rb Add validations to SiteConfig model (#12341) 2021-01-26 09:12:24 +07:00
emoji_only_validator.rb Add validations to SiteConfig model (#12341) 2021-01-26 09:12:24 +07:00
profile_validator.rb Migrate "static" profile fields into new columns (#13641) 2021-05-26 14:40:18 -05:00
valid_domain_csv_validator.rb Add validations to SiteConfig model (#12341) 2021-01-26 09:12:24 +07:00