Bug 159346 - [connector] ChangeLogic
Summary: [connector] ChangeLogic
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-09-29 15:21 EDT by Erkki Lindpere CLA
Modified: 2011-02-02 12:24 EST (History)
1 user (show)

See Also:


Attachments
Patch for Web Connector Changelogic template (961 bytes, patch)
2006-12-09 17:06 EST, Erkki Lindpere CLA
no flags Details | Diff
mylar/context/zip (5.91 KB, application/octet-stream)
2006-12-20 21:54 EST, Eugene Kuleshov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erkki Lindpere CLA 2006-09-29 15:21:18 EDT
A ChangeLogic ( http://www.changelogic.com/ ) connector would be awesome. It is complicated, because ChangeLogic deals with:
* change management and versioning (being kind of a CVS front-end)
* tasks, which may or may not be related to changes (but usually are)

Initially, it would be great to support just tasks.
Comment 1 Karel Kravik CLA 2006-10-25 04:48:19 EDT
What kind of help do you need? I can answer questions about Changelogic and we can also create web services for connecting.
Comment 2 Erkki Lindpere CLA 2006-10-26 10:32:39 EDT
This bug is just a request, I do not have the resources to work on a full connector myself.

The generic login implementation patch described in Bug 151602 could be used as a generic connector to get queries/tasks into Eclipse and work with them through the web UI.

It currently works with the CVS version of Mylar (and Mylar Sandbox), but not with 0.8.0.

I'll list the regular expressions and URL-s I used, but I don't have access to a public ChangeLogic so I've only tested it locally:

Login Page URL: http://cvs.rm.sise/arendusweb/
Login Token Regexp: <form name=\"Login_form\" method=\"POST\" action=\"index.php\\?event=Login&amp;project_id=0&amp;link_uid=(.*)\">
Login URL: http://cvs.rm.sise/arendusweb/index.php?event=Login&link_uid=%TOKEN%&username=%USERNAME%&password=%PASSWORD%
Query URL:
http://cvs.rm.sise/arendusweb/index.php?event=Show_task_list&project_id=10
Query Regexp:
<a href="index.php\?event\=Show_task&amp;task_id\=.+?&amp;project_id\=10&amp;recent_list_id=.+?">(.+?)</a>.+?</td>.+?<td>.+?</td>.+?<td>.+?</td>.+?<td>.+?</td>.+?<td>.+?</td>.+?<td>(.+?)</td>
Task prefix: http://cvs.rm.sise/arendusweb/index.php?event=Show_task&task_id=
New task URL: http://cvs.rm.sise/arendusweb/index.php?event=Add_task&project_id=10
Comment 3 Erkki Lindpere CLA 2006-10-26 12:00:31 EDT
(In reply to comment #2)
I accidentally posted the Java escaped string as Login Token Regexp. Correction below.

Login Token Regexp: <form name="Login_form" method="POST"
action="index.php\?event\=Login&amp;project_id\=0&amp;link_uid\=(.*)">
Comment 4 Mik Kersten CLA 2006-10-26 19:02:46 EDT
Eugene: you could consider adding this as a template for the generic web repository connector, or better yet, Erkki: you could consider provide a patch with the template.  

Which brings up another question.  I wonder if we should make it easier to import templates simply by pointing to some URL with the XML contents rather than requiring them to be present in the plugin.xml...  That way repository providers could publish their own templates.
Comment 5 Erkki Lindpere CLA 2006-10-27 03:32:19 EDT
(In reply to comment #4)
> Eugene: you could consider adding this as a template for the generic web
> repository connector, or better yet, Erkki: you could consider provide a patch
> with the template.  

I can do that, but I need to test this more and maybe I should wait to see what Eugene thinks about the login solution in Bug 151602. But I noticed that there's a public ChangeLogic at http://changelogic.araneaframework.org/ , so I could contribute an initial template that would work with that without login.

> Which brings up another question.  I wonder if we should make it easier to
> import templates simply by pointing to some URL with the XML contents rather
> than requiring them to be present in the plugin.xml...  That way repository
> providers could publish their own templates.
> 

I think it would be a good idea, or maybe users should be able to add/alter the templates through a preference page? A particular instance of a repository might have slightly different templates and in that case users could customize it.
Comment 6 Eugene Kuleshov CLA 2006-10-27 06:52:27 EDT
(In reply to comment #4)
> Which brings up another question.  I wonder if we should make it easier to
> import templates simply by pointing to some URL with the XML contents rather
> than requiring them to be present in the plugin.xml...  That way repository
> providers could publish their own templates.

The best reusable thing in Eclipse is the plugin. I think, one could create plugin.xml with just new templates.
Comment 7 Eugene Kuleshov CLA 2006-10-27 06:55:14 EDT
(In reply to comment #5)
> I think it would be a good idea, or maybe users should be able to add/alter the
> templates through a preference page? A particular instance of a repository
> might have slightly different templates and in that case users could customize
> it.

I don't get it. If you need to edit specifics for particular repository you can do that right in the repository settings.
Comment 8 Erkki Lindpere CLA 2006-10-27 08:06:31 EDT
(In reply to comment #7)
> I don't get it. If you need to edit specifics for particular repository you can
> do that right in the repository settings.
> 

I meant the templates. If I want to have several different queries for one repository, the templates are probably pretty similar. But maybe they will differ a bit from the ones provider by Mylar or Mylar doesn't provide them at all. I wouldn't want to write a plug-in just to change them.
And copy & pasting several complex fields every time I want to create a new query is very error-prone.
Comment 9 Eugene Kuleshov CLA 2006-10-27 08:36:03 EDT
(In reply to comment #8)
> I meant the templates. If I want to have several different queries for one
> repository, the templates are probably pretty similar. But maybe they will
> differ a bit from the ones provider by Mylar or Mylar doesn't provide them at
> all. I wouldn't want to write a plug-in just to change them.
> And copy & pasting several complex fields every time I want to create a new
> query is very error-prone.

We may look if we can show already entered queries in the templates drop down. That would be less obscure then edit templates. Though that would have nothing to do with this report.
Comment 10 Mik Kersten CLA 2006-10-30 21:43:49 EST
Eugene: you're right in pointing out that the plug-in is the unit of extensibility in Eclipse.  But to work in a usable way this would require repositories to provide a plug-in and a feature just to support a template.  But as you point out we're diverging on this report, so let's discuss this during tomorrow's meeting and create a new bug if we come up with a way to simplify this.
Comment 11 Erkki Lindpere CLA 2006-11-18 19:46:51 EST
The templates for ChangeLogic can be found in the current patch in bug 151602, but they require the login process. Even for anonymous ChangeLogic access, requesting the login page before the query seems to be required because otherwise HttpClient will throw a CircularRedirectException.
Comment 12 Erkki Lindpere CLA 2006-12-09 17:06:32 EST
Created attachment 55361 [details]
Patch for Web Connector Changelogic template

Mylar 1.0 supports Changelogic through the web connector, but the current template doesn't work with all repositories due to a bug in Mylar 1.0. As Eugene Kuleshov suggested in bug 167282, /index.php?cookietest=1 should be appended to the login page URL. This patch does that.
Comment 13 Mik Kersten CLA 2006-12-18 17:55:12 EST
Eugene: let me know if I should apply.
Comment 14 Eugene Kuleshov CLA 2006-12-20 21:53:19 EST
I applied patch but had to also fix some parsing issues in login token template order to make WebRepositoryConnectorTest pass. I also created a test account in ChangeLogic repository we have in our templates, so credentials are currently hard coded in WebRepositoryConnectorTest.

Erkki, can you please try updated template and confirm if issue is resolved for you? Thanks.
Comment 15 Eugene Kuleshov CLA 2006-12-20 21:54:20 EST
Created attachment 56019 [details]
mylar/context/zip
Comment 16 Eugene Kuleshov CLA 2007-01-21 00:18:03 EST
Resolving as fixed since there is no complains. Please feel free to reopen if there are some issues.
Comment 17 Mik Kersten CLA 2007-01-22 12:31:28 EST
I think our convention should be to keep connector requests open until there is a rich connector available, since the generic web repository connector only provides a subset of the functionality.  

That said, we should do a better job of encouraging people to use the generic connector when no rich connector is available.  Eugene, I think that a good way of doing this would be to put a nicely formatted table of supported repositories in a new "Supported Task Repositories" section at the very top of: http://wiki.eclipse.org/index.php/Mylar_User_Guide#Generic_Web_Repository_Connector  I can then link to this from relevant parts of the web site (e.g. download page).
Comment 18 Eugene Kuleshov CLA 2007-01-22 13:15:29 EST
Sorry, I was confused because issue was assigned to me.
Comment 19 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn