Skip to content

feat(flashback): Use current time for new/updated event timestamps#771

Merged
huangh merged 6 commits into
mainfrom
feature-flashback-publication-timestamp
Jul 8, 2026
Merged

feat(flashback): Use current time for new/updated event timestamps#771
huangh merged 6 commits into
mainfrom
feature-flashback-publication-timestamp

Conversation

@runkelcorey

@runkelcorey runkelcorey commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Asana Task: 📸 update timestamp to reflect publishing time

What changes does this PR propose?

Generates the publication timestamp from the event loop rather than deriving it from the events. This lets us compare when flashback evaluated the event to when the event happened and infer from the difference how long it takes events to reach us.

How were these changes validated?

  1. Updated tests

What questions should reviewers consider?

None.

@runkelcorey runkelcorey self-assigned this Jun 30, 2026
@github-actions

Copy link
Copy Markdown

LCOV of commit 371c54c during Continuous Integration (Python) #2003

Summary coverage rate:
  lines......: 64.7% (3598 of 5560 lines)
  functions..: 29.9% (275 of 920 functions)
  branches...: no data found

Files changed coverage rate:
                                                                                     |Lines       |Functions  |Branches    
  Filename                                                                           |Rate     Num|Rate    Num|Rate     Num
  =========================================================================================================================
  src/lamp_py/flashback/events.py                                                    | 100%     35|50.0%     4|    -      0

@github-actions

Copy link
Copy Markdown

LCOV of commit fd23c9d during Continuous Integration (Python) #2006

Summary coverage rate:
  lines......: 64.7% (3598 of 5560 lines)
  functions..: 29.9% (275 of 920 functions)
  branches...: no data found

Files changed coverage rate:
                                                                                     |Lines       |Functions  |Branches    
  Filename                                                                           |Rate     Num|Rate    Num|Rate     Num
  =========================================================================================================================
  src/lamp_py/flashback/events.py                                                    | 100%     35|50.0%     4|    -      0

@runkelcorey runkelcorey marked this pull request as ready for review July 2, 2026 18:02
@runkelcorey runkelcorey requested a review from a team as a code owner July 2, 2026 18:02
@runkelcorey runkelcorey requested a review from huangh July 2, 2026 18:02
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

LCOV of commit 52acdd9 during Continuous Integration (Python) #2010

Summary coverage rate:
  lines......: 64.7% (3599 of 5561 lines)
  functions..: 29.9% (275 of 920 functions)
  branches...: no data found

Files changed coverage rate:
                                                                                     |Lines       |Functions  |Branches    
  Filename                                                                           |Rate     Num|Rate    Num|Rate     Num
  =========================================================================================================================
  src/lamp_py/flashback/events.py                                                    | 100%     35|50.0%     4|    -      0

Comment thread src/lamp_py/flashback/events.py

@huangh huangh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i think there's some weird timestamp logic now.

also, we have all these times in america/new_york..do we also have the epoch time representation? at a glance, it's easier to work with the epoch time without a library, but providing only datetimes would require more tooling to make it work.

basically is there a need for both the human readable and the machine computable versions to both be here?

and should the timestamp have _est notation? is it typical for times out of our api to be in eastern?

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

LCOV of commit ff42538 during Continuous Integration (Python) #2012

Summary coverage rate:
  lines......: 64.7% (3598 of 5561 lines)
  functions..: 29.9% (275 of 920 functions)
  branches...: no data found

Files changed coverage rate:
                                                                                     |Lines       |Functions  |Branches    
  Filename                                                                           |Rate     Num|Rate    Num|Rate     Num
  =========================================================================================================================
  src/lamp_py/flashback/events.py                                                    | 100%     35|50.0%     4|    -      0

@huangh huangh force-pushed the feature-flashback-publication-timestamp branch from ff42538 to e5a2e13 Compare July 8, 2026 18:40
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

LCOV of commit e5a2e13 during Continuous Integration (Python) #2013

Summary coverage rate:
  lines......: 64.7% (3599 of 5561 lines)
  functions..: 29.9% (275 of 920 functions)
  branches...: no data found

Files changed coverage rate:
                                                                                     |Lines       |Functions  |Branches    
  Filename                                                                           |Rate     Num|Rate    Num|Rate     Num
  =========================================================================================================================
  src/lamp_py/flashback/events.py                                                    | 100%     35|50.0%     4|    -      0

@huangh huangh merged commit 393239d into main Jul 8, 2026
9 checks passed
@huangh huangh deleted the feature-flashback-publication-timestamp branch July 8, 2026 20:07
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.

2 participants