[Bps-public-commit] Net-Hiveminder branch, master, updated. 6854ae684be309fbd19985283bef25442cca8e62

sartak at bestpractical.com sartak at bestpractical.com
Thu Jul 9 04:33:32 EDT 2009


The branch, master has been updated
       via  6854ae684be309fbd19985283bef25442cca8e62 (commit)
      from  a731f602168abcac417fa401a7133ce0426a73a9 (commit)

Summary of changes:
 Changes               |    6 +++---
 lib/Net/Hiveminder.pm |   23 +++++++++++++++++++++++
 2 files changed, 26 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 6854ae684be309fbd19985283bef25442cca8e62
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Jul 9 04:33:25 2009 -0400

    Add get_task_history

diff --git a/Changes b/Changes
index fa8fc0c..11107e9 100644
--- a/Changes
+++ b/Changes
@@ -1,10 +1,10 @@
 Revision history for Net-Hiveminder
 
+0.08
+        Add get_task_history (Nathan Vonnahme)
+
 0.07    Mon Apr 20 15:22:52 CST 2009
         Dependency cleanups, releng, pod coverage thanks to c9s++
-        
-
-0.06
         Allow passing arguments from todo to display_tasks
         Add a send_feedback method
 
diff --git a/lib/Net/Hiveminder.pm b/lib/Net/Hiveminder.pm
index 5ef7b75..7b916fb 100644
--- a/lib/Net/Hiveminder.pm
+++ b/lib/Net/Hiveminder.pm
@@ -376,6 +376,15 @@ sub send_feedback {
     $self->act('SendFeedback', content => $text);
 }
 
+
+sub get_task_history {
+    my $self = shift;
+    my $task_id = $self->loc2id(shift);
+
+    # see http://hiveminder.com/=/model/BTDT.Model.TaskTransaction
+    return $self->search( 'TaskTransaction', task_id => $task_id, );
+}
+
 __PACKAGE__->meta->make_immutable;
 no Moose;
 
@@ -572,6 +581,20 @@ of Net::Hiveminder. If Creator is unavailable, then this will throw an error.
 
 Sends the given TEXT as feedback to the Hiveminder team.
 
+=head2 get_task_history LOCATOR
+
+Load the transaction history for task LOCATOR.
+
+Returns an array of transactions looking like:
+
+$VAR1 = {
+    'modified_at' => '2008-07-24 15:38:06',
+    'type' => 'update',
+    'id' => '1745040',
+    'task_id' => '433397',
+    'created_by' => '463'
+};
+
 =head1 SEE ALSO
 
 L<App::Todo>, L<Jifty>, L<Net::Jifty>

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



More information about the Bps-public-commit mailing list