Skip to content

feat(glides): add automatic start and end times#19

Merged
cho-jos merged 2 commits into
mainfrom
jcc-add-glides-automatic-times
Apr 29, 2026
Merged

feat(glides): add automatic start and end times#19
cho-jos merged 2 commits into
mainfrom
jcc-add-glides-automatic-times

Conversation

@cho-jos

@cho-jos cho-jos commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Asana Ticket: Add automatic times to Glides events -> LAMP

LMK anything that is missing that is usually expected from updates to this repo.

See accompanying Glides PR for the implementation of this proposal. (I will wait for feedback and approval on the schema change here before merging that.)

Adds automaticStartTime and automaticEndTime fields to Glides events TripUpdated data. This is expected to be a non-breaking change.

@cho-jos cho-jos requested review from a team and huangh April 10, 2026 15:23
Comment on lines +176 to +177
- `automaticStartTime` ([Time](#time) | "unset", optional): if present, the new time that the train's departure from `startLocation` (or the existing `startLocation` of the trip) was detected.
- `automaticEndTime` ([Time](#time) | "unset", optional): if present, the new time that the train's arrival at `endLocation` (or the existing `endLocation` of the trip) was detected.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the interpretation if not present or unset?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@runkelcorey to clarify, by "interpretation" do you mean ([Time](#time) | "unset", optional)? Or expanding the explanation of the field to include not present and unset?

@runkelcorey runkelcorey Apr 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the latter! I'd like the docs to clarify what the user should think if a value is not present or unset

@cho-jos cho-jos requested a review from runkelcorey April 16, 2026 13:46
Comment on lines -140 to +142
The partition key will be a hash of the station at which the inspector is working and the inspector's identity, which ensures that multiple events from a single inspector are ordered correctly if the records are distributed across multiple shards.
The partition key will be either:
- a hash of the station at which the inspector is working and the inspector's identity, which ensures that multiple events from a single inspector are ordered correctly if the records are distributed across multiple shards.
- a hash of a string constant if the automatic time was recorded by the `AutomaticTripTimeRecorder` process in Glides.

@andrewdolce andrewdolce Apr 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: I know we talked about this, and I think this is probably reasonable? But wondering if we need to check with more folks downstream (maybe even with Ops Analytics?) to ensure that nothing is tightly coupled to the existing semantics of the partition key.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpsAnalytics reads our data so no need to take it further. @cho-jos messaged me about this and I... dont think we do anything with the partition key. @huangh thoughts?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt anyone would be relying on this, and if they are we'll hear about some strangely prolific, teleporting inspector.

@cho-jos cho-jos merged commit 1c91954 into main Apr 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants