Skip to content

Conversation

@schottra
Copy link
Contributor

Description

  1. The output marshaller for playlist_model expects that the type of playlist_contents will be the same shape as that of added_timestamps. This is due to the change in [C-2735] Add updatePlaylist and publishPlaylist to sdk #5570 where we replace playlist_contents with added_timestamps as a client/SDK convenience. But we only do that in the playlists endpoints. /reposts is missing this behavior so the marshaller malfunctions on the playlist items from that endpoint.
  2. Noticed that the utility function for computing added_timestamps incorrectly returns the entire playlist as a response if playlist_contents is empty. I think this was originally meant as a "decorator" method that would modify the contents in place and return the modified object, then converted to a utility that computes the value of a property and returns it. I updated the name of the function and fixed the early return to be an empty list.

How Has This Been Tested?

Tested locally against local stack.

@changeset-bot
Copy link

changeset-bot bot commented Jul 21, 2024

⚠️ No Changeset found

Latest commit: 9bb26e7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@schottra schottra requested review from rickyrombo and sliptype July 21, 2024 18:21
@schottra schottra marked this pull request as ready for review July 21, 2024 18:42
@schottra schottra requested a review from dharit-tan July 22, 2024 14:34
Copy link
Contributor

@sliptype sliptype left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find! I think this is good for now, we can discuss more about the fate of added_timestamps

@schottra schottra merged commit 8abb4a5 into main Jul 22, 2024
@schottra schottra deleted the pay-3192-fix-reposts-playlist-contents branch July 22, 2024 16:17
schottra added a commit that referenced this pull request Jul 22, 2024
* origin/main: (64 commits)
  [C-4837] Fix links for the searching by electronic subgenre from track page (#9225)
  [QA-1452] Fix edit playlist issues (#9226)
  [C-4848] Remove search v2 responsiveness and fix padding on mobile web (#9224)
  Remove fingerprint webhook (#9052)
  Discovery: fix bad musical keys (#9200)
  [C-4842] Fix tag press on mobile for search v2 (#9223)
  [PAY-3192] Fix two issues with playlist_contents and added_timestamps (#9217)
  [C-4829] Fix mobile web drawer overflow (#9220)
  [QA-1458] Fix artwork image loading (#9219)
  Fix commit link in ci slack message (#9221)
  Update dapp-store build artifacts
  [QA-1455] Fix disappearing playlists in sidebar (#9216)
  [C-4643] Feature flag scheduled premium album release (#9215)
  Audius Protocol v0.6.152
  [C-4676] Filter out deleted user content from search (#9208)
  Bump mobile versions to 107 (#9218)
  image skipCache goes all the way (#9212)
  [PAY-3177][PAY-3185] Fix mobile track publish button (#9213)
  Audius Client (Web and Mobile) v1.5.91
  [PAY-3174][PAY-3179] Do not show confirmation modals for edit access during upload (#9204)
  ...
audius-infra pushed a commit that referenced this pull request Jul 23, 2024
[59fddcf] mutex around crc32 hasher (#9231) Steve Perkins
[64ff2d9] Improve logging spam situation (#9238) Raymond Jacobson
[11f5325] [PAY-3176][PAY-3188][PAY-3193] Include premium tracks in DN playlists for owner (#9234) Saliou Diallo
[bf1964c] [QA-1449] [C-4808] Reassign playlist_contents in get_bulk_playlists (#9232) Sebastian Klingler
[8d658e5] Remove fingerprint webhook (#9052) Danny
[e8504bd] Discovery: fix bad musical keys (#9200) Michelle Brier
[8abb4a5] [PAY-3192] Fix two issues with playlist_contents and added_timestamps (#9217) Randy Schott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants