Skip to content

[Scorecards] filters which result in no councils in the previous year produce odd results #768

@struan

Description

@struan

If on the homepage you run a filter that matches councils in the current year but none in the previous year then the results are a bit off because it doesn't get the previous score everywhere. This is mostly noticeable in the section averages.

I'm not sure of the best way to fix this because the problem is it does this by getting the averages for the current year using the filter, and then repeats the process for the previous year which understandably gets no results. It might be there needs to be a way to pass in a set of councils to get the averages from rather than re-running the filter.

Currently it resolves this by ignoring averages where there isn't a previous year which is not ideal as you then don't get a change since last year

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions