From 85792cac0d9d2013bb5e84f5fb71a87592e82bc2 Mon Sep 17 00:00:00 2001 From: mgoworko <37329559+mgoworko@users.noreply.github.com> Date: Fri, 7 Feb 2025 14:21:23 +0100 Subject: [PATCH] Fix scenario json representation differences in the scheduling mechanism (#7519) --- .run/NussknackerApp-postgres.run.xml | 1 + ..._ScenarioSchedulingTablesModifications.sql | 10 +++ .../PeriodicProcessDeploymentsTable.scala | 2 +- .../ui/db/entity/PeriodicProcessesTable.scala | 45 +++++++---- .../periodic/PeriodicProcessService.scala | 34 ++++---- .../LegacyPeriodicProcessesRepository.scala | 22 ++++- .../periodic/model/SchedulesState.scala | 1 + .../DBFetchingProcessRepository.scala | 9 +-- .../FetchingProcessRepository.scala | 5 +- .../PeriodicProcessesRepository.scala | 80 ++++++++++++------- .../nussknacker/test/base/db/DbTesting.scala | 4 +- .../mock/MockFetchingProcessRepository.scala | 12 ++- .../db/InMemPeriodicProcessesRepository.scala | 22 +++-- docs/Changelog.md | 1 + docs/MigrationGuide.md | 1 + 15 files changed, 155 insertions(+), 94 deletions(-) create mode 100644 designer/server/src/main/resources/db/migration/common/V1_062__ScenarioSchedulingTablesModifications.sql diff --git a/.run/NussknackerApp-postgres.run.xml b/.run/NussknackerApp-postgres.run.xml index e32b1c3aba8..775850a6641 100644 --- a/.run/NussknackerApp-postgres.run.xml +++ b/.run/NussknackerApp-postgres.run.xml @@ -22,6 +22,7 @@ +