Testing replay-safe page timestamps in a Fortnite shop tracker

2026-11-21来源 dev.toEnglish

This article was written with AI using SkinRotation’s implementation and recorded release checks.

A rotating item shop has two timestamps worth tracking: when the refresh ran and when a page’s content changed. The first helps diagnose the data pipeline. The second is what a sitemap’s lastmod should describe. A successful retry can leave every page exactly as it was.

Compare one outfit at a time

SkinRotation derives its outfit pages from shop snapshots. A single publishing job processes many outfits, but their availability and offers can change independently. The publisher compares the structured payloads for each outfit, excluding the timestamp it is deciding. It sorts object keys before comparison and preserves array order, so object key insertion order is harmless while a changed history list can still matter.

next = buildSnapshot(outfit, refreshTime) if previous exists and content(next) equals content(previous): next.updatedAt = previous.updatedAt publish(next) 

One edge case is an outfit leaving the shop. Its last-seen date can stay the same while its availability, summary and price context change. Another is a new field in the snapshot schema. Normalizing older snapshots first avoids treating a compatible default as a visible update.

Test the update and the replay separately

One release check compared 21 outfit pages across two shop dates. Seventeen had updated appearance data and four had left the shop. All 21 had changed. Replaying those same published records into isolated local storage then preserved all 21 timestamps. Together, these checks catch a publisher that freezes real updates and one that bumps every page on each run.

The offline regression checks also cover price and name corrections, new appearances, departures, and reordered object keys. A small test for another rotating game catalogue can start with two records in the same batch: one changed and one unchanged. Assert that their modification times diverge.

SkinRotation’s outfit catalogue is the live frontend for these snapshots. It is an independent Fortnite fan project.

原文:https://www.a8q9.cn/en/article/testing-replay-safe-page-timestamps-in-a-fortnite-shop-tracker-ff058d.html

相关文章