Skip to content

Fix album repost triggers - #5767

Merged
isaacsolo merged 9 commits into
mainfrom
is-fix-album-social-feature
Aug 21, 2023
Merged

Fix album repost triggers#5767
isaacsolo merged 9 commits into
mainfrom
is-fix-album-social-feature

Conversation

@isaacsolo

@isaacsoloisaacsolo commented Aug 9, 2023

Copy link
Copy Markdown

Description

My fix https://github.com/AudiusProject/audius-protocol/pull/5467/files wasn't complete. That fix was intended to use album repost_type so the handle_repost trigger would recognize an album vs playlist.

The client still sends playlist entity type so existing reposts wouldn't be found https://github.com/AudiusProject/audius-protocol/blob/main/discovery-provider/src/tasks/entity_manager/entity_manager.py#L736-L737. This allows users to repost multiple times, bypassing the duplicate check.

This change modifies the trigger to just check the playlist table and use that to determine is_album instead of the repost_type. It also cleans up duplicate reposts and ensures we only use playlist repost_type.

How Has This Been Tested?

Tested on sandbox. Migration took a while but worked ~ 5-10 mins.

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

Loading
Sign up for freeto 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.

3 participants

@isaacsolo@rickyrombo@michellebrier