osm-teams
osm-teams copied to clipboard
Allow changing attribute type when creating it
When I add a new attribute to a team, I am able to select the attribute type:
However, if I select the wrong type by mistake, I am unable to change it, even though the attribute hasn't been created yet:
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.