Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 147817 - Trac connector: implement connector and settings page
Summary: Trac connector: implement connector and settings page
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 22:04 EDT by Steffen Pingel CLA
Modified: 2006-07-06 18:07 EDT (History)
2 users (show)

See Also:


Attachments
The Trac connector and settings page implementation and test cases. (21.09 KB, patch)
2006-07-01 20:37 EDT, Steffen Pingel CLA
no flags Details | Diff
mylar/context/zip (11.38 KB, application/octet-stream)
2006-07-01 20:38 EDT, Steffen Pingel CLA
no flags Details
Fixes an exception when the last item in the access type combo is selected (1.03 KB, patch)
2006-07-06 07:45 EDT, Steffen Pingel CLA
no flags Details | Diff
Fixes exception in TracRepositorySettingsPage and disables caching of ITracClient objects (6.89 KB, patch)
2006-07-06 11:51 EDT, Steffen Pingel CLA
no flags Details | Diff
repository icon (138 bytes, image/gif)
2006-07-06 13:30 EDT, Eugene Kuleshov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2006-06-19 22:04:23 EDT
Provide an implementation of a TracRepositoryConnector class and a TracRepositorySettingsPage for adding of Trac TaskRepository instances.
Comment 1 Mik Kersten CLA 2006-06-20 15:25:11 EDT
Steffen, please mark the bugs that you plan on getting to this week as P1 or P2.
Comment 2 Steffen Pingel CLA 2006-07-01 20:37:49 EDT
Created attachment 45642 [details]
The Trac connector and settings page implementation and test cases.

This patch depends on the rename patch of bug 147816 (AllTracTests.java will probably conflict).
Comment 3 Steffen Pingel CLA 2006-07-01 20:38:14 EDT
Created attachment 45643 [details]
mylar/context/zip
Comment 4 Mik Kersten CLA 2006-07-05 01:36:23 EDT
Patch applied.  
- testGetTicketInvalidId fails, other tests pass
- use ArrayList and not Vector unless you're after synchronization, and even then you may be better wrapping in a synchronized list
- I didn't see a connector show up (no extenstion declared), will check other patches
Comment 5 Steffen Pingel CLA 2006-07-05 08:23:53 EDT
All tests cases ran successfully on my system. Could you paste the stack trace (or error)?

The XML-RPC library requires either Vector objects or arrays. I guess the goal is to maintain compatibility with early JDKs which don't have the List interface (and ArrayList class). 

Sorry, the extension delcaration is missing, I'll add a patch to bug 149385.
Comment 6 Steffen Pingel CLA 2006-07-06 07:45:39 EDT
Created attachment 45831 [details]
Fixes an exception when the last item in the access type combo is selected
Comment 7 Steffen Pingel CLA 2006-07-06 09:27:28 EDT
Currently there is no notification when properties of a TaskRepository change. Prior to Mylar 0.5.3 TaskRepository objects were removed and readded from the tasklist, so notifications were sent through ITaskRepositoryListener. I think this may cause JiraServerFacade to cache stale JiraServer objects. This also applies to TracClientManager. I think a repositorySettingsChanged() method should be added to ITaskRepositoryListener.

Mik, the patches haven't shown up in cvs, yet. Could you check if your commit was successful?
Comment 8 Mik Kersten CLA 2006-07-06 11:14:30 EDT
I neglected to actually do the commit, done now.

Looking into the notification problem...
Comment 9 Eugene Kuleshov CLA 2006-07-06 11:26:56 EDT
Guys, what was the reason for making AbstractAddExistingTaskWizard abstract? At least Jira and Web connectors are using the same empty subclass.
Comment 10 Steffen Pingel CLA 2006-07-06 11:51:03 EDT
Created attachment 45850 [details]
Fixes exception in TracRepositorySettingsPage and disables caching of ITracClient objects

The patch fixes an exception when the last item in the access type combo is selected and disables caching of client objects in TracClientManager. Once  notifications have been implemented this can be enabled again. The patch includes a test case which triggers the bug.
Comment 11 Eugene Kuleshov CLA 2006-07-06 13:30:42 EDT
Created attachment 45858 [details]
repository icon
Comment 12 Mik Kersten CLA 2006-07-06 16:27:39 EDT
Regarding comment#9: done, it's now CommonAddExistingTaskWizard and clients cna override getAddExistingTaskWizard but don't need to implement it (method is no longer abstract).
Comment 13 Mik Kersten CLA 2006-07-06 16:53:00 EDT
Patch and icon committed.  Steffen, it looks like we're done here?
Comment 14 Steffen Pingel CLA 2006-07-06 17:46:13 EDT
Yes, this report can be closed.

What about notifications for changes to task repository properties? Should I open another report for that?
Comment 15 Mik Kersten CLA 2006-07-06 18:05:14 EDT
Yes, go ahead and open a new report.

I have added a sandbox/site.xml to the standard dev update site in org.eclipse.mylar-site, and configured it to get the xmlrpc plug-in from your update site.  I think that the dev update site is the most natural place for sandbox items.  You can try installing it by pointing your update manager at the dev update site.  

Note that this means that your version numbers will now be synched with the rest of Mylar.  Until the xmlrpc plug-in is merged you must let me know when it needs to be updated.

If you get the queries going I think we can encourage people on the dev list to try this for tomorrow's build, and if you keep moving at this rate we may be able to distribute the Trac connector with 0.6.1.
Comment 16 Mik Kersten CLA 2006-07-06 18:07:11 EDT
Done.  Nice work Steffen.