refactor(media)!: unify processing under asynchronous job workflow #3

Merged
dylan merged 14 commits from refactor/generalize-job-abstraction into master 2026-06-25 20:26:09 +01:00
4 changed files with 12 additions and 16 deletions
Showing only changes of commit 7d8a62d331 - Show all commits

View File

@@ -4,7 +4,7 @@ meta {
seq: 3
}
get {
post {
url: {{base_url}}/media/clip
body: json
auth: inherit
@@ -12,6 +12,10 @@ get {
body:json {
{
"duration": 60
"duration": 60.0
}
}
script:post-response {
bru.setEnvVar("uuid", res.getBody().data.uuid);
}

View File

@@ -4,7 +4,7 @@ meta {
seq: 2
}
get {
post {
url: {{base_url}}/media/save
body: json
auth: inherit
@@ -16,3 +16,7 @@ body:json {
"endTime": "2026-06-21T17:28:00Z"
}
}
script:post-response {
bru.setEnvVar("uuid", res.getBody().data.uuid);
}

View File

@@ -33,6 +33,7 @@ public class SecurityConfig {
.requestMatchers("/api/v1/media/**").authenticated()
.requestMatchers("/api/v1/jobs/**").authenticated()
.requestMatchers("/api/v1/users/me", "/api/v1/users/logout").authenticated()
.requestMatchers("/api/v1/users/login").permitAll()
.requestMatchers("/api/v1/stream/start", "/api/v1/stream/stop", "/api/v1/stream/heartbeat").permitAll()
.anyRequest().authenticated()
)

View File

@@ -1,13 +0,0 @@
package com.ddf.vodsystem.dto;
import lombok.Data;
@Data
public class JobStatus {
private ProgressTracker process = new ProgressTracker();
private ProgressTracker conversion = new ProgressTracker();
private boolean failed = false;
private String failedReason;
}