osm-teams icon indicating copy to clipboard operation
osm-teams copied to clipboard

Allow changing attribute type when creating it

Open waldyrious opened this issue 1 year ago • 0 comments

When I add a new attribute to a team, I am able to select the attribute type:

image

However, if I select the wrong type by mistake, I am unable to change it, even though the attribute hasn't been created yet:

image

I realize that it's deliberate that an attribute's type is not editable after it's created; quoting https://github.com/developmentseed/osm-teams/issues/264#issue-1204400697 and https://github.com/developmentseed/osm-teams/pull/259#pullrequestreview-931623191:

We should disallow modifying property type after it is created as there will be no way of parsing existing data (changing date to telephone, for e.g.)

...but in this case it should be safe because the attribute has not been actually created yet.

waldyrious avatar Jul 04 '24 11:07 waldyrious