← 输入框|github.com|刷新
Skip to content

feat(playlists): allow removing playlist items by a collection of URIs - #482

Merged
dargmuesli merged 1 commit into
mainfrom
feat/playlists/remove-items-collection
Nov 2, 2026
Merged

dargmuesli merged 1 commit into
mainfrom
feat/playlists/remove-items-collection

Conversation

@dargmuesli

Copy link
Copy Markdown
Member

Adds a non-breaking removePlaylistItems(String, Collection<String>) overload (and the matching tracks(Collection<String>)) for the common case of removing items by URI. Each URI is wrapped into the {"uri": ...} object the API expects, so callers no longer have to build a JsonArray by hand. The existing JsonArray overloads are unchanged and still support removing specific occurrences via the positions field.

Stacks on the remove-playlist-items fix; its regression test asserts on the serialized body, which only passes once that fix is in. Rebase onto main after that PR merges.

@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.57143% with 3 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (fix/playlists/remove-items@cbc9c08). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...sts/data/playlists/RemovePlaylistItemsRequest.java 70.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##             fix/playlists/remove-items     #482   +/-   ##
=============================================================
  Coverage                              ?   46.18%           
  Complexity                            ?      684           
=============================================================
  Files                                 ?      209           
  Lines                                 ?     6266           
  Branches                              ?      757           
=============================================================
  Hits                                  ?     2894           
  Misses                                ?     2812           
  Partials                              ?      560           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Base automatically changed from fix/playlists/remove-items to main November 2, 2026 16:24
@dargmuesli
dargmuesli merged commit 3cedf7f into main Nov 2, 2026
6 checks passed
@dargmuesli
dargmuesli deleted the feat/playlists/remove-items-collection branch November 2, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant