This commit is contained in:
2021-02-11 16:13:47 +00:00
parent ffd5dc7b90
commit 5e4d1f648a

View File

@@ -16,17 +16,6 @@ todo: WHEN HAVE WORKORDER FORM customer popup notes need to pop pop pop, forgot
## SERVER MISC ITEMS
todo: *biz objects with foreign key constraints should call ValidateCanDelete
and validatecandelete *MUST* check for those constraints and return a proper error object
Note: this must happen independently for EACH reference so check each referencing table one by one and add an error for each to send back to user
this avoids displaying fucked up internal exception messages in english and is absolutely mandatory
Serach AyaSchema for "REFERENCES" and any table that is found in the object that table references must have a delete validation check added to the referenced object to check in the referencing table
iow: apartinventory REFERENCES apartwarehouseid so PartWarehouseBiz ValidateCanDelete must check if there are any apartinventory with this warehouse
(also PartWarehouseBiz ValidateCanDelete is the references for this code)
todo: foreign keys are not indexed by default in the referencing table (the one who references)
take a look and see if any should be indexed when doing above
todo: schema check appears to not count constraints but they are very important and need to be accounted for
also not checking for presence of stored procedures which are also important
add these two things as checks