From 7ae942f941f28cd0b36fdb4b6e3b2430993478a0 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 26 Nov 2024 15:47:34 +0100 Subject: [PATCH] sync jobs: remove superfluous direction property since the SyncJobConfig struct now contains a 'sync-direction' property, we can omit the 'direction' property of the SyncJobStatus struct. This makes a few adaptions in the ui necessary: * use the correct field * handle 'pull' as default (since we don't necessarily get a 'sync-direction' in that case) Signed-off-by: Dominik Csapak --- pbs-api-types/src/jobs.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs index 16b16dd8..04631d92 100644 --- a/pbs-api-types/src/jobs.rs +++ b/pbs-api-types/src/jobs.rs @@ -649,9 +649,6 @@ impl SyncJobConfig { status: { type: JobScheduleStatus, }, - direction: { - type: SyncDirection, - }, }, )] #[derive(Serialize, Deserialize, Clone, PartialEq)] @@ -662,9 +659,6 @@ pub struct SyncJobStatus { pub config: SyncJobConfig, #[serde(flatten)] pub status: JobScheduleStatus, - - /// The direction of the job - pub direction: SyncDirection, } /// These are used separately without `ns`/`max-depth` sometimes in the API, specifically in the API