RE: [TSVN] bugtraq feature extension
From: Steven H _at_ orcon <_at_>
Date: 2005-02-21 22:15:59 CET
> - The available bug ID's should be fetched automaticaly without any user
Defined by a regex can can be swaped in and out.
A user could type
---
closes #1, fixes #5
---
Autocomplete will fire upon a regex that sniffs 'closes' & 'fixes' - other
terms could also be used - just list them in the regex.
> whole user name thing to pull the users 'tickets'
I have to say that this would be an AWESOME addition - but hell it would be
complex!
I think that it is the job of the issue tracker to supply a 'report' which
can be called upon - how?
What comes to mind is the idea of an 'issue-query abstraction layer' -
follow class factory pattern.
*you* would define an interface, that an 'issue-implementation' class would
implement, and code the class factory.
And *we* can code for a specific issue tracker - supply a 'report' &
issue-implementation class that will turn that report into something useful
by TSVN.
That would take all the pressure off you to code up for every single issue
tracker out there.
<C# pseudo code>
/* interface that defines what we are going to do with issues */
public interface IIssueQuery {
Issue[] GetUsersIssues(string user);
Issue[] GetUsersIssues(string user, string password);
}
/* class that defines an issue */
public class Issue {...}
/* an issue factory class that calls the appropriate
* issue implementation class
*/
public class IssueQueryFactory : IIssueQuery
public Issue[] GetUsersIssues(...) {
/* code to find out the type of
* 'issue-implementation' class
* were using, make the call return
* string array of details
*/
}
/* a set of issue-implementation classes that
* can talk to a specific issue-tracker
*/
class TracIssueQuery : IIssueQuery {
public Issue[] GetUsersIssues(...) {
/* code that will talk to the trac issue tracker
* mabye run a specific report to pull the information
*/
}
class ZillaIssueQuery : IIssueQuery {...}
</C# pseudo code>
---------------------------------------------------------------------------
Steven Higgan - 3rd Year B.I.T. Otago Polytechnic, Dunedin New Zealand
.net geek
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Feb 21 22:17:29 2005
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.