You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent delete action when TypeInstance is used by others. Currently, we can delete TypeInstance without any notification that others are linked to it. In case of delegated storage proposal, this may break our flow as we won't be able to retrieve data for all linked TypeInstances.
Reason
Currently, we allow deleting TypeInstance that is used by others. Until now, it wasn't a big issue but after introducing delegated storage functionality, it will become more problematic as we use this relation to ask to resolve stored information.
Use cases
System User—ensure that it cannot break the TypeInstance resolution unconsciously.
// Check if a given TypeInstance is not used by othersCALL{WITHtiWITHtiMATCH (ti)-[:USES]->(others:TypeInstance)WITHcount(others) asothersLenRETURNothersLen>1asisUsed}CALLapoc.util.validate(isUsed, apoc.convert.toJson({code:400}), null)
Description
Blocked by: #645
Prevent delete action when TypeInstance is used by others. Currently, we can delete TypeInstance without any notification that others are linked to it. In case of delegated storage proposal, this may break our flow as we won't be able to retrieve data for all linked TypeInstances.
Reason
Currently, we allow deleting TypeInstance that is used by others. Until now, it wasn't a big issue but after introducing delegated storage functionality, it will become more problematic as we use this relation to ask to resolve stored information.
Use cases
Additional
It's a small piece of the rollback proposal: https://github.com/capactio/capact/blob/main/docs/proposal/20201209-action-rollback.md - rest logic will be handled by dedicated issue #502
The text was updated successfully, but these errors were encountered: