{"action":"created","issue":{"url":"https://api.github.com/repos/openshiftio/openshift.io/issues/4640","repository_url":"https://api.github.com/repos/openshiftio/openshift.io","labels_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/4640/labels{/name}","comments_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/4640/comments","events_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/4640/events","html_url":"https://github.com/openshiftio/openshift.io/issues/4640","id":390638327,"node_id":"MDU6SXNzdWUzOTA2MzgzMjc=","number":4640,"title":"Git provider appears logged out while loading user info in the launcher.","user":{"login":"pmacik","id":3263627,"node_id":"MDQ6VXNlcjMyNjM2Mjc=","avatar_url":"https://avatars3.githubusercontent.com/u/3263627?v=4","gravatar_id":"","url":"https://api.github.com/users/pmacik","html_url":"https://github.com/pmacik","followers_url":"https://api.github.com/users/pmacik/followers","following_url":"https://api.github.com/users/pmacik/following{/other_user}","gists_url":"https://api.github.com/users/pmacik/gists{/gist_id}","starred_url":"https://api.github.com/users/pmacik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmacik/subscriptions","organizations_url":"https://api.github.com/users/pmacik/orgs","repos_url":"https://api.github.com/users/pmacik/repos","events_url":"https://api.github.com/users/pmacik/events{/privacy}","received_events_url":"https://api.github.com/users/pmacik/received_events","type":"User","site_admin":false},"labels":[{"id":696097924,"node_id":"MDU6TGFiZWw2OTYwOTc5MjQ=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/SEV4-low","name":"SEV4-low","color":"b60205","default":false},{"id":627758096,"node_id":"MDU6TGFiZWw2Mjc3NTgwOTY=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/area/UX","name":"area/UX","color":"FEF2C0","default":false},{"id":627758104,"node_id":"MDU6TGFiZWw2Mjc3NTgxMDQ=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/area/app-wizard","name":"area/app-wizard","color":"fef2c0","default":false},{"id":905581349,"node_id":"MDU6TGFiZWw5MDU1ODEzNDk=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/area/launcher","name":"area/launcher","color":"fef2c0","default":false},{"id":810130871,"node_id":"MDU6TGFiZWw4MTAxMzA4NzE=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/env/prod","name":"env/prod","color":"0e8a16","default":false},{"id":996424199,"node_id":"MDU6TGFiZWw5OTY0MjQxOTk=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/priority/P4","name":"priority/P4","color":"5319e7","default":false},{"id":668724305,"node_id":"MDU6TGFiZWw2Njg3MjQzMDU=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/team/launcher","name":"team/launcher","color":"d4c5f9","default":false},{"id":1087854489,"node_id":"MDU6TGFiZWwxMDg3ODU0NDg5","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/team/ui","name":"team/ui","color":"d4c5f9","default":false},{"id":675077929,"node_id":"MDU6TGFiZWw2NzUwNzc5Mjk=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/team/ux","name":"team/ux","color":"d4c5f9","default":false},{"id":627758095,"node_id":"MDU6TGFiZWw2Mjc3NTgwOTU=","url":"https://api.github.com/repos/openshiftio/openshift.io/labels/type/bug","name":"type/bug","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"serenamarie125","id":12504403,"node_id":"MDQ6VXNlcjEyNTA0NDAz","avatar_url":"https://avatars3.githubusercontent.com/u/12504403?v=4","gravatar_id":"","url":"https://api.github.com/users/serenamarie125","html_url":"https://github.com/serenamarie125","followers_url":"https://api.github.com/users/serenamarie125/followers","following_url":"https://api.github.com/users/serenamarie125/following{/other_user}","gists_url":"https://api.github.com/users/serenamarie125/gists{/gist_id}","starred_url":"https://api.github.com/users/serenamarie125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serenamarie125/subscriptions","organizations_url":"https://api.github.com/users/serenamarie125/orgs","repos_url":"https://api.github.com/users/serenamarie125/repos","events_url":"https://api.github.com/users/serenamarie125/events{/privacy}","received_events_url":"https://api.github.com/users/serenamarie125/received_events","type":"User","site_admin":false},"assignees":[{"login":"serenamarie125","id":12504403,"node_id":"MDQ6VXNlcjEyNTA0NDAz","avatar_url":"https://avatars3.githubusercontent.com/u/12504403?v=4","gravatar_id":"","url":"https://api.github.com/users/serenamarie125","html_url":"https://github.com/serenamarie125","followers_url":"https://api.github.com/users/serenamarie125/followers","following_url":"https://api.github.com/users/serenamarie125/following{/other_user}","gists_url":"https://api.github.com/users/serenamarie125/gists{/gist_id}","starred_url":"https://api.github.com/users/serenamarie125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serenamarie125/subscriptions","organizations_url":"https://api.github.com/users/serenamarie125/orgs","repos_url":"https://api.github.com/users/serenamarie125/repos","events_url":"https://api.github.com/users/serenamarie125/events{/privacy}","received_events_url":"https://api.github.com/users/serenamarie125/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-12-13T11:35:41Z","updated_at":"2018-12-14T19:03:07Z","closed_at":null,"author_association":"COLLABORATOR","body":"##### Issue Overview\r\n\r\n##### Expected Behaviour\r\nWhen a user goes to the git provider step in the launcher, it should look and behave appropriately - either appear logged in or be disabled while it loads the user info.\r\n\r\n##### Current Behaviour\r\nThe form looks and behaves as if user has no git account linked for a while (the `[Log In & Authorize Account]` button is enabled and clickable) and then it changes to logged in:\r\n\r\n![git-provider-loading](https://user-images.githubusercontent.com/3263627/49935648-e053ac00-fed1-11e8-891a-67cff6cb9038.gif)\r\n\r\n##### Steps To Reproduce\r\n\r\n1. Initiate app creation via launcher\r\n2. (optionally select mission, runtime and pipeline)\r\n3. Go to the git provider step, the form looks and behaves as if user has no git account linked for a while and then it changes to logged in.\r\n\r\n##### Additional Information\r\nAFAICT, the form/ui calls `GET https://forge.api.openshift.io/api/services/git/user` for user info and while waiting for the response, the git provider form behaves as logged out (git provider not linked, the login button enabled).\r\n\r\nNormally it is not an issue, but in a corner case when the git account has a lot of repositories it takes a while for this endpoint to respond (~20s in case of 2.7k repositories in github account) and for the duration of the request the form looks/behaves incorrectly.\r\n\r\nIMHO the form should be disabled with a note that user info is being loaded.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openshiftio/openshift.io/issues/comments/447422562","html_url":"https://github.com/openshiftio/openshift.io/issues/4640#issuecomment-447422562","issue_url":"https://api.github.com/repos/openshiftio/openshift.io/issues/4640","id":447422562,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzQyMjU2Mg==","user":{"login":"christianvogt","id":14068621,"node_id":"MDQ6VXNlcjE0MDY4NjIx","avatar_url":"https://avatars3.githubusercontent.com/u/14068621?v=4","gravatar_id":"","url":"https://api.github.com/users/christianvogt","html_url":"https://github.com/christianvogt","followers_url":"https://api.github.com/users/christianvogt/followers","following_url":"https://api.github.com/users/christianvogt/following{/other_user}","gists_url":"https://api.github.com/users/christianvogt/gists{/gist_id}","starred_url":"https://api.github.com/users/christianvogt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianvogt/subscriptions","organizations_url":"https://api.github.com/users/christianvogt/orgs","repos_url":"https://api.github.com/users/christianvogt/repos","events_url":"https://api.github.com/users/christianvogt/events{/privacy}","received_events_url":"https://api.github.com/users/christianvogt/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T19:03:07Z","updated_at":"2018-12-14T19:03:07Z","author_association":"COLLABORATOR","body":"@serenamarie125 our app has many problems dealing with async data. We tend to show incorrect information while data is loading instead of proper progress. This is just another case where this is happening.\r\n\r\nI agree with your suggested solution. We may not be able to show the username until the call returns (not confirmed)."}}
{"actor":{"display_login":"christianvogt"}}