Files
music_library/backlog/completed/ml-83 - Duplicated-apply_fallback_index-across-5-LiveViews.md
T
2026-05-04 21:22:27 +01:00

1019 B

id, title, status, assignee, created_date, labels, dependencies, references, priority
id title status assignee created_date labels dependencies references priority
ML-83 Duplicated apply_fallback_index across 5 LiveViews Done
2026-04-20 08:57
https://github.com/cloud8421/music_library/issues/92
medium

Description

GitHub: created 2026-03-05 · updated 2026-03-05 · closed 2026-03-05

Priority: Medium

Description

The apply_fallback_index/2 function is duplicated identically across 5 LiveViews, differing only in the stream key name:

  • lib/music_library_web/live/collection_live/index.ex:240
  • lib/music_library_web/live/wishlist_live/index.ex:211
  • lib/music_library_web/live/scrobble_rules_live/index.ex:188
  • lib/music_library_web/live/record_set_live/index.ex:342
  • lib/music_library_web/live/scrobbled_tracks_live/index.ex:255

Expected behavior

Extract to a shared helper, parameterizing the stream key name.

Source

From technical debt audit (2026-03-05).