DEV Community

hi gi
hi gi

Posted on

Versioning Prices Like Code: Why Deal Data Needs a Changelog

Every price on a deal site is a claim about a moment in time. The Furbo 360 Dog Camera was $149.00 on November 6 and $210.00 on November 24. Both numbers were true — on their respective days. A deal site that shows only the current number has thrown away the information that makes the current number meaningful. Software teams learned this decades ago: you do not just keep the current version of the code, you keep the history. Deal data needs the same discipline — a changelog.

A price without history is a rumour. Consider what a shopper actually needs to decide. "Is $210.00 a good price for this camera?" cannot be answered from the price alone. It needs the last deal price ($149.00), when that deal ran (November 6), and how often it recurs. Without that history, the shopper has no anchor — and the site has no way to distinguish a genuine discount from a regular price wearing a sale badge.

That is why Savlume keeps the full observation history behind every tracked product: each price check is a timestamped record, not an overwrite. When a price changes, the old value is not deleted; it is retired into history with its date attached. The guide page shows the current price, but the claim "was $149.00 on Nov 6" is drawn from the same log, not from someone's memory.

The changelog is the audit trail. Version control gives software three things: who changed what, when, and why. A price changelog needs the same three fields. "What" is the price and the retailer. "When" is the check timestamp. "Why" is the hard one — a price can move because the retailer ran a promotion, because a coupon expired, because the listing changed sellers, or because the crawler read the wrong element. Recording the reason matters because the response is different in each case: a promotion ending is normal, a seller change is a warning, a misread is a bug.

This is also what makes the two-tier verification system work. A retailer-verified price is a claim backed by a specific check against a specific retailer page at a specific time. A source-reported price is a claim with a weaker backing. The difference is only meaningful if the backing is recorded — if you cannot point at the check that produced the number, the label is decoration. Our verification pipeline stores the check, not just the result.

History prevents the classic errors. Three of the most common deal-site failures are history failures. The first is the stale deal: a price that ended yesterday still shown as live, because the site overwrote nothing and checked nothing. A changelog with check timestamps makes staleness visible — a price whose last check is three days old is visibly old. The second is the phantom discount: a product "marked down" from a reference price it never actually sold at. The defence is a history that shows what the product really sold for, over weeks, not what the retailer claims it was worth. The third is the self-contradiction: one part of a page saying $149.00 while another says $210.00. This happens when the Q&A, the comparison table, and the current-offers block are written at different times from different snapshots. In our own smart pet camera guide, the Q&A still quotes the November 6 prices as current while the Current offers section shows today's prices. The fix is not more careful copy-editing — it is a single source of truth. Every section of the page should render from the same changelog, with each number carrying its date.

Treat prices like releases. The practical rule we follow is simple: a price is a release, and a release gets a version. The current price is the latest release. The deal price is a previous release. The changelog is the list of releases with dates. Shoppers read the changelog when they ask "should I wait?" — and that is the most valuable question a deal site can answer.

None of this requires exotic infrastructure. A table with product, retailer, price, timestamp, source, and verification status is enough. What it requires is the discipline not to overwrite. The moment you overwrite a price, you have destroyed the only evidence that could tell a shopper whether today's price is good. Keep the history, label the dates, and let the reader see the same timeline you see.

Savlume tracks prices across retailers and labels every price retailer-verified or source-reported. Read how the verification pipeline works at https://savlume.com/ — and see the current smart pet camera guide at https://savlume.com/best/smart-pet-cameras.

Top comments (0)