From 08461dd0b5cb2e474fb3e4026cebf9345824d5d4 Mon Sep 17 00:00:00 2001 From: Phil Schneider Date: Fri, 13 Sep 2024 08:14:34 +0200 Subject: [PATCH] chore: add file header Refs: #810 --- ...ompanyApplicationStatusFilterExtensions.cs | 19 +++++++++++++++++++ .../ClearinghouseBusinessLogic.cs | 19 ++++++++----------- .../BatchDeleteServiceSettings.cs | 19 +++++++++++++++++++ .../MaintenanceServiceExtensions.cs | 19 +++++++++++++++++++ 4 files changed, 65 insertions(+), 11 deletions(-) diff --git a/src/administration/Administration.Service/Extensions/CompanyApplicationStatusFilterExtensions.cs b/src/administration/Administration.Service/Extensions/CompanyApplicationStatusFilterExtensions.cs index 0c20d93009..1220e5b3b3 100644 --- a/src/administration/Administration.Service/Extensions/CompanyApplicationStatusFilterExtensions.cs +++ b/src/administration/Administration.Service/Extensions/CompanyApplicationStatusFilterExtensions.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Org.Eclipse.TractusX.Portal.Backend.Administration.Service.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; diff --git a/src/externalsystems/Clearinghouse.Library/BusinessLogic/ClearinghouseBusinessLogic.cs b/src/externalsystems/Clearinghouse.Library/BusinessLogic/ClearinghouseBusinessLogic.cs index 157d534101..d9ee9b1115 100644 --- a/src/externalsystems/Clearinghouse.Library/BusinessLogic/ClearinghouseBusinessLogic.cs +++ b/src/externalsystems/Clearinghouse.Library/BusinessLogic/ClearinghouseBusinessLogic.cs @@ -143,21 +143,18 @@ public async Task CheckEndClearinghouseProcesses(CancellationToken stoppingToken { var applicationIds = await portalRepositories.GetInstance() .GetApplicationsForClearinghouseRetrigger(dateTimeProvider.OffsetNow.AddDays(-_settings.RetriggerEndClearinghouseIntervalInDays)) - .ToListAsync(stoppingToken).ConfigureAwait(false); + .ToListAsync(stoppingToken) + .ConfigureAwait(false); var hasChanges = false; - foreach (var applicationId in applicationIds) + foreach (var context in applicationIds.Select(applicationId => checklistService.VerifyChecklistEntryAndProcessSteps( + applicationId, + ApplicationChecklistEntryTypeId.CLEARING_HOUSE, + [ApplicationChecklistEntryStatusId.IN_PROGRESS], + ProcessStepTypeId.AWAIT_CLEARING_HOUSE_RESPONSE))) { - var context = await checklistService - .VerifyChecklistEntryAndProcessSteps( - applicationId, - ApplicationChecklistEntryTypeId.CLEARING_HOUSE, - [ApplicationChecklistEntryStatusId.IN_PROGRESS], - ProcessStepTypeId.END_CLEARING_HOUSE) - .ConfigureAwait(ConfigureAwaitOptions.None); - checklistService.FinalizeChecklistEntryAndProcessSteps( - context, + await context.ConfigureAwait(ConfigureAwaitOptions.None), null, item => { diff --git a/src/maintenance/Maintenance.App/DependencyInjection/BatchDeleteServiceSettings.cs b/src/maintenance/Maintenance.App/DependencyInjection/BatchDeleteServiceSettings.cs index 7fca4fa931..cf61c33569 100644 --- a/src/maintenance/Maintenance.App/DependencyInjection/BatchDeleteServiceSettings.cs +++ b/src/maintenance/Maintenance.App/DependencyInjection/BatchDeleteServiceSettings.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Org.Eclipse.TractusX.Portal.Backend.Maintenance.App.Services; using System.ComponentModel.DataAnnotations; diff --git a/src/maintenance/Maintenance.App/DependencyInjection/MaintenanceServiceExtensions.cs b/src/maintenance/Maintenance.App/DependencyInjection/MaintenanceServiceExtensions.cs index 3e0e3ad8fe..8255c03321 100644 --- a/src/maintenance/Maintenance.App/DependencyInjection/MaintenanceServiceExtensions.cs +++ b/src/maintenance/Maintenance.App/DependencyInjection/MaintenanceServiceExtensions.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2024 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Org.Eclipse.TractusX.Portal.Backend.Framework.DateTimeProvider; using Org.Eclipse.TractusX.Portal.Backend.Maintenance.App.Services;