Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow draft trips to show up if pipeline has never been run
If a user has just joined and none of their data has ever been through the pipeline, they will have a pipelineRange of `{start_ts: null, end_ts: null}`. In this case, there is no point in querying for `analysis/composite_trip`s because no analysis entries have been created yet However, the user might have travel that hasn't been through the pipeline yet. So instead of immediately returning early from fetchTripsInRange, let's allow readUnprocessedPromise to execute, using 0 as the lower ts bound since pipelineRange end_ts will be null. I tested this by creating a brand new user, simulating a trip, and reloading the diary. The draft trip shows up without ever running the pipeline.
- Loading branch information