City-of-Helsinki / maritime-maas

MIT License
0 stars 3 forks source link

MAAS-44 | Update GTFS feeds automatically #24

Closed charn closed 3 years ago

charn commented 3 years ago

This PR adds automatic updates for feeds. Update logic tries to check for changes in the feed. If check fails it will use one update per day as a fallback. Updating feeds manually (and forcefully) from Django admin is also supported.

codecov-io commented 3 years ago

Codecov Report

Merging #24 (1c6fbf4) into main (d510be6) will decrease coverage by 2.05%. The diff coverage is 63.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
- Coverage   88.52%   86.46%   -2.06%     
==========================================
  Files          33       35       +2     
  Lines         880      953      +73     
  Branches       63       71       +8     
==========================================
+ Hits          779      824      +45     
- Misses         74      100      +26     
- Partials       27       29       +2     
Impacted Files Coverage Δ
gtfs/admin.py 71.79% <42.10%> (-28.21%) :arrow_down:
gtfs/importers/gtfs_feed_reader.py 63.91% <52.38%> (-3.19%) :arrow_down:
gtfs/management/commands/update_gtfs_feeds.py 66.66% <66.66%> (ø)
gtfs/importers/gtfs_feed_importer.py 85.06% <80.00%> (+0.09%) :arrow_up:
gtfs/importers/gtfs_feed_updater.py 81.81% <81.81%> (ø)
gtfs/importers/__init__.py 100.00% <100.00%> (ø)
gtfs/models/feed.py 93.93% <100.00%> (+0.18%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d510be6...1c6fbf4. Read the comment docs.