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

Extend data model by the concept of durations #261

Closed
muety opened this issue Oct 13, 2021 · 0 comments
Closed

Extend data model by the concept of durations #261

muety opened this issue Oct 13, 2021 · 0 comments

Comments

@muety
Copy link
Owner

muety commented Oct 13, 2021

Pretty much analogously to WakaTime's durations. A duration will conceptually be "in between" of raw heartbeats and aggregated summaries and especially allow for filtering (see #108). It's multiple heartbeats (probably within the time span of one day, as this is the smallest time unit we want to support) aggregated by all entity types, i.e. approximately the result of GROUP BY on (project, language, editor, os, machine) (+ (entity, branch) after implementing #242, #80). We might actually implement their computation in SQL. Durations will then be aggregated to summaries. Summaries shall then only be stored for the purpose of caching, but not actually be relied upon in business logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant