From 68dca3784fca9012365b5594a3974bde3f5bf88f Mon Sep 17 00:00:00 2001 From: Grace Rehn Date: Mon, 14 Oct 2024 15:22:53 +1000 Subject: [PATCH] Update all isDisabled filter values when not filtering --- .../Repositories/Async/EnvironmentRepository.cs | 8 ++++---- .../Repositories/Async/MachineRepository.cs | 4 ++-- .../Repositories/Async/WorkerPoolRepository.cs | 8 ++++---- .../Repositories/Async/WorkerRepository.cs | 4 ++-- .../Repositories/EnvironmentRepository.cs | 8 ++++---- .../Repositories/MachineRepository.cs | 4 ++-- .../Repositories/WorkerPoolRepository.cs | 8 ++++---- .../Repositories/WorkerRepository.cs | 4 ++-- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/source/Octopus.Server.Client/Repositories/Async/EnvironmentRepository.cs b/source/Octopus.Server.Client/Repositories/Async/EnvironmentRepository.cs index 76aebaa2f..e53adc49c 100644 --- a/source/Octopus.Server.Client/Repositories/Async/EnvironmentRepository.cs +++ b/source/Octopus.Server.Client/Repositories/Async/EnvironmentRepository.cs @@ -13,7 +13,7 @@ Task> GetMachines(EnvironmentResource environment, int? take = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -23,7 +23,7 @@ Task Summary( string partialName = null, string machinePartialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -47,7 +47,7 @@ public async Task> GetMachines(EnvironmentResource environ int? take = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -79,7 +79,7 @@ public async Task Summary( string partialName = null, string machinePartialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, diff --git a/source/Octopus.Server.Client/Repositories/Async/MachineRepository.cs b/source/Octopus.Server.Client/Repositories/Async/MachineRepository.cs index fdb787f05..4ca36dd81 100644 --- a/source/Octopus.Server.Client/Repositories/Async/MachineRepository.cs +++ b/source/Octopus.Server.Client/Repositories/Async/MachineRepository.cs @@ -37,7 +37,7 @@ Task> List(int skip = 0, string name = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -129,7 +129,7 @@ public async Task> List(int skip = 0, string name = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, diff --git a/source/Octopus.Server.Client/Repositories/Async/WorkerPoolRepository.cs b/source/Octopus.Server.Client/Repositories/Async/WorkerPoolRepository.cs index 1fd8fbeac..6c969f6df 100644 --- a/source/Octopus.Server.Client/Repositories/Async/WorkerPoolRepository.cs +++ b/source/Octopus.Server.Client/Repositories/Async/WorkerPoolRepository.cs @@ -12,14 +12,14 @@ Task> GetMachines(WorkerPoolResource workerPool, int? skip = 0, int? take = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null); Task Summary( string ids = null, string partialName = null, string machinePartialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, bool? hideEmptyPools = false); @@ -39,7 +39,7 @@ public async Task> GetMachines(WorkerPoolResource workerPoo int? skip = 0, int? take = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null) { @@ -65,7 +65,7 @@ public async Task Summary( string ids = null, string partialName = null, string machinePartialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, bool? hideEmptyPools = false) diff --git a/source/Octopus.Server.Client/Repositories/Async/WorkerRepository.cs b/source/Octopus.Server.Client/Repositories/Async/WorkerRepository.cs index 498efabfe..cde509d88 100644 --- a/source/Octopus.Server.Client/Repositories/Async/WorkerRepository.cs +++ b/source/Octopus.Server.Client/Repositories/Async/WorkerRepository.cs @@ -23,7 +23,7 @@ Task> List(int skip = 0, string ids = null, string name = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string workerpoolIds = null); @@ -65,7 +65,7 @@ public async Task> List(int skip = 0, string ids = null, string name = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string workerpoolIds = null) diff --git a/source/Octopus.Server.Client/Repositories/EnvironmentRepository.cs b/source/Octopus.Server.Client/Repositories/EnvironmentRepository.cs index bf8a21af5..c275a8719 100644 --- a/source/Octopus.Server.Client/Repositories/EnvironmentRepository.cs +++ b/source/Octopus.Server.Client/Repositories/EnvironmentRepository.cs @@ -11,7 +11,7 @@ List GetMachines(EnvironmentResource environment, int? take = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -21,7 +21,7 @@ EnvironmentsSummaryResource Summary( string partialName = null, string machinePartialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -45,7 +45,7 @@ public List GetMachines(EnvironmentResource environment, int? take = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -78,7 +78,7 @@ public EnvironmentsSummaryResource Summary( string partialName = null, string machinePartialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, diff --git a/source/Octopus.Server.Client/Repositories/MachineRepository.cs b/source/Octopus.Server.Client/Repositories/MachineRepository.cs index f61cabec7..c7b75a9d5 100644 --- a/source/Octopus.Server.Client/Repositories/MachineRepository.cs +++ b/source/Octopus.Server.Client/Repositories/MachineRepository.cs @@ -38,7 +38,7 @@ ResourceCollection List(int skip = 0, string name = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, @@ -134,7 +134,7 @@ public ResourceCollection List(int skip = 0, string name = null, string partialName = null, string roles = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string tenantIds = null, diff --git a/source/Octopus.Server.Client/Repositories/WorkerPoolRepository.cs b/source/Octopus.Server.Client/Repositories/WorkerPoolRepository.cs index 06daed1f7..d2aad6d8e 100644 --- a/source/Octopus.Server.Client/Repositories/WorkerPoolRepository.cs +++ b/source/Octopus.Server.Client/Repositories/WorkerPoolRepository.cs @@ -10,14 +10,14 @@ List GetMachines(WorkerPoolResource workerPool, int? skip = 0, int? take = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null); WorkerPoolsSummaryResource Summary( string ids = null, string partialName = null, string machinePartialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, bool? hideEmptypools = false); @@ -37,7 +37,7 @@ public List GetMachines(WorkerPoolResource workerPool, int? skip = 0, int? take = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null) { @@ -64,7 +64,7 @@ public WorkerPoolsSummaryResource Summary( string ids = null, string partialName = null, string machinePartialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, bool? hideEmptyPools = false) diff --git a/source/Octopus.Server.Client/Repositories/WorkerRepository.cs b/source/Octopus.Server.Client/Repositories/WorkerRepository.cs index ce8ad3475..df2b5579b 100644 --- a/source/Octopus.Server.Client/Repositories/WorkerRepository.cs +++ b/source/Octopus.Server.Client/Repositories/WorkerRepository.cs @@ -22,7 +22,7 @@ ResourceCollection List(int skip = 0, string ids = null, string name = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string workerpoolIds = null); @@ -65,7 +65,7 @@ public ResourceCollection List(int skip = 0, string ids = null, string name = null, string partialName = null, - bool? isDisabled = false, + bool? isDisabled = null, string healthStatuses = null, string commStyles = null, string workerpoolIds = null)