Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix changes to search for deleted #902

Merged
merged 1 commit into from
Oct 8, 2020
Merged

Fix changes to search for deleted #902

merged 1 commit into from
Oct 8, 2020

Conversation

jowlee
Copy link
Contributor

@jowlee jowlee commented Oct 8, 2020

Trello Card Link

https://trello.com/c/A7BOsv5J/1476-port-the-new-api-into-the-dapp

Description

Addresses @piazzatron 's comments on #900

Services

Discovery Provider

Does it touch a critical flow like Discovery indexing, Creator Node track upload, Creator Node gateway, or Creator Node file system?

Delete an option.

  • ✅ Nope

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.
Include log analysis if applicable.

I ran it against a prod db snapshot and and compared responses.

@jowlee jowlee requested a review from piazzatron October 8, 2020 19:57
Copy link
Contributor

@piazzatron piazzatron left a comment

Choose a reason for hiding this comment

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

Looks good, 1 Q

@@ -72,7 +75,8 @@ def get_unpopulated_playlists(session, playlist_ids):
playlists_response = []
for playlist_id in playlist_ids:
if playlist_id in cached_playlists:
playlists_response.append(cached_playlists[playlist_id])
if not filter_deleted or not cached_playlists[playlist_id]['is_delete']:
playlists_response.append(cached_playlists[playlist_id])
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mess up the ordering of our playlist response? Like if we request Ids [1, 2, 3] but 2 is deleted, now we're returning [Playlist1, Playlist3] and we don't know what corresponds to what? Or does order not matter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I use this in place of the actual query for tracks w/ these ids and the filter, so the same thing should happen that happened before.

@jowlee jowlee merged commit 971a3bb into master Oct 8, 2020
@jowlee jowlee deleted the jowlee-search-updates branch October 8, 2020 20:41
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.

None yet

2 participants