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: Propagate progress field to asset #1244

Merged
merged 6 commits into from
Sep 7, 2022
Merged

Conversation

victorges
Copy link
Member

What does this pull request do? Explain your changes. (required)

Also add processing phase to assets so one doesn't have
to use the existence of the progress field to tell if it
has started or not.

Specific updates (required)

  • Add progress field to assets
  • Add processing phase to assets

-

  • How did you test each of these updates (required)
    yarn test

Does this pull request close any open issues?
Unofficial issue discussed yesterday for SDK to unblock livepeer/ui-kit#27

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.

Also add processing phase to assets so one doesn't have
to use the existence of the progress field to tell if it
has started or not.
@victorges victorges requested a review from a team as a code owner September 2, 2022 17:18
@vercel
Copy link

vercel bot commented Sep 2, 2022

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

Name Status Preview Updated
livepeer-studio ✅ Ready (Inspect) Visit Preview Sep 7, 2022 at 2:34PM (UTC)

@codecov
Copy link

codecov bot commented Sep 2, 2022

Codecov Report

Merging #1244 (2d9f567) into master (4d1c101) will decrease coverage by 0.08113%.
The diff coverage is 28.57143%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #1244         +/-   ##
===================================================
- Coverage   51.37552%   51.29439%   -0.08114%     
===================================================
  Files             66          66                 
  Lines           4362        4365          +3     
  Branches         791         794          +3     
===================================================
- Hits            2241        2239          -2     
- Misses          1838        1842          +4     
- Partials         283         284          +1     
Impacted Files Coverage Δ
packages/api/src/controllers/asset.ts 56.27010% <ø> (ø)
packages/api/src/controllers/task.ts 12.74510% <0.00000%> (-0.79657%) ⬇️
packages/api/src/store/asset-table.ts 85.18519% <ø> (-1.02171%) ⬇️
packages/api/src/task/scheduler.ts 43.22034% <50.00000%> (+0.36319%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d1c101...2d9f567. Read the comment docs.

Impacted Files Coverage Δ
packages/api/src/controllers/asset.ts 56.27010% <ø> (ø)
packages/api/src/controllers/task.ts 12.74510% <0.00000%> (-0.79657%) ⬇️
packages/api/src/store/asset-table.ts 85.18519% <ø> (-1.02171%) ⬇️
packages/api/src/task/scheduler.ts 43.22034% <50.00000%> (+0.36319%) ⬆️

Stop merging hell.

Only the retries field had to be copied around over
and over, which is better than clearing the progress
and step anyway.
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.

With this pull request, I am unable to open the asset page on the dashboard in dev. It seems to be related to the views api failing tho. Apart of this, LGTM

@victorges victorges self-assigned this Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants