{"action":"created","issue":{"url":"https://api.github.com/repos/catmaid/CATMAID/issues/1256","labels_url":"https://api.github.com/repos/catmaid/CATMAID/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/catmaid/CATMAID/issues/1256/comments","events_url":"https://api.github.com/repos/catmaid/CATMAID/issues/1256/events","html_url":"https://github.com/catmaid/CATMAID/issues/1256","id":126338317,"number":1256,"title":"Graph widget: pushing \"Subgraph - Reset\" resulted in a group being expanded into its individual neurons","user":{"login":"acardona","id":50458,"avatar_url":"https://avatars.githubusercontent.com/u/50458?v=3","gravatar_id":"","url":"https://api.github.com/users/acardona","html_url":"https://github.com/acardona","followers_url":"https://api.github.com/users/acardona/followers","following_url":"https://api.github.com/users/acardona/following{/other_user}","gists_url":"https://api.github.com/users/acardona/gists{/gist_id}","starred_url":"https://api.github.com/users/acardona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acardona/subscriptions","organizations_url":"https://api.github.com/users/acardona/orgs","repos_url":"https://api.github.com/users/acardona/repos","events_url":"https://api.github.com/users/acardona/events{/privacy}","received_events_url":"https://api.github.com/users/acardona/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/catmaid/CATMAID/labels/type:%20defect","name":"type: defect","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-13T04:20:46Z","updated_at":"2016-01-21T16:57:56Z","closed_at":null,"body":"I had one neuron split, and two groups of neurons synapsing with it. Upon selecting a node of the split neuron and pushing rest, the split neuron was no longer split as expected, but one of two groups was exploded into its individual neurons. And the variable groups in the GroupGraph instance indeed contained only one group.\r\n\r\nThen, upon selecting the neurons of the exploded group to regroup them, they all disappeared upon pushing \"Group\". Pushing refresh brought the group back but without edges. Pushing refresh a second time then rendered the correct graph. This issue, necessitating of two refreshes, has been observed before, always related to groups, so the underlying error is far older than this report.\r\n\r\nThen, upon cloning the graph, then selecting the now not-split neuron in the cloned graph, and choosing to split it again by tag, the neuron is split, but some of its nodes are not shown as connected to each other with an undirected edge. Pushing refresh once does nothing. Pushing refresh again resulted in the split neuron disappearing and an error being thrown:\r\n\r\nTypeError: Cannot read property 'color' of undefined(…) \"TypeError: Cannot read property 'color' of undefined\r\n    at Object.<anonymous> (https://neurocean.janelia.org/catmaidL1/static/js/catmaid.978953bae2d2.js:26229:37)\r\n    at Array.forEach (native)\r\n    at Object.GroupGraph.updateGraph (https://neurocean.janelia.org/catmaidL1/static/js/catmaid.978953bae2d2.js:26223:20)\r\n    at Object.<anonymous> (https://neurocean.janelia.org/catmaidL1/static/js/catmaid.978953bae2d2.js:26145:30)\r\n    at Object.callback (https://neurocean.janelia.org/catmaidL1/static/js/libs/catmaid-lib.1917bd8b9681.js:7547:19)\r\n    at XMLHttpRequest.callback (https://neurocean.janelia.org/catmaidL1/static/js/libs/catmaid-lib.1917bd8b9681.js:156:18)\""},"comment":{"url":"https://api.github.com/repos/catmaid/CATMAID/issues/comments/173633732","html_url":"https://github.com/catmaid/CATMAID/issues/1256#issuecomment-173633732","issue_url":"https://api.github.com/repos/catmaid/CATMAID/issues/1256","id":173633732,"user":{"login":"aschampion","id":460206,"avatar_url":"https://avatars.githubusercontent.com/u/460206?v=3","gravatar_id":"","url":"https://api.github.com/users/aschampion","html_url":"https://github.com/aschampion","followers_url":"https://api.github.com/users/aschampion/followers","following_url":"https://api.github.com/users/aschampion/following{/other_user}","gists_url":"https://api.github.com/users/aschampion/gists{/gist_id}","starred_url":"https://api.github.com/users/aschampion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschampion/subscriptions","organizations_url":"https://api.github.com/users/aschampion/orgs","repos_url":"https://api.github.com/users/aschampion/repos","events_url":"https://api.github.com/users/aschampion/events{/privacy}","received_events_url":"https://api.github.com/users/aschampion/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T16:57:56Z","updated_at":"2016-01-21T16:57:56Z","body":"> I had one neuron split, and two groups of neurons synapsing with it. Upon selecting a node of the split neuron and pushing rest, the split neuron was no longer split as expected, but one of two groups was exploded into its individual neurons. And the variable groups in the GroupGraph instance indeed contained only one group.\r\n\r\nIf this happens again, could you post IDs of the split neuron and each group? There must be some data/structure dependence because I've been unable to reproduce this even after testing lots of different sets."}}