aprs.me/test
Graham McIntire 74a19b0640
Fix nesting depth issues in device_cache, packets, and spatial_pubsub
Reduces function nesting depth to comply with Credo requirements (max depth 2):

- device_cache.ex: Extract pattern matching logic into separate helpers
  (pattern_matches?/2, matches_wildcard_pattern?/2)

- packets.ex: Extract data sanitization logic into separate helpers
  (sanitize_data_extended_attr/1, deep_sanitize_map/1)
  Note: This refactoring improved robustness - invalid data_extended
  values now return validation errors instead of throwing exceptions

- spatial_pubsub.ex: Extract grid cell and client filtering logic
  (remove_client_from_grid_cell/3, update_grid_cell_after_removal/3,
  filter_clients_by_bounds/3, client_contains_point?/3)

- Update test expectation in packets_test.exs to match improved
  error handling behavior (validation_error vs storage_exception)

Fixes 3 Credo nesting depth issues (8 remaining)
2026-02-09 12:27:34 -06:00
..
aprsme Fix nesting depth issues in device_cache, packets, and spatial_pubsub 2026-02-09 12:27:34 -06:00
aprsme_web Fix duplicate ID errors and optimize mobile callsign search 2025-10-25 13:39:34 -05:00
assets/js Improve type safety for getTrailId function 2025-07-21 08:36:38 -05:00
integration cleanup 2026-02-07 10:55:19 -06:00
support Fix test warnings and failures 2025-10-25 17:41:58 -05:00
types refactor to use external parser 2025-06-24 14:22:09 -05:00
test_helper.exs cleanup 2026-02-07 10:55:19 -06:00