[Bps-public-commit] SD branch, master, updated. 3136814876d448b703a3ef9b615fe3cc32514c28

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Jun 1 04:55:13 EDT 2009


The branch, master has been updated
       via  3136814876d448b703a3ef9b615fe3cc32514c28 (commit)
       via  afa4d9b9e60a45a225b76af876e7c5eeea39e2fe (commit)
      from  003086fcb2062b831c6404aa5b107b614899f902 (commit)

Summary of changes:
 lib/App/SD/Replica/gcode.pm |   14 ++++++++++++++
 lib/App/SD/Replica/trac.pm  |   10 ++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit afa4d9b9e60a45a225b76af876e7c5eeea39e2fe
Author: sunnavy <sunnavy at gmail.com>
Date:   Mon Jun 1 16:38:31 2009 +0800

    add database_settings for gcode and trac

diff --git a/lib/App/SD/Replica/gcode.pm b/lib/App/SD/Replica/gcode.pm
index ec555cf..660a2d8 100644
--- a/lib/App/SD/Replica/gcode.pm
+++ b/lib/App/SD/Replica/gcode.pm
@@ -88,6 +88,20 @@ sub remote_uri_path_for_id {
     return "/ticket/".$id;
 }
 
+sub database_settings {
+    my $self = shift;
+    my $issue = $self->gcode->issue;
+    $issue->load_predefined;
+    my $status = $issue->predefined_status;
+    return {
+        default_status  => 'New',
+        active_statuses => $status->{open},
+        statuses        => [ @{ $status->{open} }, @{ $status->{closed} } ],
+        project_name    => $self->project,
+    };
+
+}
+
 __PACKAGE__->meta->make_immutable;
 no Any::Moose;
 
diff --git a/lib/App/SD/Replica/trac.pm b/lib/App/SD/Replica/trac.pm
index 82cb273..08d57d3 100644
--- a/lib/App/SD/Replica/trac.pm
+++ b/lib/App/SD/Replica/trac.pm
@@ -83,6 +83,16 @@ sub remote_uri_path_for_id {
     return "/ticket/".$id;
 }
 
+sub database_settings {
+    my $self = shift;
+    return {
+        active_statuses => [qw/new accepted/],
+        statuses        => [
+            qw/new accepted fixed invalid wontfix duplicate
+              worksforme/
+        ],
+    };
+}
 
 
 __PACKAGE__->meta->make_immutable;

commit 3136814876d448b703a3ef9b615fe3cc32514c28
Merge: afa4d9b... 003086f...
Author: sunnavy <sunnavy at gmail.com>
Date:   Mon Jun 1 16:54:52 2009 +0800

    Merge branch 'master' of code.bestpractical.com:/git/sd


-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list