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

🐛(back) fix sync_medialive_video command #2284

Merged
merged 14 commits into from
Jun 15, 2023

Conversation

polyhb
Copy link
Contributor

@polyhb polyhb commented Jun 13, 2023

Purpose

Fixing the #2278, the sync_medialive_video command can sometimes return an error

Proposal

The command is failing when the video associated to a medialive channel does not exist. When a channel does not have a video, it can't be used. Therefore, the command should delete the unused medialive channel stack. Stack delete is already implemented so we can reuse it.

  • split too long file medialive_utils.py.
  • delete stack when video not found.

@polyhb polyhb self-assigned this Jun 13, 2023
@polyhb polyhb force-pushed the hbaudesson/fix-sync-medialive-command branch from 6514c76 to f5d1c1f Compare June 14, 2023 09:33
@polyhb polyhb requested a review from lunika June 14, 2023 09:35
@polyhb polyhb force-pushed the hbaudesson/fix-sync-medialive-command branch 3 times, most recently from 7c75fdf to 13b181a Compare June 14, 2023 14:03
@polyhb polyhb force-pushed the hbaudesson/fix-sync-medialive-command branch from 13b181a to 6663777 Compare June 15, 2023 07:59
@polyhb polyhb enabled auto-merge (rebase) June 15, 2023 08:09
polyhb added 14 commits June 15, 2023 10:31
…eate_utils.py', 'split/medialive_utils.py-medialive_utils/medialive_action_utils.py', 'split/medialive_utils.py-medialive_utils/medialive_delete_utils.py' and 'split/medialive_utils.py-medialive_utils/medialive_list_utils.py' into hbaudesson/fix-sync-medialive-command
Remove duplicated code due to medialive_utils.py splitting.
Split test_medialive_utils into test_medialive_delete_utils
Split generated by gitfilesplit
Split test_medialive_utils into test_medialive_action_utils
Split generated by gitfilesplit
Split test_medialive_utils into test_medialive_create_utils
Split generated by gitfilesplit
…dialive_create_utils.py', 'split/test_medialive_utils.py-medialive_utils/test_medialive_action_utils.py' and 'split/test_medialive_utils.py-medialive_utils/test_medialive_delete_utils.py' into hbaudesson/fix-sync-medialive-command
Remove duplicated code due to test_medialive_utils.py splitting.
The sync_medialive_video is failing when medialive channel exists,
but its associated video does not.
When a channel does not have a video, it can't be used.
Therefore, we should delete the stack of this unused medialive channel.
@polyhb polyhb force-pushed the hbaudesson/fix-sync-medialive-command branch from 6663777 to 1382995 Compare June 15, 2023 08:32
auto-merge was automatically disabled June 15, 2023 09:12

Rebase failed

@polyhb polyhb merged commit 1382995 into master Jun 15, 2023
31 of 32 checks passed
@polyhb polyhb deleted the hbaudesson/fix-sync-medialive-command branch June 15, 2023 09:21
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