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

Bug 332074

Summary: apply generic attributes to repositories created from template
Product: z_Archived Reporter: Larry Edelstein <ribs>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P2 CC: overholt, sgehwolf, steffen.pingel
Version: 3.4Keywords: plan
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
in progress patch
none
mylyn/context/zip none

Description Larry Edelstein CLA 2010-12-07 14:15:07 EST
When Mylyn creates a repository from a template, it doesn't configure that repository with any of the generic attributes contained in the template.

For example: here's an element from a plugin.xml file that defines a repository with a generic attribute called "repository-type".  When the enclosing plugin is loaded, Mylyn will create a RepositoryTemplate object configured with all the specified information, including the repository-type attribute, but shortly thereafter, when it creates a repository from this template, it will ignore that attribute.

   <extension
         point="org.eclipse.mylyn.tasks.core.templates">
      <repository
            addAutomatically="true"
            label="My special repository"
            repositoryKind="larryco"
            urlRepository="https://larryco.com/tasks">
            
            <!-- here's the generic attribute -->
         <attribute
               name="repository-type"
               value="integration-test-repository">
               
         </attribute>
      </repository>
   </extension>

 As far as I can tell, template attributes are not used anywhere in Mylyn.  What we need is for TasksUiPlugin.loadTemplateRepositories() to copy them from the template to the newly-created repository.
Comment 1 Steffen Pingel CLA 2010-12-27 14:43:35 EST
The generic attributes have a somewhat strange semantic. They are only intended to be used by extensions of AbstractRepositorySettingsPage but I agree that it would be useful to make them work for templates as well. I'll put this on the backlog as an enhancement request and we will consider it as part of future planning.
Comment 2 Steffen Pingel CLA 2011-01-04 13:33:45 EST
Created attachment 186035 [details]
in progress patch
Comment 3 Steffen Pingel CLA 2011-01-04 13:33:47 EST
Created attachment 186036 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2011-05-06 12:50:50 EDT
*** Bug 344032 has been marked as a duplicate of this bug. ***
Comment 5 Severin Gehwolf CLA 2011-07-14 14:17:15 EDT
Steffen, any news on this one? We'd like to ship a pre-configured Red Hat bugzilla task connector with our Mylyn packages in Fedora. In order to do this, we'd need to be able to specify the custom transitions file using this extension point. Are there other options? Thanks!
Comment 6 Steffen Pingel CLA 2011-07-21 17:14:35 EDT
The other option is to fix bug 341829 :). You could ping Frank on that bug but I can't promise when we will be able to take a look at it and Frank is currently on vacation.

I'll put this bug on the backlog meanwhile to consider it during the next planning session.
Comment 7 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