From 3f03ce1eb24a009a003a972e82fd2526b8fb60d5 Mon Sep 17 00:00:00 2001 From: Frank Niessink Date: Tue, 3 Sep 2019 14:50:28 +0200 Subject: [PATCH] Tag report donut charts were always white. Fixes #589. (#591) --- components/server/src/database/measurements.py | 5 ++++- docs/CHANGELOG.md | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/server/src/database/measurements.py b/components/server/src/database/measurements.py index 391c46b874..355f62b5e7 100644 --- a/components/server/src/database/measurements.py +++ b/components/server/src/database/measurements.py @@ -18,7 +18,10 @@ def latest_measurement(database: Database, metric_uuid: str): def last_measurements(database: Database, report_uuid: str): """Return the last measurement for each metric.""" - return database.measurements.find(filter={"report_uuid": report_uuid, "last": True}) + measurement_filter = dict(last=True) + if not report_uuid.startswith("tag-"): + measurement_filter["report_uuid"] = report_uuid + return database.measurements.find(filter=measurement_filter) def recent_measurements(database: Database, metric_uuid: str, max_iso_timestamp: str): diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 22db2758d4..3b33492867 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -18,14 +18,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed -- Use a consistent style for labels of input fields. Fixed [#579](https://github.com/ICTU/quality-time/issues/579). +- Use a consistent style for labels of input fields. Fixes [#579](https://github.com/ICTU/quality-time/issues/579). - Added Quality-time logo to the Quality-time source. Fixes [#580](https://github.com/ICTU/quality-time/issues/580). +- Tag report donut charts were always white. Fixes [#589](https://github.com/ICTU/quality-time/issues/589). ## [0.8.2] - [2019-08-28] ### Fixed -- Prevent webbrowsers from automatically filling in username and password in the source configuration tab. Fixes [#574](https://github.com/ICTU/quality-time/issues/574). +- Prevent web browsers from automatically filling in username and password in the source configuration tab. Fixes [#574](https://github.com/ICTU/quality-time/issues/574). ## [0.8.1] - [2019-08-28]