Skip to content

Question on data immutability, audit logs, bookkeeping and reconciling PSP payment transactions with sales data #3103

Answered by olivermrbl
elnygren asked this question in Q&A
Discussion options

You must be logged in to vote

We currently don't have any audit logging in the core, but we plan to explore it later this year. Unfortunately, I can't give you any estimates of when and how we will design it. The same goes for CDC, we don't expose any hooks to set this up. I am not super familiar with the concept, but I imagine you could use the Postgres connection of Medusa directly to stream the WAL and transform it into an audit log. Though, it will probably require you to jump through quite a few hoops.

Regarding data immutability, all models are mutable. Though, the database is modeled to not lose visibility. We create snapshots of data for resources that are subject to change (e.g. variant prices on order items)…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by elnygren
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants