I was looking at how an external program (in this case a "release report" I'm writing for Scmbug) would retrieve details about topics for a given bugid. (I'm actually only after if a review was generated and if it is still open at this point - but may want more in the future)
I didn't want to try and go directly into the codestriker database as that would be a bit nasty. However I was very pleased after a reasonable about of studying that the code to do it is relatively simple. I was even able to achieve this without really updating any existing "Action" related code.
I have attached a diff of this, the code I used to test this was simply:
my $client = CodestrikerClient->new('http://.../codestriker/codestriker.pl');
my $xml_data = $client->get_topics_xml("33466");
So remarkably simple and opens up a whole world of possibilities for reports.
What do you think, is this something you would be happy for codestriker to support?
Log in to post a comment.