conveyal / analysis-backend

Server component of Conveyal Analysis
http://conveyal.com/analysis
MIT License
23 stars 12 forks source link

Store service start and end dates in bundles #171

Closed trevorgerhardt closed 5 years ago

trevorgerhardt commented 6 years ago

Calculate service start and end dates based off of GTFSFeed.getDatesOfService(). These dates are currently only used to show the user if there is any service on a given date and warn if there is not. A user should know the contents of their GTFS feeds they've uploaded, but this will warn them when they have a date set that does not contain ANY service.

This PR also adds API endpoints for loading bundles and projects that no longer get automatically fetched when retrieving a region.

Requires https://github.com/conveyal/analysis-ui/pull/770

codecov-io commented 6 years ago

Codecov Report

Merging #171 into dev will decrease coverage by 1.22%. The diff coverage is 10%.

Impacted file tree graph

@@             Coverage Diff             @@
##                dev    #171      +/-   ##
===========================================
- Coverage     19.62%   18.4%   -1.23%     
+ Complexity       75      72       -3     
===========================================
  Files            58      58              
  Lines          2125    2217      +92     
  Branches        187     214      +27     
===========================================
- Hits            417     408       -9     
- Misses         1689    1790     +101     
  Partials         19      19
Impacted Files Coverage Δ Complexity Δ
src/main/java/com/conveyal/taui/models/Region.java 75% <ø> (-8.34%) 3 <0> (-2)
...n/java/com/conveyal/taui/persistence/MongoMap.java 17.5% <0%> (-5.79%) 6 <0> (-1)
src/main/java/com/conveyal/taui/models/Bundle.java 17.85% <0%> (-5.96%) 0 <0> (ø)
...java/com/conveyal/taui/models/AnalysisRequest.java 0% <0%> (ø) 0 <0> (ø) :arrow_down:
...m/conveyal/taui/controllers/GraphQLController.java 60% <0%> (-3.27%) 2 <0> (ø)
...conveyal/taui/controllers/TimetableController.java 97.67% <100%> (+0.05%) 10 <0> (ø) :arrow_down:
...om/conveyal/taui/controllers/BundleController.java 8.66% <2.63%> (-1.92%) 2 <1> (ø)
...m/conveyal/taui/controllers/ProjectController.java 11.76% <50%> (+0.92%) 1 <1> (ø) :arrow_down:
...va/com/conveyal/taui/models/AbstractTimetable.java 2.94% <0%> (-0.77%) 1% <0%> (ø)
... and 1 more

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 200082e...5e10539. Read the comment docs.