Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix different json representation in scheduling mechanism #7519

Merged

Conversation

mgoworko
Copy link
Contributor

@mgoworko mgoworko commented Jan 31, 2025

Describe your changes

The scenario graph stored as json in the db tables of the scheduling mechanism is different, than the one stored in process_versions table. It is already pre-resolved, for example fragments are expanded. The previous change in the periodic mechanism did not take that into account and was incorrent. We need to store this pre-resolved json. But there is one optimization possible, and now introduced in this PR in the new tables - cleaning this json when scenario is cancelled.

Checklist before merge

  • Related issue ID is placed at the beginning of PR title in [brackets] (can be GH issue or Nu Jira issue)
  • Code is cleaned from temporary changes and commented out lines
  • Parts of the code that are not easy to understand are documented in the code
  • Changes are covered by automated tests
  • Showcase in dev-application.conf added to demonstrate the feature
  • Documentation added or updated
  • Added entry in Changelog.md describing the change from the perspective of a public distribution user
  • Added MigrationGuide.md entry in the appropriate subcategory if introducing a breaking change
  • Verify that PR will be squashed during merge

@mgoworko mgoworko requested review from arkadius and piotrp February 6, 2025 11:42
…-representation-in-scheduling-engine

# Conflicts:
#	designer/server/src/main/scala/pl/touk/nussknacker/ui/process/repository/FetchingProcessRepository.scala
@mgoworko mgoworko requested a review from piotrp February 7, 2025 12:00
@github-actions github-actions bot added the docs label Feb 7, 2025
@mgoworko mgoworko merged commit 85792ca into staging Feb 7, 2025
5 checks passed
@mgoworko mgoworko deleted the fix-different-json-representation-in-scheduling-engine branch February 7, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants