digital-land / submit

0 stars 1 forks source link

Spike: how will we store and present issue messages? #227

Open GeorgeGoodall opened 3 months ago

GeorgeGoodall commented 3 months ago

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: Image

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

GeorgeGoodall commented 3 months ago

Following a meeting with Infa team

cc: @Darren-CheckPlanningData

CharliePatterson commented 3 weeks ago

@GeorgeGoodall-GovUk is this still needed?