jamespfennell / transiter

Web service for transit data
https://demo.transiter.dev
MIT License
62 stars 7 forks source link

Create feed flush operation #45

Closed jamespfennell closed 4 years ago

jamespfennell commented 4 years ago

A feed flush operation would remove all updatable entities that have been added from a feed. It easily be implemented as a pseudo feed update where the feed parser is overridden to return an empty list.

The main use case is manually clearing out the stale data from feeds that have become unresponsive.

This operation should be executable via:

POST ./<system>/feeds/<feed_id>/flush

Additionally:

jamespfennell commented 4 years ago

Make sure to document the new endpoint

jamespfennell commented 4 years ago

....and make sure there's a sync vs async option

jamespfennell commented 4 years ago

...and write a new end to end test in test_updatestops or somewhere similar

jamespfennell commented 4 years ago

Done