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

DDEX separate release date and validity start date #8146

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

michellebrier
Copy link
Contributor

@michellebrier michellebrier commented Apr 18, 2024

Description

Parse and persist release date (from the release details) and validity start date (from the corr. deal) separately. Poll for max(release_date, validity_start_date) >= current_date in the publisher. If no <ReleaseDate> or <GlobalOriginalReleaseDate> is provided, release_date gets set to the validity start date, which is required. The release_date is what gets displayed in the UI.

How Has This Been Tested?

e2e tests, upload an xml locally

…back to validity start. Deduce album validity start if no deal is provided for the album. TODO publisher polls max(validity start, release date)
@michellebrier michellebrier requested a review from theoilie April 18, 2024 00:29
Copy link

changeset-bot bot commented Apr 18, 2024

⚠️ No Changeset found

Latest commit: 87aa099

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.

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

@michellebrier michellebrier changed the title Mbrier/proto 1749/premium album deals DDEX separate release date and validity start date Apr 18, 2024
Copy link
Contributor

@theoilie theoilie left a comment

Choose a reason for hiding this comment

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

this looks great! could you update the Notion doc and/or follow up with @samgutentag to make sure the docs reflect this?

if !parsedReleaseElem.ReleaseDate.IsZero() {
track.ReleaseDate = parsedReleaseElem.ReleaseDate
}
track.ReleaseDate = parsedReleaseElem.ReleaseDate
Copy link
Contributor

Choose a reason for hiding this comment

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

so there's no chance it would've been non-zero before and this sets it to the zero Time? i thought maybe this check was there because the ReleaseDate was already set

Copy link
Contributor Author

Choose a reason for hiding this comment

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

track.ReleaseDate would be from the sound recording if I understand this correctly, and I don't see any release date logic when we parse out the sound recording for a track, so it shouldn't be overriding anything, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

hm yeah looks like it would always be empty so i'm not sure why it was there. seems okay as is then

@michellebrier michellebrier merged commit 8e8e083 into main Apr 19, 2024
12 checks passed
@michellebrier michellebrier deleted the mbrier/proto-1749/premium-album-deals branch April 19, 2024 20:38
schottra added a commit that referenced this pull request Apr 22, 2024
* origin/main:
  Audius Client (Web and Mobile) v1.5.77
  Add ddex s3 sync script (#8175)
  Improve DDEX/aws interaction (#8167)
  Fix changeset github action (#8172)
  Fix storage progress bar (#8169)
  [INF-388] Improve protocol GH releases (#8159)
  [PAY-2688] Add prototype foundation for manager mode (#8154)
  DDEX separate release date and validity start date (#8146)
  [PAY-2709, PAY-2710, PAY-2708] Various CollectionTile fixes (#8145)
  [C-4289] Make verify call lint instead of lint:fix (#8152)
  [PAY-2666] Only show withdrawals on withdrawals tab (#8142)
  [ONC-74] Fix social account association (#8162)
  [PAY-2692] Purchase/sale push+email notification album support (#8158)
  Don't allow creating developer app with user wallet as address [C-4041 (#8165)
  Update cooldown days in response (#8160)
  Bump version to 0.6.85
audius-infra pushed a commit that referenced this pull request Apr 22, 2024
[4076554] Add ddex s3 sync script (#8175) Raymond Jacobson
[ee55257] Improve DDEX/aws interaction (#8167) Raymond Jacobson
[225915c] Fix storage progress bar (#8169) Marcus Pasell
[8e8e083] DDEX separate release date and validity start date (#8146) Michelle Brier
[7ad1e89] [C-4289] Make verify call lint instead of lint:fix (#8152) Sebastian Klingler
[d9420a9] [PAY-2666] Only show withdrawals on withdrawals tab (#8142) Marcus Pasell
[5249858] [ONC-74] Fix social account association (#8162) Marcus Pasell
[78db43e] [PAY-2692] Purchase/sale push+email notification album support (#8158) Reed
[40379a6] Don't allow creating developer app with user wallet as address [C-4041 (#8165) nicoback2
[0777866] Update cooldown days in response (#8160) Saliou Diallo
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