djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

Pass reporting period as a command line argument #266

Closed smirolo closed 10 months ago

smirolo commented 1 year ago

The report_weekly_revenue Django command reports revenue ... per week. :)

We would like to enable passing a command line argument such that the report is "hourly", "daily", "weekly", "monthly" and "yearly".

Ideally we would also like the metrics report page (http://localhost:8000/metrics/cowork/revenue/#cash) to also support a reporting period choice ("hourly", "daily", "weekly", "monthly" and "yearly").

References:

smirolo commented 1 year ago

This was implemented in multiple commits by @Deep-Chill (notably commit e153fd38 and commit d22ba043). I will leave open until automated testing has been setup for these features. Thank you!

smirolo commented 10 months ago

tests implemented as part of the nightwatchjs testsuite.