forked from plausible/analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APIv2: Revenue metrics (plausible#4659)
* WIP: Start refactoring revenue metrics * Hacks to make things work * Remove old revenue code, remove revenue metrics if needed * Update query_optimizer docs * Minor fixes * Add tests around average/total revenue when non-revenue goal filtering going on * Optimize, calculate filters as expected (OR-ing clauses) * Revenue: Handle cases where revenue metrics should not be returned or nil * Expose revenue metrics in internal schema, add tests * Docstring * Remove TODO * Typegen * Solve warnings * Remove nesting * ce_test fix * Tag tests as ee_only * Fix: When filtering by revenue goal and no conversions, return 0.0 instead of nil * More straight-forward preloading logic
- Loading branch information
Showing
14 changed files
with
586 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.