diff --git a/synapse/lib/layer.py b/synapse/lib/layer.py index 68d51f98bbe..50adfc85de6 100644 --- a/synapse/lib/layer.py +++ b/synapse/lib/layer.py @@ -4648,7 +4648,10 @@ async def confirmLayerEditPerms(self, user, gateiden, delete=False): perm = perm_edges + verb user.confirm(perm, gateiden=gateiden) - # FIXME: tombstones?? + # tombstones + async for nid, tombtype, tombinfo in s_coro.pause(self.iterTombstones()): + # FIXME: what to do here? + pass # tags # NB: tag perms should be yielded for every leaf on every node in the layer diff --git a/synapse/tests/test_lib_layer.py b/synapse/tests/test_lib_layer.py index a5590579d30..2b5fcc23989 100644 --- a/synapse/tests/test_lib_layer.py +++ b/synapse/tests/test_lib_layer.py @@ -1924,8 +1924,14 @@ async def __anit__(self, dirn=None, size=1, cell=None): user = await core.auth.addUser('blackout@vertex.link') viewiden = await core.callStorm(''' - $lyr = $lib.layer.add() - $view = $lib.view.add(($lyr.iden,)) + [ + (ps:name=* :given=marty) + (ps:name=* :given=emmett) + (ps:name=* :given=biff) + (ps:name=* :given=george) + (ps:name=* :given=loraine) + ] + $view = $lib.view.get().fork() return($view.iden) ''') @@ -2005,10 +2011,17 @@ def confirmPropDel(self, user, prop, layriden): }) await core.nodes(''' - test:str=foo - [ <(refs)- { test:str=bar } ] - $node.data.pop(foo) - | delnode + { + test:str=foo + [ <(refs)- { test:str=bar } ] + $node.data.pop(foo) + | delnode + } + { + ps:name:given=biff + ps:name:given=george + | delnode + } ''', opts=opts) seen.clear()