vertexium
vertexium copied to clipboard
Soft deleting a vertex does not remove properties
- Create a vertex with a property
- Soft delete that vertex
- Create a new vertex with the same id
Expected Properties should be empty.
Found Properties contain the properties from before the soft delete
@joeferner When soft deleting the property rows during step 2 of your description, should a SoftDeletePropertyEvent be fired for each property? My inclination is to say no since we're really soft deleting the entire vertex.
Also, I've managed to kind of fix this on a branch but the possibility of this happening still exists. In the case where authorizations passed to softDeleteVertex or softDeleteEdge are not sufficient to see all of the properties, the ones that can't be seen will still be orphaned.
RE SoftDeletePropertyEvent probably not.
What about the case when you restore the vertex, do the properties also come back?
Yes
- Create a vertex with Prop1:VisibilityA and Prop2:VisibilityB
- Load the vertex with AuthA
- Soft delete the vertex
- Create a new vertex with the same id
- Load the vertex with AuthA and AuthB
- The vertex will have Prop2:VisibilityB on it
@joeferner I just pushed my branch from earlier today in case you have any ideas on the visibility problem.