Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 418833

Summary: Improving Add Content from repositories
Product: [ECD] Orion Reporter: Anton McConville <antonm>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Add content by search from github none

Description Anton McConville CLA 2013-10-07 11:23:49 EDT
In our new project workflows, we can quite easily add content from git by clicking on the orange plus button and then pasting in a URL to the project. It is lightning fast to combine git project content within your own project - to mix the content together.

However - it could be even more powerful if we integrate search capability - github has a search API

http://developer.github.com/v3/search/

What if instead of requiring our users to know a url of a git project ( which they would probably find by visiting the project on github, they could search for the project by typing in a string? This would mean they could easily add external github content without leaving the project page.

This same approach could be used for other repositories and services. For example adding images from Flickr.

It would be a more powerful 'cloud' based way of helping create software projects.

It may require changes to the command framework.
Comment 1 Anton McConville CLA 2013-10-07 11:27:26 EDT
Created attachment 236181 [details]
Add content by search from github
Comment 2 Anton McConville CLA 2013-10-07 11:30:48 EDT
Anton McCon...
I was demoing the project stuff on Friday to a designer in Toronto and adding content from git 
10:57:55 AM
◄
I love how easy that is 
10:58:11 AM
◄
and when we get the drag and drop working it'll be pretty amazing 
10:58:17 AM
◄
but I thought it could be even easier 
10:58:29 AM
Malgorzata.T...
What would you like to do there? 
10:58:31 AM
Anton McCon...
because now you have to know the url 
10:58:43 AM
◄
what if you could just search for it right from Orion 
10:58:46 AM
Malgorzata.T...
a, yes, I think I see where this is going 
10:59:05 AM
◄
there is a little problem there 
10:59:13 AM
◄
if this is contributed by plugin 
10:59:18 AM
Anton McCon...
There is a search api for github 
10:59:53 AM
Malgorzata.T...

Anton McCon...
is it out of the question to do this as a plugin for github - I think it'd be amazing across the board ... for example we could extend it one day to add images from flickr ( just as an example ) 
11:03:28 AM
Malgorzata.T...
but does github have any API for searching for projets? 
11:03:32 AM
Anton McCon...
it does 
it says it is in beta, but there is an api 
11:04:09 AM
Malgorzata.T...
does it provide UI or it's just API? 
11:04:16 AM
Anton McCon...
http://developer.github.com/v3/search/ 
11:04:21 AM
◄
I think an api 
11:04:22 AM
◄
for now 
11:04:31 AM
◄
anyway - I don't want to distract you too much 
11:04:43 AM
Malgorzata.T...
then it's not that bad, we could do something with it 
11:04:46 AM
Anton McCon...
I just thought it would be a really positive thing to have 
11:04:54 AM
Malgorzata.T...
we could create "Add Project from GitHub" 
11:05:02 AM
Anton McCon...
The designer was really impressed 
11:05:05 AM
◄
it was so simple 
11:05:18 AM
Malgorzata.T...
and we would require only the search string 
11:05:39 AM
Anton McCon...
yes 
11:05:45 AM
Malgorzata.T...
and then we could use our command API to display the list of results 
11:05:58 AM
Anton McCon...
all the magic would happen behind the scenes - because I think the api returns the url 
11:06:04 AM
Malgorzata.T...
and user would check the one he wants to import 
11:06:07 AM
Anton McCon...
y 
11:06:10 AM
Malgorzata.T...
the only problem is 
11:06:27 AM
◄
that our command framework is quite limited when it comes to input params 
11:06:56 AM
◄
so we could extend it a little bit 
11:06:59 AM
Anton McCon...
gosh - there's nothing more basic than entering a search string, or am I missing something? 
11:07:12 AM
◄
you know better than me 
11:07:14 AM
Malgorzata.T...
this is ok, I agree 
11:07:23 AM
◄
but then if you have 10 resutls 
11:07:27 AM
Anton McCon...
ah - I see 
11:07:33 AM
◄
for the feedback 
11:07:35 AM
Malgorzata.T...
how do you want to display them in this pupup? 
11:08:17 AM
that's what comes to mind, but I haven't thought long and hard about it 
11:08:37 AM
◄
we could brainstorm for easier ways 
11:08:43 AM
Malgorzata.T...
yes, but our command framework params 
11:08:49 AM
◄
they look totally different 
11:09:06 AM
◄
and work only like a proxy 
11:10:01 AM
Anton McCon...
A
I mentioned it to McQ 
11:10:29 AM
◄
he liked the idea 
11:10:42 AM
Malgorzata.T...
it would be really cool if we could have some UI rendering there 
11:10:46 AM
Anton McCon...
As long as we can make it consistent 
11:11:32 AM
◄
I think 
11:11:35 AM
◄
that's the trick 
11:12:07 AM
Malgorzata.T...
I think that the biggest problem here is that we can't properly open UIs from plugin 
11:12:31 AM
Anton McCon...
but as you say, we could extend the capabilities of the plugin UI for this scenario 
.
Anton McCon...
maybe 
11:12:47 AM
◄
the command UI 
11:12:48 AM
◄
I mean 
11:12:59 AM
Malgorzata.T...
well, this is not a bad idea 
11:13:08 AM
◄
if we could add a search paramether 
11:13:24 AM
◄
some kind of a widget that would call an UI 
11:13:26 AM
Anton McCon...
I wonder if our own search could benefit 
11:13:37 AM
Malgorzata.T...
we could also use it for attaching files and directories 
11:13:41 AM
Anton McCon...
yes 
11:14:02 AM
Malgorzata.T...
and why not, "push to branch" 
11:14:05 AM
Anton McCon...
the more you point these things out, the more I think we need it 
11:14:05 AM
Malgorzata.T...
etc 
11:14:59 AM
Anton McCon...
so - I'll make a bug to start with 
11:15:07 AM
Malgorzata.T...
ok 
◄
Comment 3 John Arthorne CLA 2015-05-05 14:51:06 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html