ehendrix23 ae85baf396 Restrict recorder query to include max age (#18231)
* Update query to include maxAge

Updated the query from recorded to include MaxAge if set; reducing the amount of records retrieved that would otherwise be purged anyway for the sensor.

* Added newline in docstring

Added newline in docstring.

* Add test + small fix

Added test to ensure query works correctly
Query should be greater then or equal instead of greater then. Fixed.

* Fixed lint issue

Fixed lint issue.
2018-11-08 23:08:36 +00:00
..
2018-07-20 11:45:20 +03:00
2018-11-03 13:47:36 +01:00
2018-11-05 09:23:58 +01:00
2018-11-08 18:49:00 +01:00
2018-11-03 12:36:22 +01:00
2018-10-26 10:18:10 +02:00
2018-10-08 16:35:38 +02:00
2018-10-03 23:12:21 +02:00
2018-11-07 10:45:29 +01:00
2018-11-07 10:45:29 +01:00
2018-11-05 20:09:07 -05:00
2018-10-08 20:50:24 +02:00
2018-11-07 10:45:15 +01:00
2018-10-14 17:11:39 +02:00
2018-11-08 00:33:51 +01:00
2018-11-03 13:47:36 +01:00
2018-10-25 16:44:57 +02:00
2018-10-26 10:18:10 +02:00
2018-11-05 09:23:58 +01:00
2018-10-01 08:52:42 +02:00
2018-11-06 10:36:52 +01:00
2018-10-26 10:18:10 +02:00
2018-10-26 10:18:10 +02:00
2018-11-07 10:45:29 +01:00
2018-11-07 10:45:29 +01:00
2018-10-30 11:35:40 +01:00
2018-10-30 11:35:40 +01:00
2018-10-30 11:35:40 +01:00
2018-11-07 21:52:55 +01:00
2018-10-01 08:52:42 +02:00
2018-11-05 23:29:42 +01:00
2018-09-26 18:02:05 +02:00
2018-11-03 13:47:36 +01:00
2018-10-24 22:56:14 +02:00
2018-11-07 10:45:29 +01:00
2018-11-07 10:45:29 +01:00
2018-10-30 21:25:12 +01:00
2018-10-17 14:12:41 +02:00
2018-07-20 11:45:20 +03:00
2018-10-01 08:52:42 +02:00
2018-10-02 07:32:03 +02:00
2018-07-20 11:45:20 +03:00
2018-10-21 19:54:51 +02:00
2018-10-23 14:09:08 +02:00
2018-07-18 11:54:27 +02:00
2018-10-30 21:23:44 +01:00
2018-07-20 11:45:20 +03:00
2018-07-20 11:45:20 +03:00
2018-07-20 11:45:20 +03:00
2018-07-20 11:45:20 +03:00
2018-10-01 08:52:42 +02:00
2018-07-20 11:45:20 +03:00
2018-10-01 08:52:42 +02:00
2018-07-20 11:45:20 +03:00
2018-09-16 01:17:47 +02:00
2018-07-23 14:05:38 +02:00
2018-10-03 06:28:08 +02:00
2018-08-13 10:39:48 -07:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-07-20 11:45:20 +03:00
2018-10-14 23:51:15 +02:00
2018-10-01 08:52:42 +02:00
2018-07-20 11:45:20 +03:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:59:45 +02:00
2018-10-01 08:59:45 +02:00
2018-08-23 22:56:18 +02:00
2018-10-01 08:52:42 +02:00
2018-10-02 11:03:09 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-28 23:03:27 +01:00
2018-07-20 11:45:20 +03:00
2018-10-02 10:23:37 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-08-16 14:21:49 +02:00
2018-07-20 11:45:20 +03:00
2018-07-20 11:45:20 +03:00
2018-10-17 23:09:05 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-07-20 11:45:20 +03:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-28 13:57:44 +01:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-09-27 23:13:11 +02:00
2018-10-01 08:52:42 +02:00
2018-09-18 14:59:39 +02:00
2018-10-02 11:03:09 +02:00
2018-07-20 11:45:20 +03:00
2018-10-25 23:15:20 +03:00
2018-08-21 15:49:58 +02:00
2018-10-31 09:10:28 +01:00
2018-08-27 21:56:28 +02:00
2018-10-01 08:52:42 +02:00
2018-10-01 08:52:42 +02:00
2018-07-18 11:54:27 +02:00
2018-11-04 17:22:03 +01:00
2018-10-02 11:03:09 +02:00
2018-10-01 08:52:42 +02:00
2018-10-29 15:50:44 +01:00
2018-07-20 11:45:20 +03:00
2018-07-23 14:05:38 +02:00
2018-10-07 12:33:16 +02:00
2018-07-23 10:16:05 +02:00
2018-07-20 11:45:20 +03:00
2018-11-08 18:49:00 +01:00
2018-10-01 08:52:42 +02:00
2018-11-05 09:23:58 +01:00
2018-10-24 18:59:52 +02:00