PATCH: return LastUpdated via REST

Hi,

The following patch adds the useful LastUpdated field to the fields
returned through the REST interface.

— share/html/REST/1.0/Forms/ticket/default 2006-04-24 11:00:16.936648000 +0200
+++ share/html/REST/1.0/Forms/ticket/default 2006-04-24 11:01:55.696443000 +0200
@@ -57,7 +57,7 @@
my ($c, $o, $k, $e) = ("", [], {}, 0);
my %data = %$changes;
my $ticket = new RT::Ticket $session{CurrentUser};
-my @dates = qw(Created Starts Started Due Resolved Told);
+my @dates = qw(Created Starts Started Due Resolved Told LastUpdated);
my @people = qw(Requestors Cc AdminCc);
my @create = qw(Queue Requestor Subject Cc AdminCc Owner Status Priority
InitialPriority FinalPriority TimeEstimated TimeWorked

Cheers
David - who starts to wonder if his patches are actually read by someone :slight_smile:
David Schweikert | phone: +41 44 632 7019
System manager ISG.EE | walk: ETH Zentrum, ETL F24.1
ETH Zurich, Switzerland | web: http://people.ee.ethz.ch/dws

Hi,

The following patch adds the useful LastUpdated field to the fields
returned through the REST interface.

Thanks! Applied

Cheers
David - who starts to wonder if his patches are actually read by someone :slight_smile:

They are. Just a couple of sort of overworked someones :wink:

David - who starts to wonder if his patches are actually read by someone :slight_smile:

They are. Just a couple of sort of overworked someones :wink:

I know what you mean… Thanks :slight_smile:

Did you also have a look at my patch to fix the searching of days?

http://lists.bestpractical.com/pipermail/rt-devel/2006-April/008368.html

This bug hits particularly people with positive timezones.

Cheers
David
David Schweikert | phone: +41 44 632 7019
System manager ISG.EE | walk: ETH Zentrum, ETL F24.1
ETH Zurich, Switzerland | web: http://people.ee.ethz.ch/dws

The side-effect of this patch is that now editing a ticket using 'rt’
tool returns the following:

LastUpdated: Immutable field

Should the server-side be smart enough not to update it?

  • Dmitri.On Mon, 2006-04-24 at 10:49 -0400, Jesse Vincent wrote:

On Mon, Apr 24, 2006 at 11:06:52AM +0200, David Schweikert wrote:

Hi,

The following patch adds the useful LastUpdated field to the fields
returned through the REST interface.

Thanks! Applied

Cheers
David - who starts to wonder if his patches are actually read by
someone :slight_smile:

They are. Just a couple of sort of overworked someones :wink:


List info:
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Best Practical is hiring! Come hack Perl for us:
http://bestpractical.com/about/jobs.html

The side-effect of this patch is that now editing a ticket using 'rt’
tool returns the following:

LastUpdated: Immutable field

Should the server-side be smart enough not to update it?

It should become so, if it’s not

PGP.sig (186 Bytes)