Files
music_library/backlog/completed/ml-50 - Duplicated-parse-helpers-in-Collection-Wishlist-Index.md
T
2026-05-04 21:22:27 +01:00

807 B

id, title, status, assignee, created_date, labels, dependencies, references, priority
id title status assignee created_date labels dependencies references priority
ML-50 Duplicated parse helpers in Collection/Wishlist Index Done
2026-04-20 08:53
https://github.com/cloud8421/music_library/issues/125
medium

Description

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

Description

parse_order/1 and parse_mode/2 are identical private helper functions duplicated across both index LiveViews.

Files

  • lib/music_library_web/live/collection_live/index.ex
  • lib/music_library_web/live/wishlist_live/index.ex

Suggested approach

Extract into a shared helper module (e.g. MusicLibraryWeb.LiveHelpers.Params which already exists for pagination).