Fix release dates and listing status #7037
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fix release dates and listing statuses
Supporting queries
Snapshot 11-6-23:
Get all tracks where release date was null or ahead of created at and private, prior to scheduled releases feature.
=> 5651
Prod:
Filter out from results above any tracks that are still unlisted
=> 11
Prod
Get all of the transaction hashes from tracks that have been modified by the user since 11-6-23.
=> 98
Prod:
Get all intermediary transaction hashes for these tracks that have changed data (filtering out from this set, anything that was in the original txhash list)
=> 108
Prod:
For all transactions that we found, determine if the user ever submitted a change to publish the track. Filter these out from the original list to get our final list (in this migration).
Note: One of the results from below included a Qm CID that was not a publish action, so it should be kept in the original list of track ids to flip from published->unlisted.
=> 15
This is the list of track ids that a user has published manually since 11-6-23
This contained 1 overlapping track with the 11 found that are still unlisted, so the total count of tracks to repair is
5651 - 11 - 15 + 1
= 5626How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.