{"action":"created","issue":{"url":"https://api.github.com/repos/FreeOpcUa/python-opcua/issues/114","labels_url":"https://api.github.com/repos/FreeOpcUa/python-opcua/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/FreeOpcUa/python-opcua/issues/114/comments","events_url":"https://api.github.com/repos/FreeOpcUa/python-opcua/issues/114/events","html_url":"https://github.com/FreeOpcUa/python-opcua/pull/114","id":127056211,"number":114,"title":"Server side deleting of nodes.","user":{"login":"destogl","id":1918204,"avatar_url":"https://avatars.githubusercontent.com/u/1918204?v=3","gravatar_id":"","url":"https://api.github.com/users/destogl","html_url":"https://github.com/destogl","followers_url":"https://api.github.com/users/destogl/followers","following_url":"https://api.github.com/users/destogl/following{/other_user}","gists_url":"https://api.github.com/users/destogl/gists{/gist_id}","starred_url":"https://api.github.com/users/destogl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/destogl/subscriptions","organizations_url":"https://api.github.com/users/destogl/orgs","repos_url":"https://api.github.com/users/destogl/repos","events_url":"https://api.github.com/users/destogl/events{/privacy}","received_events_url":"https://api.github.com/users/destogl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-16T22:01:08Z","updated_at":"2016-01-18T16:17:41Z","closed_at":"2016-01-18T16:12:32Z","pull_request":{"url":"https://api.github.com/repos/FreeOpcUa/python-opcua/pulls/114","html_url":"https://github.com/FreeOpcUa/python-opcua/pull/114","diff_url":"https://github.com/FreeOpcUa/python-opcua/pull/114.diff","patch_url":"https://github.com/FreeOpcUa/python-opcua/pull/114.patch"},"body":"It is almost finished. There is not clear to me how to notify clients when subscribed node is deleted. As far as I understood, I have to use [trigger_statuschange function](https://github.com/FreeOpcUa/python-opcua/blob/master/opcua/server/internal_subscription.py#L185) but don't know how to access it from node... Any help welcome!"},"comment":{"url":"https://api.github.com/repos/FreeOpcUa/python-opcua/issues/comments/172574766","html_url":"https://github.com/FreeOpcUa/python-opcua/pull/114#issuecomment-172574766","issue_url":"https://api.github.com/repos/FreeOpcUa/python-opcua/issues/114","id":172574766,"user":{"login":"oroulet","id":2564046,"avatar_url":"https://avatars.githubusercontent.com/u/2564046?v=3","gravatar_id":"","url":"https://api.github.com/users/oroulet","html_url":"https://github.com/oroulet","followers_url":"https://api.github.com/users/oroulet/followers","following_url":"https://api.github.com/users/oroulet/following{/other_user}","gists_url":"https://api.github.com/users/oroulet/gists{/gist_id}","starred_url":"https://api.github.com/users/oroulet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oroulet/subscriptions","organizations_url":"https://api.github.com/users/oroulet/orgs","repos_url":"https://api.github.com/users/oroulet/repos","events_url":"https://api.github.com/users/oroulet/events{/privacy}","received_events_url":"https://api.github.com/users/oroulet/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T16:17:41Z","updated_at":"2016-01-18T16:17:41Z","body":"> f you merge it, it would be important to write this into documentation.\r\n\r\nI think the current solution is very correct, InternalSubscription is in charge of monitoredItems so it is its responsability to notfify clients. It is true that we do not have currently a way to notify client if a node generating events is deleted. But there is nothing in the way to add a mechanism for it. For example add an attribute EventSubscriber to AttributeValue struct and a method add_event_subscriber(xxx) to AddressSpace that InternalSubscription can call every time a new event subscription is asked by a client. Would be great if you can do it while you are at it\r\n\r\nBut what we are missing here is tests. delete a node, try to read value after, try to access children, etc..., check the parent has no link to it anymore etc....\r\n\r\n"}}