Commit a7a9e17
Fix playlist writes in client (#13811)
- `publishTracks` returns string track IDs, which were being incorrectly
parsed as though they were numbers that needed converting. This was
changed behavior from recent SDK changes made to match the POST
endpoints as this was working previously
- `createPlaylist` wasn't equipped to handle using a preset `playlistId`
like our client expects, rejecting calls that had `playlistId` already
set in the metadata (which would happen on our creation of playlists
from scratch).
- `createPlaylistInternal` was being passed parsed parameters in the
`createPlaylist` case, and unparsed in the `uploadPlaylist` case, and
used types that made it hard to squeeze both callsites in. This was
resulting in incorrectly setting some IDs to hash IDs (eg in
`playlistContents`) and was uncovered when fixing the playlistId bug
above
- `updatePlaylist` had incorrect schema still referencing `coverArtCid`
instead of `playlistImageSizesMultihash`, blocking any playlist updates
that included an image update
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent f91de06 commit a7a9e17
4 files changed
Lines changed: 57 additions & 56 deletions
File tree
- .changeset
- packages
- common/src/api/tan-query/upload
- sdk/src/sdk/api/playlists
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 93 | + | |
101 | 94 | | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
105 | 98 | | |
106 | 99 | | |
107 | 100 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 101 | + | |
113 | 102 | | |
114 | 103 | | |
115 | 104 | | |
| |||
175 | 164 | | |
176 | 165 | | |
177 | 166 | | |
178 | | - | |
| 167 | + | |
179 | 168 | | |
180 | | - | |
| 169 | + | |
181 | 170 | | |
182 | 171 | | |
183 | 172 | | |
| |||
729 | 718 | | |
730 | 719 | | |
731 | 720 | | |
732 | | - | |
| 721 | + | |
733 | 722 | | |
734 | 723 | | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
| 724 | + | |
| 725 | + | |
744 | 726 | | |
745 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
746 | 733 | | |
747 | 734 | | |
748 | 735 | | |
749 | 736 | | |
750 | 737 | | |
751 | 738 | | |
752 | | - | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
753 | 744 | | |
754 | 745 | | |
755 | 746 | | |
756 | 747 | | |
757 | 748 | | |
758 | 749 | | |
| 750 | + | |
759 | 751 | | |
760 | | - | |
761 | 752 | | |
762 | | - | |
763 | 753 | | |
764 | 754 | | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | 755 | | |
770 | 756 | | |
771 | 757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
61 | | - | |
| 74 | + | |
62 | 75 | | |
63 | 76 | | |
64 | 77 | | |
| |||
101 | 114 | | |
102 | 115 | | |
103 | 116 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
0 commit comments