{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/76797818","id":76797818,"diff_hunk":"@@ -30,22 +30,21 @@\n     %label.col-md-2.control-label{\"for\" => \"authentication_id\"}\n       = _('Key Pair')\n     .col-md-8\n-      %select{\"ng-model\"    => \"arbitrationProfileModel.authentication_id\",\n+      -#%select{\"ng-model\"    => \"arbitrationProfileModel.authentication_id\",\n+      -#        \"name\"        => \"authentication_id\",\n+      -#        'ng-options'  => 'authentication.id as authentication.name for authentication in arbitrationProfileModel.authentications track by authentication.id',\n+      -#        'pf-select'   => true}\n+      -#  %option{\"value\" => \"\"}\n+      -#    = \"<#{_('Choose')}>\"\n+\n+      %select{\"ng-model\"    => \"$scope._authentication\",\n+              \"ng-init\"     => \"$scope._authentication = _.find($scope.arbitrationProfileModel.authentications, {id: '1000000000054'})\",","path":"app/views/static/ems_cloud/arbitration_profile_edit.html.haml","position":144,"original_position":13,"commit_id":"ab244ce5834d6115157c5ba2e7f78a770c28c18d","original_commit_id":"ab244ce5834d6115157c5ba2e7f78a770c28c18d","user":{"login":"himdel","id":289743,"avatar_url":"https://avatars.githubusercontent.com/u/289743?v=3","gravatar_id":"","url":"https://api.github.com/users/himdel","html_url":"https://github.com/himdel","followers_url":"https://api.github.com/users/himdel/followers","following_url":"https://api.github.com/users/himdel/following{/other_user}","gists_url":"https://api.github.com/users/himdel/gists{/gist_id}","starred_url":"https://api.github.com/users/himdel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himdel/subscriptions","organizations_url":"https://api.github.com/users/himdel/orgs","repos_url":"https://api.github.com/users/himdel/repos","events_url":"https://api.github.com/users/himdel/events{/privacy}","received_events_url":"https://api.github.com/users/himdel/received_events","type":"User","site_admin":false},"body":"This is wrong, don't put it in ng-init, put it in the controller, *after* you've actually retrieved those authentications..","created_at":"2016-08-30T13:48:45Z","updated_at":"2016-08-30T13:48:45Z","html_url":"https://github.com/ManageIQ/manageiq/pull/10859#discussion_r76797818","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/76797818"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/10859#discussion_r76797818"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859","id":83168841,"html_url":"https://github.com/ManageIQ/manageiq/pull/10859","diff_url":"https://github.com/ManageIQ/manageiq/pull/10859.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/10859.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10859","number":10859,"state":"open","locked":false,"title":"[WIP] - conversion of drop downs to bootstrap selects","user":{"login":"h-kataria","id":3450808,"avatar_url":"https://avatars.githubusercontent.com/u/3450808?v=3","gravatar_id":"","url":"https://api.github.com/users/h-kataria","html_url":"https://github.com/h-kataria","followers_url":"https://api.github.com/users/h-kataria/followers","following_url":"https://api.github.com/users/h-kataria/following{/other_user}","gists_url":"https://api.github.com/users/h-kataria/gists{/gist_id}","starred_url":"https://api.github.com/users/h-kataria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-kataria/subscriptions","organizations_url":"https://api.github.com/users/h-kataria/orgs","repos_url":"https://api.github.com/users/h-kataria/repos","events_url":"https://api.github.com/users/h-kataria/events{/privacy}","received_events_url":"https://api.github.com/users/h-kataria/received_events","type":"User","site_admin":false},"body":"@himdel @AparnaKarve seeking bit of help here to get bootstrap selects to work in this scenario. I am fetching values to be displayed in the drop downs thru API calls. I am using ng-options to loop thru objects to get them to show up correctly on the screen. Issue i am running into here is that it does not display selected values on initial load of edit screen. I have tried to resolve the issue following various examples online but haven't been able to fix the issue successfully, tried to follow the hack here https://www.gurustop.net/blog/2014/01/28/common-problems-and-solutions-when-using-select-elements-with-angular-js-ng-options-initial-selection/ without much luck, left that piece of code commented in my PR https://github.com/ManageIQ/manageiq/compare/master...h-kataria:ap_bootstrap_selects#diff-83ddbd693dd40f5c0753efe5fe886f7fR54\r\nWill appreciate any help or pointers on how to get this fixed.","created_at":"2016-08-29T21:14:12Z","updated_at":"2016-08-30T13:48:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fddf2780c6facb17460cdc37abf54685a6d96646","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10859/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/ab244ce5834d6115157c5ba2e7f78a770c28c18d","head":{"label":"h-kataria:ap_bootstrap_selects","ref":"ap_bootstrap_selects","sha":"ab244ce5834d6115157c5ba2e7f78a770c28c18d","user":{"login":"h-kataria","id":3450808,"avatar_url":"https://avatars.githubusercontent.com/u/3450808?v=3","gravatar_id":"","url":"https://api.github.com/users/h-kataria","html_url":"https://github.com/h-kataria","followers_url":"https://api.github.com/users/h-kataria/followers","following_url":"https://api.github.com/users/h-kataria/following{/other_user}","gists_url":"https://api.github.com/users/h-kataria/gists{/gist_id}","starred_url":"https://api.github.com/users/h-kataria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-kataria/subscriptions","organizations_url":"https://api.github.com/users/h-kataria/orgs","repos_url":"https://api.github.com/users/h-kataria/repos","events_url":"https://api.github.com/users/h-kataria/events{/privacy}","received_events_url":"https://api.github.com/users/h-kataria/received_events","type":"User","site_admin":false},"repo":{"id":20811753,"name":"manageiq","full_name":"h-kataria/manageiq","owner":{"login":"h-kataria","id":3450808,"avatar_url":"https://avatars.githubusercontent.com/u/3450808?v=3","gravatar_id":"","url":"https://api.github.com/users/h-kataria","html_url":"https://github.com/h-kataria","followers_url":"https://api.github.com/users/h-kataria/followers","following_url":"https://api.github.com/users/h-kataria/following{/other_user}","gists_url":"https://api.github.com/users/h-kataria/gists{/gist_id}","starred_url":"https://api.github.com/users/h-kataria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-kataria/subscriptions","organizations_url":"https://api.github.com/users/h-kataria/orgs","repos_url":"https://api.github.com/users/h-kataria/repos","events_url":"https://api.github.com/users/h-kataria/events{/privacy}","received_events_url":"https://api.github.com/users/h-kataria/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h-kataria/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/h-kataria/manageiq","forks_url":"https://api.github.com/repos/h-kataria/manageiq/forks","keys_url":"https://api.github.com/repos/h-kataria/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h-kataria/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h-kataria/manageiq/teams","hooks_url":"https://api.github.com/repos/h-kataria/manageiq/hooks","issue_events_url":"https://api.github.com/repos/h-kataria/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/h-kataria/manageiq/events","assignees_url":"https://api.github.com/repos/h-kataria/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/h-kataria/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/h-kataria/manageiq/tags","blobs_url":"https://api.github.com/repos/h-kataria/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h-kataria/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h-kataria/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/h-kataria/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h-kataria/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/h-kataria/manageiq/languages","stargazers_url":"https://api.github.com/repos/h-kataria/manageiq/stargazers","contributors_url":"https://api.github.com/repos/h-kataria/manageiq/contributors","subscribers_url":"https://api.github.com/repos/h-kataria/manageiq/subscribers","subscription_url":"https://api.github.com/repos/h-kataria/manageiq/subscription","commits_url":"https://api.github.com/repos/h-kataria/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/h-kataria/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/h-kataria/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/h-kataria/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/h-kataria/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/h-kataria/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h-kataria/manageiq/merges","archive_url":"https://api.github.com/repos/h-kataria/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h-kataria/manageiq/downloads","issues_url":"https://api.github.com/repos/h-kataria/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/h-kataria/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/h-kataria/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/h-kataria/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h-kataria/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/h-kataria/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/h-kataria/manageiq/deployments","created_at":"2014-06-13T17:15:09Z","updated_at":"2014-06-24T23:08:03Z","pushed_at":"2016-08-30T13:42:24Z","git_url":"git://github.com/h-kataria/manageiq.git","ssh_url":"git@github.com:h-kataria/manageiq.git","clone_url":"https://github.com/h-kataria/manageiq.git","svn_url":"https://github.com/h-kataria/manageiq","homepage":null,"size":153401,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"0c2fbd21c2a68a25f3cdc60f4dc91bb6719a9531","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-08-29T16:42:07Z","pushed_at":"2016-08-30T13:45:08Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":197628,"stargazers_count":309,"watchers_count":309,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":344,"mirror_url":null,"open_issues_count":832,"forks":344,"open_issues":832,"watchers":309,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/10859"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/10859"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/10859/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10859/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/ab244ce5834d6115157c5ba2e7f78a770c28c18d"}}}}
{"actor":{"display_login":"himdel"}}