Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: timeline service keeps events in memory #3618

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Dec 4, 2024

closes #3626
Very simple implementation to be begin with.
Allows:

  • creating events
  • getting events with super simple filters
  • clearing out old events

@ftl-robot ftl-robot mentioned this pull request Dec 4, 2024
@matt2e matt2e force-pushed the matt2e/timeline-in-memory branch from 6b390a7 to 3d8331b Compare December 4, 2024 06:01
EventEntry entry = 3;
}

message EventEntry {
Copy link
Collaborator Author

@matt2e matt2e Dec 4, 2024

Choose a reason for hiding this comment

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

EventEntry was created just so we can reuse the sumtype within Event and CreateEvent.
The extra level of wrapping is ugly everywhere else though...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I suppose I can just repeat the oneof in both places and it'd make it a lot nicer to deal with events everywhere (the 99% case)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(removed now)

@matt2e matt2e requested a review from worstell December 4, 2024 06:11
@matt2e matt2e marked this pull request as ready for review December 4, 2024 06:12
@matt2e matt2e requested review from a team and alecthomas as code owners December 4, 2024 06:12
@matt2e matt2e requested review from wesbillman and removed request for a team December 4, 2024 06:12
Module: event.DestVerb.Module,
Name: event.DestVerb.Name,
Entry: &pbtimeline.EventEntry{
Entry: &pbtimeline.EventEntry_Call{
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's up with the nesting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@matt2e matt2e force-pushed the matt2e/timeline-in-memory branch from 46a4d29 to 330ca7d Compare December 4, 2024 21:57
@matt2e matt2e enabled auto-merge (squash) December 4, 2024 22:17
@matt2e matt2e merged commit 6707213 into main Dec 4, 2024
95 checks passed
@matt2e matt2e deleted the matt2e/timeline-in-memory branch December 4, 2024 22:18
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.

In-memory storage
2 participants