feat: Remove service-day - #1752
Conversation
…ce-day # Conflicts: # src/pages/vehicle/buildVehicleRideRows.ts # tests/recordHAR.spec.ts
…ce-day # Conflicts: # src/pages/hackathon/challenges.ts
|
maybe we should ask the backend to add fields for service day and service hour? |
|
@NoamGaash Also the complexity of transferring data between pages (gaps / singleLineMap / vehicle) is inherent to the frontend. |
…ce-day # Conflicts: # src/pages/gapsPatterns/GapsPatternsPage.tsx
…ce-day # Conflicts: # src/api/serviceDayRoutesService.test.ts
…ce-day # Conflicts: # src/pages/vehicle/index.tsx
There was a problem hiding this comment.
Sorry for taking that long to review it - I don't have the time capacity right now and that's confusing me.
I have a feeling that our ETL pipelines should preserve the information about the service day, the time, and the real timestamp, so the frontend will be able to decide which piece of information should be used for each context, but when I asked Claude for help explaining it he took your side - I am sure I'm missing something here and I'll spend some time making this research later, but for now I'm under the impression it's a good healthy change (and also I have a lot of trust in your research).
Sorry for taking so long - approved - and thank you for your dedication here 💪
|



Description
Why?
The real reason
It adds the need for per-hour granularity for data that we only hold in date granularity.
For example:
ServiceDayRoutesServicewas implemented to derive routes in specific hours - as they only exists in the source/backend as per-date.The UX trade-off
Pros
Cons
Notes
startTimeToto theend_timeof the ride instead of thestart_time. A fix submitted in fix: start_time_to was bound to end_time instead of start_time open-bus-stride-api#59, but till it merged - rides that start within the time window but end after it will be excluded. (pre-existing, but now it will affect more day-time rides).screenshots