{"action":"closed","issue":{"url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/issues/87","repository_url":"https://api.github.com/repos/Linkurious/linkurious-rest-client","labels_url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/issues/87/comments","events_url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/issues/87/events","html_url":"https://github.com/Linkurious/linkurious-rest-client/issues/87","id":465641079,"node_id":"MDU6SXNzdWU0NjU2NDEwNzk=","number":87,"title":"APIs returning nodes and edges should format items for Ogma","user":{"login":"maxime-allex","id":1384415,"node_id":"MDQ6VXNlcjEzODQ0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1384415?v=4","gravatar_id":"","url":"https://api.github.com/users/maxime-allex","html_url":"https://github.com/maxime-allex","followers_url":"https://api.github.com/users/maxime-allex/followers","following_url":"https://api.github.com/users/maxime-allex/following{/other_user}","gists_url":"https://api.github.com/users/maxime-allex/gists{/gist_id}","starred_url":"https://api.github.com/users/maxime-allex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxime-allex/subscriptions","organizations_url":"https://api.github.com/users/maxime-allex/orgs","repos_url":"https://api.github.com/users/maxime-allex/repos","events_url":"https://api.github.com/users/maxime-allex/events{/privacy}","received_events_url":"https://api.github.com/users/maxime-allex/received_events","type":"User","site_admin":false},"labels":[{"id":1356039659,"node_id":"MDU6TGFiZWwxMzU2MDM5NjU5","url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/labels/priority:3:high","name":"priority:3:high","color":"d93f0b","default":false},{"id":363815793,"node_id":"MDU6TGFiZWwzNjM4MTU3OTM=","url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/labels/type:bug","name":"type:bug","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":{"login":"Diachk","id":7275039,"node_id":"MDQ6VXNlcjcyNzUwMzk=","avatar_url":"https://avatars3.githubusercontent.com/u/7275039?v=4","gravatar_id":"","url":"https://api.github.com/users/Diachk","html_url":"https://github.com/Diachk","followers_url":"https://api.github.com/users/Diachk/followers","following_url":"https://api.github.com/users/Diachk/following{/other_user}","gists_url":"https://api.github.com/users/Diachk/gists{/gist_id}","starred_url":"https://api.github.com/users/Diachk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diachk/subscriptions","organizations_url":"https://api.github.com/users/Diachk/orgs","repos_url":"https://api.github.com/users/Diachk/repos","events_url":"https://api.github.com/users/Diachk/events{/privacy}","received_events_url":"https://api.github.com/users/Diachk/received_events","type":"User","site_admin":false},"assignees":[{"login":"Diachk","id":7275039,"node_id":"MDQ6VXNlcjcyNzUwMzk=","avatar_url":"https://avatars3.githubusercontent.com/u/7275039?v=4","gravatar_id":"","url":"https://api.github.com/users/Diachk","html_url":"https://github.com/Diachk","followers_url":"https://api.github.com/users/Diachk/followers","following_url":"https://api.github.com/users/Diachk/following{/other_user}","gists_url":"https://api.github.com/users/Diachk/gists{/gist_id}","starred_url":"https://api.github.com/users/Diachk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diachk/subscriptions","organizations_url":"https://api.github.com/users/Diachk/orgs","repos_url":"https://api.github.com/users/Diachk/repos","events_url":"https://api.github.com/users/Diachk/events{/privacy}","received_events_url":"https://api.github.com/users/Diachk/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/milestones/8","html_url":"https://github.com/Linkurious/linkurious-rest-client/milestone/8","labels_url":"https://api.github.com/repos/Linkurious/linkurious-rest-client/milestones/8/labels","id":4252135,"node_id":"MDk6TWlsZXN0b25lNDI1MjEzNQ==","number":8,"title":"v2.8.0","description":"","creator":{"login":"maxime-allex","id":1384415,"node_id":"MDQ6VXNlcjEzODQ0MTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1384415?v=4","gravatar_id":"","url":"https://api.github.com/users/maxime-allex","html_url":"https://github.com/maxime-allex","followers_url":"https://api.github.com/users/maxime-allex/followers","following_url":"https://api.github.com/users/maxime-allex/following{/other_user}","gists_url":"https://api.github.com/users/maxime-allex/gists{/gist_id}","starred_url":"https://api.github.com/users/maxime-allex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxime-allex/subscriptions","organizations_url":"https://api.github.com/users/maxime-allex/orgs","repos_url":"https://api.github.com/users/maxime-allex/repos","events_url":"https://api.github.com/users/maxime-allex/events{/privacy}","received_events_url":"https://api.github.com/users/maxime-allex/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":11,"state":"open","created_at":"2019-04-23T14:42:28Z","updated_at":"2019-07-10T16:41:28Z","due_on":"2019-07-15T07:00:00Z","closed_at":null},"comments":1,"created_at":"2019-07-09T08:24:42Z","updated_at":"2019-07-10T16:41:28Z","closed_at":"2019-07-10T16:41:28Z","author_association":"COLLABORATOR","body":"when requesting `POST /graph/run/query`\r\n\r\nThe response of the rest client is the raw response from server. Nodes and edges are of this format : \r\n```js\r\n{\r\n  id: number;\r\n  categories: number;\r\n  data: {[key: string]: LKProperty},\r\n  nodelink: {...},\r\n  ...\r\n}\r\n```\r\n\r\nbut in front-end we need this format (ogma will delete everything that is not in data :\r\n\r\n```js\r\n{\r\n  id: number;\r\n  data : {\r\n    categories: number;\r\n    properties: {[key: string]: LKProperty},\r\n    nodelink: {...},\r\n    ...\r\n  } \r\n}\r\n```\r\n\r\nThere's a module VisualizationParser in rest-client with methods to return the right items to the front-end. Please check that those methods are used everytime the rest-client return nodes and edges.\r\n"}}
{"actor":{"display_login":"francescoinfante"}}