Skip to content

Add a verified flag to places and a verification contributor task #126

Description

@AnayDhawan

Problem

Every place is shown with equal confidence, whether it was checked last week or added a year ago and never revisited. For exam centres in particular, a stale address is worse than no address at all.

There is also currently only one way to contribute: research and add a new place. Checking an existing one is a much smaller ask, and we have no way to record that someone did it.

Where to start

  • data/places.schema.json - add the new field here
  • scripts/validate-places.mjs - extend validation
  • .github/ISSUE_TEMPLATE/ - existing templates to model the new one on

What to build

Add an optional verified object to the schema recording who verified the place and when.

Extend the validation script to accept and check it, so npm run validate fails on a malformed entry.

Show a subtle badge on verified places. Keep the treatment for unverified places quiet: most entries are fine, so the badge should reward verification rather than make everything else look broken.

Add a "verify a place" issue template so this becomes a distinct, low-barrier contribution type.

Decide and document how long a verification stays valid.

Acceptance criteria

  • verified is optional, so every existing record still validates
  • npm run validate rejects a malformed verified object
  • Verified places show a badge; unverified places look normal, not broken
  • A "verify a place" issue template exists
  • The expiry window is documented in data/CONTRIBUTING.md

Verifying

npm install
npm run validate     # must pass unchanged before your edits
# add a verified block to one record, run again
# add a malformed one, confirm it fails

Scope: medium, roughly 3 hours across schema, validation and UI.

New to the repo? Start with CONTRIBUTING.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityCommunity / growthdataPlaces datasetenhancementNew feature or requesthelp wantedExtra attention is welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions