From: Dylan William Hardison Date: Wed, 10 Apr 2019 15:48:19 +0000 (-0400) Subject: no bug - add date/time to report pings X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12fcb1124ce44157bf495e19219b3bb5ed98ffea;p=thirdparty%2Fbugzilla.git no bug - add date/time to report pings --- diff --git a/Bugzilla/Report/Ping/Simple.pm b/Bugzilla/Report/Ping/Simple.pm index 94f0de67a..eac6ba009 100644 --- a/Bugzilla/Report/Ping/Simple.pm +++ b/Bugzilla/Report/Ping/Simple.pm @@ -45,6 +45,8 @@ sub _build_validator { duplicates => joi->array->required->items(joi->integer), target_milestone => joi->string->required, version => joi->string->required, + delta_ts => joi->string->required, + creation_ts => joi->string->required, }); return JSON::Validator->new( @@ -84,6 +86,8 @@ sub prepare { blocked_by => [map { $_->dependson } $bug->map_blocked_by->all], depends_on => [map { $_->blocked } $bug->map_depends_on->all], flags => [map { $self->_prepare_flag($_) } $bug->flags->all], + delta_ts => $bug->delta_ts . "", + creation_ts => $bug->creation_ts . "", }; return ($self->_prepare_doc_id($bug), $doc);