WhitespaceDataProvider::getCollections() doesn't respect return format

Created on 6 August 2025, 2 days ago

Problem/Motivation

The docs in providers.md *imply* that the return value of getCollections() will always have a 'dates' and 'weekly_collection' key.

But WhitespaceDataProvider::getCollections() can return just an empty array if there are no collections -- e.g. for a non-residential address.

Steps to reproduce

Proposed resolution

Either fix the docs, or fix WhitespaceDataProvider::getCollections().

It would also be better to formally document the return value on the interface rather than in a markdown file.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024