{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/framework/issues/480","repository_url":"https://api.github.com/repos/aurelia/framework","labels_url":"https://api.github.com/repos/aurelia/framework/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/framework/issues/480/comments","events_url":"https://api.github.com/repos/aurelia/framework/issues/480/events","html_url":"https://github.com/aurelia/framework/issues/480","id":167024367,"number":480,"title":"Shouldn't Aurelia.enhance resolve at some point?","user":{"login":"tkhyn","id":6889068,"avatar_url":"https://avatars.githubusercontent.com/u/6889068?v=3","gravatar_id":"","url":"https://api.github.com/users/tkhyn","html_url":"https://github.com/tkhyn","followers_url":"https://api.github.com/users/tkhyn/followers","following_url":"https://api.github.com/users/tkhyn/following{/other_user}","gists_url":"https://api.github.com/users/tkhyn/gists{/gist_id}","starred_url":"https://api.github.com/users/tkhyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkhyn/subscriptions","organizations_url":"https://api.github.com/users/tkhyn/orgs","repos_url":"https://api.github.com/users/tkhyn/repos","events_url":"https://api.github.com/users/tkhyn/events{/privacy}","received_events_url":"https://api.github.com/users/tkhyn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/framework/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"EisenbergEffect","id":131485,"avatar_url":"https://avatars.githubusercontent.com/u/131485?v=3","gravatar_id":"","url":"https://api.github.com/users/EisenbergEffect","html_url":"https://github.com/EisenbergEffect","followers_url":"https://api.github.com/users/EisenbergEffect/followers","following_url":"https://api.github.com/users/EisenbergEffect/following{/other_user}","gists_url":"https://api.github.com/users/EisenbergEffect/gists{/gist_id}","starred_url":"https://api.github.com/users/EisenbergEffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EisenbergEffect/subscriptions","organizations_url":"https://api.github.com/users/EisenbergEffect/orgs","repos_url":"https://api.github.com/users/EisenbergEffect/repos","events_url":"https://api.github.com/users/EisenbergEffect/events{/privacy}","received_events_url":"https://api.github.com/users/EisenbergEffect/received_events","type":"User","site_admin":false},"assignees":[{"login":"EisenbergEffect","id":131485,"avatar_url":"https://avatars.githubusercontent.com/u/131485?v=3","gravatar_id":"","url":"https://api.github.com/users/EisenbergEffect","html_url":"https://github.com/EisenbergEffect","followers_url":"https://api.github.com/users/EisenbergEffect/followers","following_url":"https://api.github.com/users/EisenbergEffect/following{/other_user}","gists_url":"https://api.github.com/users/EisenbergEffect/gists{/gist_id}","starred_url":"https://api.github.com/users/EisenbergEffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EisenbergEffect/subscriptions","organizations_url":"https://api.github.com/users/EisenbergEffect/orgs","repos_url":"https://api.github.com/users/EisenbergEffect/repos","events_url":"https://api.github.com/users/EisenbergEffect/events{/privacy}","received_events_url":"https://api.github.com/users/EisenbergEffect/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-22T11:17:54Z","updated_at":"2016-07-23T00:23:34Z","closed_at":null,"body":"Not sure if it's a bug, if it's intentional or if there was no other option.\r\n\r\nFrom what I understand from the [source code](https://github.com/aurelia/framework/blob/master/src/aurelia.js#L102), the Promise returned by ``Aurelia.enhance`` never resolves.\r\n\r\nAs a consequence, there is no way to execute something only when the enhancement is completed.\r\n\r\nI'm asking that because I'm trying to test a relatively complex component (using a slightly altered version of ``aurelia-testing`` but that works similarly, calling ``aurelia.enhance`` the same way), and the component is not rendered when the actual test starts (I said it was a relatively complex one!). I can't ``await`` the enhancement as it never resolves, so the only option for now is to use an appropriate timeout, which is not ideal.\r\n\r\nWould there be a way to make this promise resolve at some point, or would the fact that all the gears it puts in motion behind the scenes prevent this?\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/aurelia/framework/issues/comments/234686697","html_url":"https://github.com/aurelia/framework/issues/480#issuecomment-234686697","issue_url":"https://api.github.com/repos/aurelia/framework/issues/480","id":234686697,"user":{"login":"tkhyn","id":6889068,"avatar_url":"https://avatars.githubusercontent.com/u/6889068?v=3","gravatar_id":"","url":"https://api.github.com/users/tkhyn","html_url":"https://github.com/tkhyn","followers_url":"https://api.github.com/users/tkhyn/followers","following_url":"https://api.github.com/users/tkhyn/following{/other_user}","gists_url":"https://api.github.com/users/tkhyn/gists{/gist_id}","starred_url":"https://api.github.com/users/tkhyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkhyn/subscriptions","organizations_url":"https://api.github.com/users/tkhyn/orgs","repos_url":"https://api.github.com/users/tkhyn/repos","events_url":"https://api.github.com/users/tkhyn/events{/privacy}","received_events_url":"https://api.github.com/users/tkhyn/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T00:23:34Z","updated_at":"2016-07-23T00:23:34Z","body":"Ok. Just seen #367.\r\n\r\nI'll submit the PR to fix the return value for enhance then and will investigate what can be done about my particular use case."}}
{"actor":{"display_login":"tkhyn"}}