{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/8173","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/8173/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/8173/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/8173/events","html_url":"https://github.com/openshift/origin/pull/8173","id":142371032,"number":8173,"title":"Upload component during the create flow","user":{"login":"jhadvig","id":1668218,"avatar_url":"https://avatars.githubusercontent.com/u/1668218?v=3","gravatar_id":"","url":"https://api.github.com/users/jhadvig","html_url":"https://github.com/jhadvig","followers_url":"https://api.github.com/users/jhadvig/followers","following_url":"https://api.github.com/users/jhadvig/following{/other_user}","gists_url":"https://api.github.com/users/jhadvig/gists{/gist_id}","starred_url":"https://api.github.com/users/jhadvig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhadvig/subscriptions","organizations_url":"https://api.github.com/users/jhadvig/orgs","repos_url":"https://api.github.com/users/jhadvig/repos","events_url":"https://api.github.com/users/jhadvig/events{/privacy}","received_events_url":"https://api.github.com/users/jhadvig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/web","name":"component/web","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-03-21T14:44:53Z","updated_at":"2016-04-06T13:48:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/8173","html_url":"https://github.com/openshift/origin/pull/8173","diff_url":"https://github.com/openshift/origin/pull/8173.diff","patch_url":"https://github.com/openshift/origin/pull/8173.patch"},"body":"Adding option to add to project any component that we expose to the users. For this I've created a separate tab in the 'Add to project' page, together with 'From Docker Image'.\r\nComponent could be added in a multiple ways:\r\n1. Browse trough the file on users local machine by hitting the \"Browse\" button right to the input field. \r\n2. Paste component description into ace editor beneath the input field.\r\n3. Drag and Drop the file from users local machine to the area of the input field or ace editor.\r\nJSON and YAML format are supported.\r\n\r\nAlso upon componet creation a check is being done to find out whether a component with the same name doesn't exist in current project. If it exists it will be replaced** with the new one. If it doesn't it will be created.\r\n** The way how replacing is working is that we have to delete the old component and create the new one instead. The old component cant be updated with the new one since the new one is missing data like timestamps, revision number, generation , ...\r\nThis is a bit unfortunate approach but wasnt sure if extending data of the old component with the data from the new one was better since by extending the fields from the old component would be preserved.\r\n\r\nHad to update the oscFileInput scope with an `fileExtension` and `dropArea` variable. Originally wanted to have whole filename, but realize that more valid information then filename(which could be anything) is the file extention. The `dropArea` variable points to a area which should respond to Drag'n'Drop action.\r\n\r\nAlso for me unknown reason for me when redirecting upon template creation to fromTemplate page and upon imageStream creation to fromImage page  with `$location.path` (create.html#206 && create.html#210) I'm redirected to project list. The path is though right cause when I replace it with `location.assign` method (which is not what we want to use) Im getting the desired redirection.\r\n\r\nbindata.go is missing, will provide after review.\r\n\r\nActual screenshot:\r\n![screenshot](https://cloud.githubusercontent.com/assets/1668218/13921557/b3accdaa-ef78-11e5-9cf8-96c85eaf1004.png)\r\n![screenshot-1](https://cloud.githubusercontent.com/assets/1668218/13923150/ac00da0e-ef7f-11e5-92fe-ff75e03d2ed6.png)\r\n\r\n@jwforres @spadgett PTAL"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/206380623","html_url":"https://github.com/openshift/origin/pull/8173#issuecomment-206380623","issue_url":"https://api.github.com/repos/openshift/origin/issues/8173","id":206380623,"user":{"login":"jhadvig","id":1668218,"avatar_url":"https://avatars.githubusercontent.com/u/1668218?v=3","gravatar_id":"","url":"https://api.github.com/users/jhadvig","html_url":"https://github.com/jhadvig","followers_url":"https://api.github.com/users/jhadvig/followers","following_url":"https://api.github.com/users/jhadvig/following{/other_user}","gists_url":"https://api.github.com/users/jhadvig/gists{/gist_id}","starred_url":"https://api.github.com/users/jhadvig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhadvig/subscriptions","organizations_url":"https://api.github.com/users/jhadvig/orgs","repos_url":"https://api.github.com/users/jhadvig/repos","events_url":"https://api.github.com/users/jhadvig/events{/privacy}","received_events_url":"https://api.github.com/users/jhadvig/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T13:48:42Z","updated_at":"2016-04-06T13:48:42Z","body":"@jwforres @spadgett I've prepared couple of proposals* for the mentioned issue. All of them will pop up a modal that is notifying user that he is adding a Template and that he has to pick up an action. I've picked a modal cause I didnt come up with a better way how to model the picking the next action upon the Template creation (didnt like the idea of scanning the ace editor after every change and dynamically add bunch of buttons, like Save, Process, etc..., or checkboxes).\r\n*following comments present the proposals"}}