This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user