the dataset task list needs to present a list of tasks, this list of tasks are dependent on what issues are present in the dataset for that lpa. for example
2 missing values -> 2 fields have missing values
1 missing value -> 1 field has a missing value
4 invalid geometries -> 4 rows had errors processing the geometry
etc
See bellow for an image of what this would look like on the dataset task list:
allows our code to be simple (no long switch statements)
facilitates easy addition of new error types and their accompanying messages in the future without needing an update in code
offers both plural and singular versions of error messages
Initial proposed solution
store singular and plural messages in our database's. either in an additional table (keyed by error type), or in additional columns in the error type table. these messages would have tokens that could be replaced programmatically based on the issue count and could be read by either the frontend. or backend performance api
Problem Statement
the dataset task list needs to present a list of tasks, this list of tasks are dependent on what issues are present in the dataset for that lpa. for example
2 missing values -> 2 fields have missing values 1 missing value -> 1 field has a missing value 4 invalid geometries -> 4 rows had errors processing the geometry etc
See bellow for an image of what this would look like on the dataset task list:
all the error types can be found here: https://datasette.planning.data.gov.uk/digital-land/issue_type
Acceptance Criteria
We need a solution that
Initial proposed solution
store singular and plural messages in our database's. either in an additional table (keyed by error type), or in additional columns in the error type table. these messages would have tokens that could be replaced programmatically based on the issue count and could be read by either the frontend. or backend performance api