{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3721","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3721/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3721/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3721/events","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/3721","id":96351048,"number":3721,"title":"\"add existing project\" search does not search components","user":{"login":"jlcohoon","id":4965832,"avatar_url":"https://avatars.githubusercontent.com/u/4965832?v=3","gravatar_id":"","url":"https://api.github.com/users/jlcohoon","html_url":"https://github.com/jlcohoon","followers_url":"https://api.github.com/users/jlcohoon/followers","following_url":"https://api.github.com/users/jlcohoon/following{/other_user}","gists_url":"https://api.github.com/users/jlcohoon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlcohoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlcohoon/subscriptions","organizations_url":"https://api.github.com/users/jlcohoon/orgs","repos_url":"https://api.github.com/users/jlcohoon/repos","events_url":"https://api.github.com/users/jlcohoon/events{/privacy}","received_events_url":"https://api.github.com/users/jlcohoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T15:47:42Z","updated_at":"2015-07-21T15:58:13Z","closed_at":null,"body":"## Steps\r\n1. If you do not have one already, create a project that has a component within it\r\n2. Go to your project organizer\r\n3. Create a collection\r\n4. Drag and drop the *component* from your project into the collection\r\n5. Create another collection\r\n6. Ensure that the project is expanded in the organizer so that you can see the component (rules out https://github.com/CenterForOpenScience/osf.io/issues/2779 as the issue)\r\n7. Select the collection\r\n8. Click on \"Add Existing Project\" from the toolbar above the organizer.\r\n9. Search for the *component* title\r\n\r\n## Outcome\r\n1. You can successfully drag and drop a component into a collection\r\n2. When you attempt to search for the component, no results are returned making it impossible to search and add the component.\r\n![screen shot 2015-07-21 at 11 32 36 am](https://cloud.githubusercontent.com/assets/4965832/8805130/9c822940-2f9d-11e5-954b-e9647ca2535b.png)\r\n(in the above image, \"QA component\" is hidden beneath the results dropdown)\r\n\r\n## Expected Outcome\r\n1. If components can be added to collections by dragging and dropping, they should also be able to be added by searching for them. This means that the search for existing projects must include a component search as well. "},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/123384121","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/3721#issuecomment-123384121","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3721","id":123384121,"user":{"login":"brianjgeiger","id":6599111,"avatar_url":"https://avatars.githubusercontent.com/u/6599111?v=3","gravatar_id":"","url":"https://api.github.com/users/brianjgeiger","html_url":"https://github.com/brianjgeiger","followers_url":"https://api.github.com/users/brianjgeiger/followers","following_url":"https://api.github.com/users/brianjgeiger/following{/other_user}","gists_url":"https://api.github.com/users/brianjgeiger/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjgeiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjgeiger/subscriptions","organizations_url":"https://api.github.com/users/brianjgeiger/orgs","repos_url":"https://api.github.com/users/brianjgeiger/repos","events_url":"https://api.github.com/users/brianjgeiger/events{/privacy}","received_events_url":"https://api.github.com/users/brianjgeiger/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T15:58:13Z","updated_at":"2015-07-21T15:58:13Z","body":"What's happening is that the component search is only looking for components that you otherwise don't have access to because they are located in a project that is private but you are not a contributor.\r\n\r\nThat being said, I don't disagree with the issue. Just be careful when the change is made not to break existing functionality. "}}