Skip to content

Commit

Permalink
Tag report donut charts were always white. Fixes #589. (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
fniessink authored Sep 3, 2019
1 parent 3bcde43 commit 3f03ce1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion components/server/src/database/measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 3 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 3f03ce1

Please sign in to comment.