Aggregate weekly and overall metrics from daily results

Open
#2,793 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

No files, tests, or entry points are named. Start with the proposed design document, covering daily metric computation, period ordering, and aggregation behavior; done means the complications are assessed and a feasibility result or POC is provided.

Written by the indexing model from the issue text.

Description

We should be able to compute weekly and overall metrics by aggregating the results of the relevant days, which should save time/money vs doing large weekly and overall metrics queries directly as we do now.

Complications to consider (that I've thought of so far...):

  • will need to compute all metrics every day so that they are available for aggregations
  • will need to ensure that the daily period is computed before trying to do weekly/overall (i.e., defined order)
  • will need to work out how to aggregate across days (be based on the metric definition itself?)
    • i.e., if the select_expression is a SUM, need to sum (complex!)

We should start with a doc and possibly POC to ensure these complications are actually manageable.

┆Issue is synchronized with this Jira Task

Dominant language
Python
Stars
26
Forks
14
Avg merge
19h 55m
Merged PRs (30d)
9

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/jetstream

All issues in mozilla/jetstream

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.