1017 B
1017 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 |
|
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:240lib/music_library_web/live/wishlist_live/index.ex:211lib/music_library_web/live/scrobble_rules_live/index.ex:188lib/music_library_web/live/record_set_live/index.ex:342lib/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).