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

Add time_buckets to EarningsTracker data #228

Closed

Commits on Aug 12, 2024

  1. factor parse_json into Jsmn::Object static method

    This makes it easier to generate test cases by using literal JSON.
    ksedgwic committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    b96c743 View commit details
    Browse the repository at this point in the history
  2. add Jsmn::Object::operator==

    This makes it easier to write test cases by comparing to expected values
    ksedgwic committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    46f9dda View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6188ffa View commit details
    Browse the repository at this point in the history
  4. add get_now() and mock_get_now() to EarningsTracker and test_earnings…

    …tracker
    
    A time source is needed for upcoming time buckets change.
    ksedgwic committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    721a4f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    528fcd9 View commit details
    Browse the repository at this point in the history
  6. Upgrade EarningsTracker to time bucket schema, use old semantics

    This commit modifies the schema of EarningsTracker to allow storing
    and accessing earning and expenditure data in specific time ranges.
    
    All existing strategies and reports still use all data from all time
    so this PR should not change any balancing behavior.
    
    After we've run w/ this for a while we'll have time-based data
    collected and can evaluate how to improve the strategies.
    ksedgwic committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    5bc9075 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    55479bb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    13a4e8f View commit details
    Browse the repository at this point in the history