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,www: Create failed state for recordings #2162

Merged
merged 2 commits into from
May 6, 2024

Conversation

victorges
Copy link
Member

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

This is just to make a small improvement on the recordingStatus field of streams/sessions.

Previously we had a none state which was only set when we tried to create the recording but
the processing failed. This is pretty misleading as it looks like we never even tried creating one.

So I created a new failed state to be set on that case, and am setting none only when we
actually won't generate a recording, which is the case for stale sessions (exists today, will stop
happening with #2013).

Specific updates (required)

  • Add new failed status and set it when processing failed
  • Process it on frontend showing "Failed" when that's the case

How did you test each of these updates (required)
Simple hotfix, yarn test guarantees it's not breaking anything.

Does this pull request close any open issues?
No.

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 review from a team as code owners May 2, 2024 14:20
Copy link

vercel bot commented May 2, 2024

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

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 7:43pm

@victorges victorges changed the title Vg/feat/recording failed state api,www: Create failed state for recordings May 2, 2024
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.

lgtm

Showing none is just misleading, let's show that only for stale streams
@victorges victorges force-pushed the vg/feat/recording-failed-state branch from 482e551 to 1716f07 Compare May 6, 2024 19:38
@victorges victorges merged commit b19bf50 into master May 6, 2024
8 checks passed
@victorges victorges deleted the vg/feat/recording-failed-state branch May 6, 2024 19:51
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