From 6ddcec74c4d3d1bbd773f930effa59fd05ff9341 Mon Sep 17 00:00:00 2001 From: Frank Niessink Date: Tue, 17 May 2022 20:10:05 +0200 Subject: [PATCH] When measuring the 'missing metrics' metric, *Quality-time* was still using an old endpoint to get the data, resulting in a parse error. Fixes #3855. --- .../source_collectors/quality_time/missing_metrics.py | 2 +- docs/src/changelog.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/components/collector/src/source_collectors/quality_time/missing_metrics.py b/components/collector/src/source_collectors/quality_time/missing_metrics.py index b97eb55097..cef636095b 100644 --- a/components/collector/src/source_collectors/quality_time/missing_metrics.py +++ b/components/collector/src/source_collectors/quality_time/missing_metrics.py @@ -16,7 +16,7 @@ async def _get_source_responses(self, *urls: URL, **kwargs) -> SourceResponses: """Get responses for reports and the datamodel.""" api_url = urls[0] datamodel_url = URL(f"{api_url}/datamodel") - reports_url = URL(f"{api_url}/reports") + reports_url = URL(f"{api_url}/report") return await super()._get_source_responses(datamodel_url, reports_url, **kwargs) async def _parse_source_responses(self, responses: SourceResponses) -> SourceMeasurement: diff --git a/docs/src/changelog.md b/docs/src/changelog.md index dde4b43266..b566bf7ed7 100644 --- a/docs/src/changelog.md +++ b/docs/src/changelog.md @@ -8,6 +8,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) +## [Unreleased] + +### Deployment notes + +If your currently installed *Quality-time* version is not v3.36.0, please read the v3.36.0 deployment notes. + +### Fixed + +- When measuring the 'missing metrics' metric, *Quality-time* was still using an old endpoint to get the data, resulting in a parse error. Fixes [#3855](https://github.com/ICTU/quality-time/issues/3855). + ## v3.36.0 - 2022-05-16 ### Deployment notes