Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error when creating double playlist items #352

Merged
merged 3 commits into from
Jul 8, 2022

Conversation

robbevp
Copy link
Member

@robbevp robbevp commented Jul 5, 2022

Fixes #351

Our current way of setting the items through item_ids required some changes to make sure that it runs after the full playlist is modified. I've left some comments to explain the behaviour for ourselves in the future.

Matching PR in web will follow asap.

  • I've added tests relevant to my changes.

The new validation relies on the items to actually exist, otherwise the
result of `items.collect(&:item_id)` would be `[nil, nil]`
@robbevp robbevp added the bug Something isn't working label Jul 5, 2022
@robbevp robbevp requested a review from chvp July 5, 2022 15:37
@robbevp robbevp self-assigned this Jul 5, 2022
@robbevp robbevp changed the title Fix/error double item playlists Return error when creating double playlist items Jul 5, 2022
@robbevp robbevp force-pushed the fix/error-double-item-playlists branch from b9ad79c to 96e4ff9 Compare July 6, 2022 06:55
@chvp chvp merged commit 116c6cc into main Jul 8, 2022
@chvp chvp deleted the fix/error-double-item-playlists branch July 8, 2022 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding a duplicate item to a playlist doesn't return an error
2 participants