dali-lab / pine-beetle-backend

Visualizing data and predicting outbreaks of Southern Pine Beetles across twenty US states. Built in the DALI Lab.
https://spbpredict.com
0 stars 0 forks source link

add router for county and RD sparse fetch #135

Closed jeffzyliu closed 1 year ago

jeffzyliu commented 1 year ago

Description

go here https://github.com/dali-lab/pine-beetle-backend/blob/dev/src/routers/summarized-county.js and here https://github.com/dali-lab/pine-beetle-backend/blob/dev/src/routers/summarized-ranger-district.js

  1. read this, and also the counterpart in county which looks exactly the same https://github.com/dali-lab/pine-beetle-backend/blob/c16aaad6d5bc0f501ce9f4c5a568875b38bff84c/src/routers/summarized-ranger-district.js#L108-L135
  2. copy paste to a new route, lets call it '/sparse' or something. everything's the same except generateYearPipeline; you should be able to swap this with your new sparse pipeline generator from #134 without changing anything else.
  3. do this in summarized-county.js too
  4. make two new requests in postman to test this. confirm it works, and that it doesnt send too many megabytes of data.

Type of Issue