Skip to content

Conversation

@smmariquit
Copy link

This PR adds a last verified date field to the schema of the hotlines and fills that field all existing objects using the date in which each object was committed (sourced from the git blame)

I thought of the long-term feasibility of this project and realized that there's a glaring problem: data staleness. You'd need a really active set of maintainers, else you risk having wrong hotlines kasi nagbago na ng number or something.

One patch for that is to tie a last verified date to each hotline so at least we're saying na "we can only guarantee that this hotline is correct as of this date."

I've also added a vibe coded Python script to fill each lastUpdated field using the blame. I verified it for every single object and it seemed to be tama naman.

image

@vercel
Copy link

vercel bot commented Nov 29, 2025

@amongus9000 is attempting to deploy a commit to the waffenffs' projects Team on Vercel.

A member of the Team first needs to authorize it.

@j4ckofalltrades
Copy link
Collaborator

One patch for that is to tie a last verified date to each hotline so at least we're saying na "we can only guarantee that this hotline is correct as of this date."

Yes, we need a content notice / terms of service similar to the other bettergov projects as well as a way that points users where to contribute new or update stale hotlines but we can tackle that separately.

Reviewed the PR and have a couple of suggestions.

"description": "Type of emergency hotline"
},
"lastVerified": {
"type": "string",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a pattern here that enforces values follow the format YYYY-MM-DD.

)}
{lastVerified && (
<div className="text-gray-700 text-xs text-neutral">
Last Verified: {new Date(lastVerified).toLocaleDateString()}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format date as YYYY-MM-DD for consistency.

@KishonShrill
Copy link
Member

@smmariquit any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants