Aam-Digital / ndb-core

Easy-to-use case management web app for NGOs anywhere in the world.
http://www.aam-digital.com
GNU General Public License v3.0
55 stars 18 forks source link

Setup Wizard: Delete Entity Field #2284

Open sleidig opened 7 months ago

sleidig commented 7 months ago

As an admin user I want to delete fields from an Entity Type via the Admin UI so that I can keep the data structures simple and clean over longer time.

Currently the AdminEntityDetails components allow to add new fields to an Entity Type but do not let the user delete a field. They can only hide fields by dragging them to the side bar or pressing the "x" icon.

image

sleidig commented 2 days ago

@tomwwinter , what are your thoughts regarding the data cleansing aspect here (i.e. updating existing entities and removing the values of the deleted field)?

the current user might not have access to every record of the entity type due to permissions. Also, in certain systems this could cause document conflicts because a lot of entities are changed.

Do we need to handle this on the server (which would require a completely new architecture ...) or locally double check on each client when it receives the config change via sync? or ...?