Police-Data-Accessibility-Project / data-sources-app

An API and UI for using and maintaining the Data Sources database
MIT License
4 stars 5 forks source link

Update `data_sources.broken_source_url_as_of` to be automatically generated #496

Open maxachis opened 3 weeks ago

maxachis commented 3 weeks ago

Context

broken_source_url_as_of is a column in the data_sources table (and represented in the /data-sources endpoints which indicates when a url was marked as broken.

This is currently manually specified, which is unnecessary, given that we can create a database trigger which automatically sets it if the url was previously marked as broken.

Requirements

Tests

Docs

Open questions