From 350efb408000e028e2e85b63f60c23468aec8ace 2016-09-30 11:21:57 From: Marcin Lulek Date: 2016-09-30 11:21:57 Subject: [PATCH] logs: use extended bounds for log charts --- diff --git a/backend/src/appenlight/models/services/log.py b/backend/src/appenlight/models/services/log.py index 548dd1a..d041134 100644 --- a/backend/src/appenlight/models/services/log.py +++ b/backend/src/appenlight/models/services/log.py @@ -122,7 +122,10 @@ class LogService(BaseService): "date_histogram": { "field": "timestamp", "interval": "1h", - "min_doc_count": 0 + "min_doc_count": 0, + 'extended_bounds': { + 'max': filter_settings.get('end_date'), + 'min': filter_settings.get('start_date')} } } }