-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Currently the backend has some rules about what names are acceptable (they have to be unique in the appropriate sense). The frontend also has some rules, but they differ (at the very least, because the backend does not expose what constructor names already exist in any nice way! Thus checking for uniqueness is hard.) These should be brought into sync (or at least, the frontend should be stricter than the backend -- note that this logic is only for creation, not viewing. We would want the frontend to be able to view any type that the backend may give us, but viewing in general is future work)
Basic solution: improve the backend and manually implement the correct logic on the frontend. A perhaps better solution (automatically keeps in sync, but more network load): "preflight" the request -- on each change we could ask the backend "is this valid yet".