prop/test/microwaveprop/radio
Graham McIntire c17f912622
fix(radio): invalidate contact-map cache on edits, not just inserts
`apply_edit_to_contact/2` is the path for both owner direct-edits and
admin reviewed-edits. The public contact-map + total-count + gzipped
controller payload caches are built from `private == false` rows, but
only the insert path was clearing them — every other update left
/api/contacts/map and /contacts/map serving the previous snapshot for
up to 10 minutes. A `private: false -> true` flip on a contact already
present in the cached payload was a temporary privacy leak; grid
corrections, callsign changes, and flagged_invalid flips silently
diverged from the live row.

Extracts the three `Cache.invalidate` calls into
`invalidate_contact_map_caches/0` and runs it from both
`apply_edit_to_contact/2` and the existing insert path so the public
view stays in sync.
2026-04-25 10:08:14 -05:00
..
adif_import_test.exs feat(adif): carry NOTES / COMMENT into contact notes 2026-04-23 11:05:39 -05:00
band_resolver_property_test.exs test(property): add property tests for parsing + domain conversions 2026-04-21 13:57:47 -05:00
band_resolver_test.exs Rename 9cm band 3456 → 3400 2026-04-16 12:40:38 -05:00
callsign_client_test.exs test: cover geo, qrz record, callsign client 2026-04-16 14:09:44 -05:00
contact_edit_test.exs fix(radio): invalidate contact-map cache on edits, not just inserts 2026-04-25 10:08:14 -05:00
contact_submission_test.exs test: broaden coverage across parsers, schemas, and pure helpers 2026-04-23 13:56:29 -05:00
contact_test.exs feat(contacts): antenna height fields feed terrain analysis 2026-04-18 15:48:14 -05:00
csv_import_test.exs feat(contacts): add free-form notes field 2026-04-23 11:02:27 -05:00
edit_notifier_test.exs test: cover radio/edit_notifier 2026-04-16 14:58:55 -05:00
enrichment_status_test.exs Add Tier 1 test coverage: EnrichmentStatus, Markdown, health, RemoteIp, Maidenhead 2026-04-06 10:15:38 -05:00
import_matcher_test.exs CSV/ADIF import: upsert existing contacts on grid/mode refinement 2026-04-16 10:57:37 -05:00
import_run_test.exs feat(import): async CSV import with progress-tracking schema 2026-04-17 09:31:22 -05:00
maidenhead_property_test.exs test(property): add property tests for parsing + domain conversions 2026-04-21 13:57:47 -05:00
maidenhead_test.exs Add /beacons CRUD and /users admin page 2026-04-08 12:01:45 -05:00