feat(revenue-tracking): add --dry-run flag to mollie revenue tracker - #230
Merged
Conversation
dembrane-sam-bot
enabled auto-merge
August 10, 2026 08:46
sameer-kymata
approved these changes
Aug 10, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this change?
This PR adds a
--dry-runflag to themollie_revenue_tracker.pyscript. When--dry-runis specified:/data/mollie_revenue_state.json), keeping the dry run purely read-only and side-effect free.What did Sam notice that led to this?
During today's morning digest compilation, Sam wanted to retrieve active customer subscription counts and MRR from Postgres. To do this, Sam executed
python3 src/utils/mollie_revenue_tracker.py --test --forceto print the breakdown. However, running--test --forcewithout any other options automatically posted a full SaaS update alert to#alerts-revenue_updates(C06FKPUT0MU).This resulted in a redundant alert being sent today even though there were no billing changes, which Sameer had to manually delete and flag in Slack. Having a dedicated
--dry-runflag prevents this class of accidental posts by allowing safe local metric inspection.Tier?
Tier 3 (utils / substrate execution).
Confidence?
100% confident. Verified locally with
pytestand by dry-running the script against production database state without any side effects or Slack posting.