Skip to content

Commit

Permalink
Merge pull request rrze-mmz#180 from rrze-mmz/148-migrate-the-rest-op…
Browse files Browse the repository at this point in the history
…encast-options-for-a-series

Add feature tests
  • Loading branch information
stefanosgeo authored Nov 13, 2024
2 parents e449d98 + d329056 commit d258f3f
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function updateAcl(

if ($opencastAcls->isNotEmpty()) {
session()->flash('flashMessage', 'Opencast acls updated successfully');
$series->recordActivity("Allow user:{$validated['username']} to edit the recording in opencast");
} else {
session()->flash('flashMessage', 'There was a problem updating Opencast Acls');
}
Expand Down Expand Up @@ -134,21 +135,22 @@ public function addScheduledEventsAsClips(
}
}
});
$series->recordActivity("Update {$events->count()} scheduled events to series as clips");
session()->flash('flashMessage', "{$events->count()} Clips created");

return to_route('series.edit', $series);
}

public function updateSeriesTheme(Series $series, Request $request, OpencastService $opencastService)
{
$opencastSettings = Setting::opencast();
$validated = $request->validate([
'faculty' => ['required', 'string'],
'position' => ['required', 'integer'],
]);
//actually position is the themeID
$opencastService->updateSeriesTheme($series, $validated['position']);

$series->recordActivity("Update Theme to : {$validated['faculty']} with ID:{$validated['position']}");
session()->flash('flashMessage', 'Video workflow updated successfully');

return to_route('series.edit', $series);
Expand Down
118 changes: 60 additions & 58 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d258f3f

Please sign in to comment.