Coming from #1300332: Add Catalunya/Catalonia to the list of countries there seems to be a growing consensus to to just have an autocomplete field in the user profile for the country. That way we don't have to debate which list of countries we're supporting in d.o.

Comments

mgifford’s picture

Component: Other » User account
killes@www.drop.org’s picture

Autocomplete fields usually operate against a predefined set of values, too. I think we'd want a simple textfield.

mgifford’s picture

Yes, but it's a set of pre-entered values that is flexible isn't it?

So if I enter "Can" it will suggest "Canada" among some of the suggested options as someone else previously entered it.

I could just override that and put in "Canada-United States" if I wanted to. In which case everyone else that puts in "Can" will also have the option of "Canada-United States", right?

That's how it works with taxonomies right now.

markus_petrux’s picture

An autocomplete field potentially helps to reduce dups, but a text field would work just fine for those who were following the other issue.

lizzjoy’s picture

Status: Active » Closed (won't fix)

Thanks @mgifford for posting this issue and for to @killes and @markus_petrux for the feedback. Since it is common practice to have autocomplete on country fields, and it will be difficult to maintain duplicates, I'm setting this issue to Closed (won't fix). If maintenance becomes something we can do for this, we can re-open this issue. If you feel your issue has been closed in error, please do comment on the issue and let us know. Thank you for your understanding while we work to clean up the Drupal.org queues.

FMB’s picture

Status: Closed (won't fix) » Active

Since it is common practice to have autocomplete on country fields, and it will be difficult to maintain duplicates, I'm setting this issue to Closed (won't fix).

Mmmh, looks like we unfortunately failed to address the former issue (#1300332: Add Catalunya/Catalonia to the list of countries). I am re-opening this one, so we can find a way to let the user freely enter a country name.

apaderno’s picture

The Country field in the user profile is not an autocomplete text field, yet.

I am not sure there is any benefit of being able to write, for example, Canada/USA as country. Do we really need to have that level of precision? If there is the need to being able to select more countries, why don't we use a multi-select field, which at least would avoid users to enter Canada/USA when there is already USA/Canada?

apaderno’s picture

Project: Drupal.org site moderators » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: User account » User profiles
Issue tags: -country, -countries, -country list

The Country field is imported as feature. Any change to that field requires to change a feature.

drumm’s picture

Thanks to #2961229: Show information about users on their comments we now have a free-form location field on user profiles, so you can put in “Canada/USA” or anything else you want. The country field has also been relatively-recently audited to keep up with the world, #2672184: Store country codes instead of words.

We do use the static set of countries with country codes in a couple places, like syncing to the mailing list signup for targeted emails, if you want them. And statistics like https://dri.es/tag/drupal-sponsors, so we do want to keep the list as a static list of countries that we update as-needed.