{"action":"created","issue":{"url":"https://api.github.com/repos/intermine/intermine/issues/1760","repository_url":"https://api.github.com/repos/intermine/intermine","labels_url":"https://api.github.com/repos/intermine/intermine/issues/1760/labels{/name}","comments_url":"https://api.github.com/repos/intermine/intermine/issues/1760/comments","events_url":"https://api.github.com/repos/intermine/intermine/issues/1760/events","html_url":"https://github.com/intermine/intermine/issues/1760","id":295601939,"number":1760,"title":"[Bug] \"Create List\" button not working in IM Enrichment Widgets","user":{"login":"vivekkrish","id":711637,"avatar_url":"https://avatars3.githubusercontent.com/u/711637?v=4","gravatar_id":"","url":"https://api.github.com/users/vivekkrish","html_url":"https://github.com/vivekkrish","followers_url":"https://api.github.com/users/vivekkrish/followers","following_url":"https://api.github.com/users/vivekkrish/following{/other_user}","gists_url":"https://api.github.com/users/vivekkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekkrish/subscriptions","organizations_url":"https://api.github.com/users/vivekkrish/orgs","repos_url":"https://api.github.com/users/vivekkrish/repos","events_url":"https://api.github.com/users/vivekkrish/events{/privacy}","received_events_url":"https://api.github.com/users/vivekkrish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"joshkh","id":4752532,"avatar_url":"https://avatars3.githubusercontent.com/u/4752532?v=4","gravatar_id":"","url":"https://api.github.com/users/joshkh","html_url":"https://github.com/joshkh","followers_url":"https://api.github.com/users/joshkh/followers","following_url":"https://api.github.com/users/joshkh/following{/other_user}","gists_url":"https://api.github.com/users/joshkh/gists{/gist_id}","starred_url":"https://api.github.com/users/joshkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshkh/subscriptions","organizations_url":"https://api.github.com/users/joshkh/orgs","repos_url":"https://api.github.com/users/joshkh/repos","events_url":"https://api.github.com/users/joshkh/events{/privacy}","received_events_url":"https://api.github.com/users/joshkh/received_events","type":"User","site_admin":false},"assignees":[{"login":"joshkh","id":4752532,"avatar_url":"https://avatars3.githubusercontent.com/u/4752532?v=4","gravatar_id":"","url":"https://api.github.com/users/joshkh","html_url":"https://github.com/joshkh","followers_url":"https://api.github.com/users/joshkh/followers","following_url":"https://api.github.com/users/joshkh/following{/other_user}","gists_url":"https://api.github.com/users/joshkh/gists{/gist_id}","starred_url":"https://api.github.com/users/joshkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshkh/subscriptions","organizations_url":"https://api.github.com/users/joshkh/orgs","repos_url":"https://api.github.com/users/joshkh/repos","events_url":"https://api.github.com/users/joshkh/events{/privacy}","received_events_url":"https://api.github.com/users/joshkh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-08T17:33:50Z","updated_at":"2018-02-19T15:52:18Z","closed_at":null,"author_association":"MEMBER","body":"Within each Enrichment Widget, clicking on the \"View\" button toggles a modal popup with 2 options: \"View results\" (which opens an IM-tables page with results from the enrichment) and \"Create List\" (which is supposed to trigger creation of a list of entities that are enriched). See screenshot below:\r\n\r\n![image](https://user-images.githubusercontent.com/711637/35988344-2ab775f4-0ccc-11e8-964a-cc8a60f05577.png)\r\n\r\nAfter testing on multiple mines, it was concluded that the \"Create List\" button looks to be non-functional (i.e. it is literally not doing anything).\r\n\r\nAn example page where this can be tested: http://www.flymine.org/flymine/bagDetails.do?scope=all&bagName=PL+FlyTF_site_specific_TFs\r\n\r\nThis issue was briefly discussed on Discord and concluded that it is indeed a bug."},"comment":{"url":"https://api.github.com/repos/intermine/intermine/issues/comments/366732532","html_url":"https://github.com/intermine/intermine/issues/1760#issuecomment-366732532","issue_url":"https://api.github.com/repos/intermine/intermine/issues/1760","id":366732532,"user":{"login":"joshkh","id":4752532,"avatar_url":"https://avatars3.githubusercontent.com/u/4752532?v=4","gravatar_id":"","url":"https://api.github.com/users/joshkh","html_url":"https://github.com/joshkh","followers_url":"https://api.github.com/users/joshkh/followers","following_url":"https://api.github.com/users/joshkh/following{/other_user}","gists_url":"https://api.github.com/users/joshkh/gists{/gist_id}","starred_url":"https://api.github.com/users/joshkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshkh/subscriptions","organizations_url":"https://api.github.com/users/joshkh/orgs","repos_url":"https://api.github.com/users/joshkh/repos","events_url":"https://api.github.com/users/joshkh/events{/privacy}","received_events_url":"https://api.github.com/users/joshkh/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T15:52:18Z","updated_at":"2018-02-19T15:52:18Z","author_association":"CONTRIBUTOR","body":"There's strong evidence indicating that this has been broken since the release of im-tables 2.0 three years ago.\r\n\r\nThe enrichment widgets accept a callback function called `listCb` which is executed when the user clicks the Create list button. InterMine passes this function a reference to im-table's `ListCreator` class which triggers im-table's Save List modal:\r\n\r\nhttps://github.com/intermine/intermine/blob/3328168aa750f1175d9e7c6bb2a516455cfc9bd1/intermine/webapp/main/resources/webapp/widgetScript.jsp#L8-L13\r\n\r\nhttps://github.com/intermine/CDN/commit/c6bd0589ad83770bcf6dcb0fc4e11b836c88211a \r\n\r\nHowever, the ListCreator class does not exist in im-tables 2.0 and the table isn't exposing its \"scoped\" functions to the `intermine` object on the window. I'll see if there's a similar class we can use."}}
{"actor":{"display_login":"joshkh"}}