PAR-169
0
chestshop_shop backfill + resync support (registry is lazy — untouched shops are absent)
PlannedHighUnassignedTreasuryFeature
Part of PAR-166 (spin out /find). Migration-blocking data-completeness gap.
chestshop_shop is populated lazily — MarketListener only upserts on ShopCreated/Transaction/InventoryClose. There is no chunk-scan resync writing to MarketApi, so every pre-existing shop that hasn't been touched since the hook went live is missing from the registry. The legacy plugin has /csdb resync precisely to index all existing shops, so at cutover Treasury's view is incomplete.
Do:
- One-time backfill from the legacy
chestshop-databaseShoptable →chestshop_shop(map world UUID→name,owner_name→structured owner via Treasury/Business lookup,estimated_capacity/visible/hologramonce those columns exist). Idempotent on theuq_shop_locationunique key. - Resync API support — ensure
MarketApi.upsertShopis safe to call in bulk from an authoritative scan (idempotent upsert, no duplicate rows, sanelast_seen/stock_at). The admin/find resynccommand that drives the scan lives in the new plugin (sub-issue of PAR-166); this issue is the importer + the idempotent write path it depends on.
Acceptance: after backfill, the count/contents of chestshop_shop (active shops) matches the legacy Shop table; a second run is a no-op.
Resources
- PR#2 Last major release ParadauxIO/hibernia-economy
- commit6fb9893 Add /find resync to rebuild the shop registry (PAR-174, PAR-169)ParadauxIO/hibernia-economy
Comments
No comments yet.
Activity
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a pull request — PR #2 open — Last major release
- ParadauxIO linked a commit — Commit 6fb9893 — Add /find resync to rebuild the shop registry (PAR-174, PAR-169)
- tesks changed status to Status → Planned
- tesks created the issue