PAR-167
0
chestshop_shop: per-shop search visibility flag (owner can hide from /find)
PlannedNormalUnassignedTreasuryFeature
Part of PAR-166 (spin out /find). Data-layer gap.
Legacy chestshop-database has a per-shop visible BOOLEAN so an owner can hide a shop from /find search results (independent of it being open/destroyed). Treasury's chestshop_shop only has active (destroyed-or-not) — there is no owner-controlled visibility.
Do:
- Add a
visible TINYINT(1) NOT NULL DEFAULT 1column tochestshop_shopvia a neweconomy-schemaV<n>__*.sqlmigration (do NOT edit V6). - Add a
MarketApi.updateShopVisibility(world, x, y, z, boolean)method + mapper write path inChestShopMarketMapper/MarketApiImpl. - Plumb
visiblethroughChestShopShopRecordsoupsertShoppreserves it (don't reset to default on restock/price-change upserts). - Read side: expose
visible(and let/api/v1/chestshop/shopsfilter on it) so the spun-out/findrespects it. - The owner-facing toggle command itself lives in the new plugin (sub-issue of PAR-166); this issue is just the data layer + write API.
Note: distinct from active. active=0 = sign destroyed (kept for history); visible=0 = live shop the owner chose to hide.
Resources
- PR#2 Last major release ParadauxIO/hibernia-economy
- commit46df450 Add /find toggle visibility for owner shop hiding (PAR-167)ParadauxIO/hibernia-economy
- commit6902bdf Add the /find shop-registry read API + schema foundation (PAR-5)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 46df450 — Add /find toggle visibility for owner shop hiding (PAR-167)
- ParadauxIO linked a commit — Commit 6902bdf — Add the /find shop-registry read API + schema foundation (PAR-5)
- tesks changed status to Status → Planned
- tesks created the issue