Skip to content

Start recording subscription changes in audit trail#6196

Closed
zoldar wants to merge 5 commits intomasterfrom
subscription-audit-trail
Closed

Start recording subscription changes in audit trail#6196
zoldar wants to merge 5 commits intomasterfrom
subscription-audit-trail

Conversation

@zoldar
Copy link
Copy Markdown
Contributor

@zoldar zoldar commented Mar 24, 2026

Changes

This PR instruments all spots where the subscription is either created or updated with an audit trail. The entries will appear under "Audit" tab in our CRM. They can also serve as a better basis to gather aggregate statistics of changes in subscriptions (upgrades, downgrades, etc.).

Tests

  • Automated tests have been added

@zoldar zoldar requested a review from a team March 24, 2026 13:42
@zoldar zoldar added the preview label Mar 24, 2026
@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6196

@zoldar
Copy link
Copy Markdown
Contributor Author

zoldar commented Mar 24, 2026

We are not going to do it this way, because audit trail might then contain duplicate entries due to webhook retries. This in turn leads to unreliable data. It might be ok for aggregate, statistical queries but not for any sort of book keeping.

@zoldar zoldar closed this Mar 24, 2026
@zoldar zoldar deleted the subscription-audit-trail branch March 24, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant