[ https://issues.apache.org/jira/browse/TINKERPOP-1479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen mallette closed TINKERPOP-1479. --------------------------------------- Resolution: Won't Do SubgraphStrategy is already pretty complex in terms of the logic it contains. It doesn't handle vertex properties (TINKERPOP-1804) well as it stands and that bug already sets up more complexity if it gets resolved. Given that meta/multi properties might be on their way out for 4.x we probably shouldn't invest more energy in this style of updating the graph. > Support write-traversals in SubgraphStrategy. > --------------------------------------------- > > Key: TINKERPOP-1479 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1479 > Project: TinkerPop > Issue Type: Improvement > Components: process > Affects Versions: 3.2.2 > Reporter: Marko A. Rodriguez > Priority: Major > > I think it is possible to have timestamps/acl/audit all via SubgraphStrategy. > What we really need is SubgraphStrategy write()-methods. > {code} > SubgraphStrategy.writeVertex(property(‘createdBy’,’marko’).property(’startTime’,1234).property(‘acl’,’public’)) > SubgraphStrategy.writeVertexProperty(property(‘createdBy’,’marko’).property(’startTime’,1234).property(‘acl’,’public’)) > {code} > With this: > {code} > g.addV(‘person’).property(‘name’,’bob’) > {code} > …is rewritten as: > {code} > g.addV(‘person’). > sideEffect(property(‘createdBy’,’marko’). > property(’startTime’,1234). > property(‘acl’,’public’)). > property(‘name’,’bob’). > sideEffect(property(‘name’). > property(‘createdBy’,’marko’). > property(’startTime’,1234). > property(‘acl’,’public’)) > {code} > That is, when a MutationStep is used, the respective writeXXX() traversal is > appended inside a sideEffect() much like for reads, its inside a filter(). > Haven’t thought it all through, but with such functionality, I think > everything could, in principle, be done by SubgraphStrategy. -- This message was sent by Atlassian JIRA (v7.6.3#76005)