Skip to content

Fix marshalling for playlist notifs#11562

Merged
schottra merged 1 commit intomainfrom
fix-album-marshalling
Mar 10, 2025
Merged

Fix marshalling for playlist notifs#11562
schottra merged 1 commit intomainfrom
fix-album-marshalling

Conversation

@schottra
Copy link
Copy Markdown
Contributor

Description

Missed a spot in #11511.

Playlist notifs were, for some reason, extending the playlist_id as a tuple and not a list.
I'm not entirely sure why the output model uses a list when it's usually one item. But for the sake of backwards compatibility, I'm not going to change that. This will, however, remove a bunch of error messages from the logs due to the id being in the wrong format.

How Has This Been Tested?

Local client against local stack. User B follows User A. User A uploads a playlist and album. Check notifications on user B. Check logs for server container to make sure no more marshaling errors.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 10, 2025

⚠️ No Changeset found

Latest commit: e529a61

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 enabled auto-merge (squash) March 10, 2025 19:05
@schottra schottra merged commit 00a19f0 into main Mar 10, 2025
@schottra schottra deleted the fix-album-marshalling branch March 10, 2025 19:27
audius-infra pushed a commit that referenced this pull request Mar 11, 2025
[4a0e8cc] dual write to acdc and core (#11573) alecsavvy
[2f859fb] fix attest endpoint (#11552) Steve Perkins
[6fc5376] Remove end_date on play count challenge and update query (#11563) Farid Salau
[5bebab8] [PAY-3893][PAY-3894] Remove legacy indexing of associated_wallets and collectibles (#11564) Randy Schott
[00a19f0] Fix marshalling for playlist notifs (#11562) Randy Schott
[ba9b8fb] Delete pc challenge (#11561) Farid Salau
[84eb2f8] [PAY-3979][PAY-3990] Update play count challenge BE and Add the FE (#11521) Farid Salau
stereosteve added a commit to AudiusProject/api that referenced this pull request Jul 17, 2025
TODO:

* [ ] Do we need all the `timestamp_offset, group_id_offset` query
logic? Does the client use some, all or none of those query params?
* [ ] `playlist_id` is weirdly a list, as discussed here:
AudiusProject/apps#11562
* [x] Ordering of items inside of `actions` array may diverge. Will need
a subquery there.
* [x] The `seen_at` is never null in the golang version.. not sure why
that's different.
* [x] Need the unread count field

Questions:
* Difference in `seen_at` null behavior?
* limit=0 returns results from python server?
* playlist_id as array... is that for the client or for the python?

Changes:

* Added `valid_types` support, but`timestamp_offset` and
`group_id_offset` query logic is problematic and I don't understand what
it's supposed to do.
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