puzzle / skills

Open source skill management web application
GNU Affero General Public License v3.0
61 stars 18 forks source link

Allow more than two Nationalities #621

Open Robin481 opened 6 months ago

Robin481 commented 6 months ago

Some people have asked for the ability to add more than two nationalities.

Modify the person form in such a way that any amount of nationalities can be entered.

Things to consider: The current db model has nationality and nationality2. This will need to change if we want to have a dynamic amount of nationalities. After talking to Päscu I've decided to let the primary nationality be for now. The secondary will probably be replaced with something that can hold up more nationalities than one.

I have not decided what to replace nationality2 with yet but here are a few Ideas im going to talk about with Robin:

Solution We have decided that we want to keep the original nationality attribute so a person still only can have this as the primary one. The nationality2 attribute is beeing changed into a json, so it can hold up a various number of nationalities.

jschulthess commented 6 months ago

While you're at it, could you please add "Liberland" to the country list.

Robin481 commented 6 months ago

@jschulthess We are using ISO-3166 and won't be deviating from that standard.

ManuelMoeri commented 3 months ago

What has been done so far

That's everything. There have also been changes on the schema.rb since it's now a json.