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

api: Add source field to assets #1365

Merged
merged 5 commits into from
Oct 26, 2022
Merged

api: Add source field to assets #1365

merged 5 commits into from
Oct 26, 2022

Conversation

victorges
Copy link
Member

What does this pull request do? Explain your changes. (required)
This is to create a new useful metadata in asset objects which is some object representing
where they come from / how they were created.

The idea for this is to solve an immediate user need for relating their VOD assets with the livestream
sessions of their users. We previously had no official way for that, and had workarounds in our
dashboard that (I didn't even remember but also) we should not have our users depend on
(regex on playback url of the asset).

It also opens room for an API proposed by @yondonfu for supporting automatic import + playback by CID
directly from IPFS (with no need to manually re-store the asset on IPFS).

Specific updates (required)

  • Create source field on the asset which could have several types and args
  • Set the source field on every asset creation today.

-

  • How did you test each of these updates (required)
    Create an asset in the various different ways and make sure source field is set appropriately.

Does this pull request close any open issues?
No. Customer support.

Checklist:

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@victorges victorges requested a review from a team as a code owner October 25, 2022 18:44
@vercel
Copy link

vercel bot commented Oct 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
livepeer-studio ✅ Ready (Inspect) Visit Preview Oct 26, 2022 at 7:41PM (UTC)

Copy link
Member

@0xcadams 0xcadams left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@gioelecerati gioelecerati left a comment

Choose a reason for hiding this comment

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

Very cool, LGTM!

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

3 participants