{"action":"created","issue":{"url":"https://api.github.com/repos/project-asap/IReS-Platform/issues/8","repository_url":"https://api.github.com/repos/project-asap/IReS-Platform","labels_url":"https://api.github.com/repos/project-asap/IReS-Platform/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/project-asap/IReS-Platform/issues/8/comments","events_url":"https://api.github.com/repos/project-asap/IReS-Platform/issues/8/events","html_url":"https://github.com/project-asap/IReS-Platform/issues/8","id":194028201,"number":8,"title":"Change workflow graph issue","user":{"login":"project-asap","id":8182624,"avatar_url":"https://avatars.githubusercontent.com/u/8182624?v=3","gravatar_id":"","url":"https://api.github.com/users/project-asap","html_url":"https://github.com/project-asap","followers_url":"https://api.github.com/users/project-asap/followers","following_url":"https://api.github.com/users/project-asap/following{/other_user}","gists_url":"https://api.github.com/users/project-asap/gists{/gist_id}","starred_url":"https://api.github.com/users/project-asap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-asap/subscriptions","organizations_url":"https://api.github.com/users/project-asap/orgs","repos_url":"https://api.github.com/users/project-asap/repos","events_url":"https://api.github.com/users/project-asap/events{/privacy}","received_events_url":"https://api.github.com/users/project-asap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T11:44:42Z","updated_at":"2016-12-08T09:26:07Z","closed_at":null,"body":"Assuming there are 2 abstract operators _Wind_User_Profiling_ & _Wind_User_Profiling_,\r\na materialized dataset _cdr-2016-01-01_ and an abstract dataset _ff_\r\nIf in the respective text area we provide:\r\n\r\n```\r\ncdr-2016-01-01,Wind_User_Profiling\r\nWind_User_Profiling,Wind_Kmeans\r\nWind_Kmeans,ff\r\nff,$$target\r\n```\r\n\r\nand press Change graph.\r\nThe graph appears correctly but the text inside the text area has changed to:\r\n```\r\ncdr-2016-01-01,Wind_User_Profiling,0\r\nWind_User_Profiling,Wind_Kmeans,0\r\nWind_User_Profiling,Wind_Kmeans,0\r\nWind_Kmeans,ff,0\r\nff,$$target\r\n```\r\nThe request URI send is the following:\r\n`http://asap-master:1323/web/abstractWorkflows/changeGraph?workflowName=just-testing-2&workflowGraph=cdr-2016-01-01%2CWind_User_Profiling%0D%0AWind_User_Profiling%2CWind_Kmeans%0D%0AWind_Kmeans%2Cff%0D%0Aff%2C%24%24target`\r\n\r\nand the respective unquoted URI is:\r\n```\r\nIn [2]: urllib.unquote('http://asap-master:1323/web/abstractWorkflows/changeGraph?workflowName=just-testing-2&workflowGraph=cdr-2016-01-01%2CWind_User_Profiling%0D%0AWind_User_Profiling%2CWind_Kmeans%0D%0AWind_Kmeans%2Cff%0D%0Aff%2C%24%24target')\r\nOut[2]: 'http://asap-master:1323/web/abstractWorkflows/changeGraph?workflowName=just-testing-2&workflowGraph=cdr-2016-01-01,Wind_User_Profiling\\r\\nWind_User_Profiling,Wind_Kmeans\\r\\nWind_Kmeans,ff\\r\\nff,$$target'\r\n```\r\n\r\nMoreover,\r\nif we try to fix it by removing everything from the text area and passing again the above input\r\ninside the text area appears:\r\n\r\n```\r\ncdr-2016-01-01,Wind_User_Profiling,0\r\nWind_User_Profiling,Wind_Kmeans,0\r\nWind_User_Profiling,Wind_Kmeans,1\r\nWind_User_Profiling,Wind_Kmeans,0\r\nWind_Kmeans,ff,0\r\nWind_Kmeans,ff,1\r\nff,$$target\r\n```\r\n\r\nThe request URI send is again the following:\r\n`http://asap-master:1323/web/abstractWorkflows/changeGraph?workflowName=just-testing-2&workflowGraph=cdr-2016-01-01%2CWind_User_Profiling%0D%0AWind_User_Profiling%2CWind_Kmeans%0D%0AWind_Kmeans%2Cff%0D%0Aff%2C%24%24target`"},"comment":{"url":"https://api.github.com/repos/project-asap/IReS-Platform/issues/comments/265693548","html_url":"https://github.com/project-asap/IReS-Platform/issues/8#issuecomment-265693548","issue_url":"https://api.github.com/repos/project-asap/IReS-Platform/issues/8","id":265693548,"user":{"login":"project-asap","id":8182624,"avatar_url":"https://avatars.githubusercontent.com/u/8182624?v=3","gravatar_id":"","url":"https://api.github.com/users/project-asap","html_url":"https://github.com/project-asap","followers_url":"https://api.github.com/users/project-asap/followers","following_url":"https://api.github.com/users/project-asap/following{/other_user}","gists_url":"https://api.github.com/users/project-asap/gists{/gist_id}","starred_url":"https://api.github.com/users/project-asap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-asap/subscriptions","organizations_url":"https://api.github.com/users/project-asap/orgs","repos_url":"https://api.github.com/users/project-asap/repos","events_url":"https://api.github.com/users/project-asap/events{/privacy}","received_events_url":"https://api.github.com/users/project-asap/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T09:26:07Z","updated_at":"2016-12-08T09:26:07Z","body":"In addition to this,\r\nwe create an abstract workflow using the respective API call:\r\n\r\n` curl http://asap-master:1323/abstractWorkflows/add/sociometer -H \"Content-Type: application/json\" --data @/tmp/sociometer.json -v`\r\n\r\nby passing the following json:\r\n\r\n```\r\n{u'name': u'sociometer',\r\n u'operators': [{u'abstractName': u'',\r\n   u'cost': u'0.0',\r\n   u'description': u'Constraints.Engine.FS=HDFS\\nExecution.path=hdfs:///dataset_simulated/2016/synth_data2016-01-01.csv',\r\n   u'execTime': u'0.0',\r\n   u'input': [],\r\n   u'isAbstract': False,\r\n   u'isOperator': False,\r\n   u'isTarget': False,\r\n   u'name': u'cdr-2016-01-01',\r\n   u'output': [u'Wind_User_Profiling'],\r\n   u'status': u'stopped'},\r\n  {u'abstractName': u'',\r\n   u'cost': u'0.0',\r\n   u'description': u'Constraints.Input.number=1,Constraints.OpSpecification.Algorithm.name=user_profiling',\r\n   u'execTime': u'0.0',\r\n   u'input': [u'cdr-2016-01-01'],\r\n   u'isAbstract': True,\r\n   u'isOperator': True,\r\n   u'isTarget': False,\r\n   u'name': u'Wind_User_Profiling',\r\n   u'output': [u'Wind_Kmeans'],\r\n   u'status': u'stopped'},\r\n  {u'abstractName': u'',\r\n   u'cost': u'0.0',\r\n   u'description': u'Constraints.Input.number=1,Constraints.OpSpecification.Algorithm.name=kmeans',\r\n   u'execTime': u'0.0',\r\n   u'input': [u'Wind_User_Profiling'],\r\n   u'isAbstract': True,\r\n   u'isOperator': True,\r\n   u'isTarget': False,\r\n   u'name': u'Wind_Kmeans',\r\n   u'output': [u'final'],\r\n   u'status': u'stopped'},\r\n  {u'abstractName': u'',\r\n   u'cost': u'0.0',\r\n   u'description': u'',\r\n   u'execTime': u'0.0',\r\n   u'input': [u'Wind_Kmeans'],\r\n   u'isAbstract': True,\r\n   u'isOperator': False,\r\n   u'isTarget': True,\r\n   u'name': u'final',\r\n   u'output': [],\r\n   u'status': u'stopped'}]}\r\n```\r\n\r\nThe workflow appears in the IReS UI but the graph in the text area is:\r\n```\r\ncdr-2016-01-01,Wind_User_Profiling,0\r\nWind_User_Profiling,Wind_Kmeans,0\r\nWind_User_Profiling,Wind_Kmeans,1\r\nWind_User_Profiling,Wind_Kmeans,0\r\nWind_User_Profiling,Wind_Kmeans,1\r\nWind_Kmeans,final,0\r\nfinal,$$target\r\n```\r\n"}}
{"actor":{"display_login":"project-asap"}}