Repository navigation
refactor(management): move the Mongock change units to openframe-saas-tenant - #2828
Merged
Merged
Conversation
Contributor
🦩 Flamingo Code ReviewNot reviewed yet. Reviews start when you ask, so the reviewer reads this pull request when it is ready, not when it is opened. When it is ready:
Or comment 🧪 Tests and mutationChecks
Updated 2026-10-26 14:37 UTC · workflow run |
…-tenant The SaaS tenant is the only service that runs Mongock (openframe-oss-tenant never enables it), yet 21 of its change units lived here, in the same package as the 9 the tenant keeps, with colliding `order` values across the two repos. The tenant now owns every change unit; this drops them here together with what only they used: the managed-script definitions and their bodies, the ticket-status seed catalog, the Mongock and lexorank dependencies, and the plexus-utils pin that only Mongock pulled in. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ynKke4PhxdSMdDDKBC44x
semen-flamingo
force-pushed
the
feature/move-mongock-migrations-to-tenant
branch
from
October 26, 2026 14:39
f963afa to
3c10e81
Compare
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ynKke4PhxdSMdDDKBC44x
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ynKke4PhxdSMdDDKBC44x
kirill-567
approved these changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion: flamingo-stack/openframe-saas-tenant#4197 (adds everything removed here).
Why
Mongock runs in one place:
openframe-saas-managementin openframe-saas-tenant (@EnableMongock,migration-scan-package: com.openframe.management.migration). openframe-oss-tenant never enables it. Still, 21 change units lived here inopenframe-management-service-coreand 9 in the tenant, in the same package, with collidingordervalues (007, 011, 012 twice here; 013, 014, 015, 016 on both sides), and every migration written here needed a lib release before the tenant saw it. From now on the tenant owns all of them.What leaves this repo (lands verbatim in #4197)
id,order,authorandrunAlwaysuntouchedcom.openframe.management.systemscript(ManagedScriptDefinition, SystemScriptDefinition, SoftwareScriptDefinition) and thesystem-scripts/*bodies: read only byseed-system-scriptsTicketStatusSeedCatalogfrom openframe-data-mongo-sync: read only byseed-ticket-statusesmongock-springboot-v3,mongodb-springdata-v4-driver,lexorank4j(management-service-core and data-mongo-sync poms), and the root-pomplexus-utilspin that only Mongock pulled in (dependency:treefinds no plexus-utils anywhere now)SystemScriptCodeandSoftwareScriptCodestay: the package-manager bootstrap reads them.Behaviour on tenants
None. Same package, same class names, same ids and orders, so Mongock's changelog and its sort by (order, class name) see the same set as before. Executed units stay executed. The two
runAlwaysunits (archive-stale-devices,seed-system-scripts) keep running from the tenant image. Script bodies are byte-identical, socontentHashdoes not change and no managed script is refreshed.Release train
mainas of 2026-10-30 is merged in, PR snapshot is7.0.49-2828-SNAPSHOT)In flight
#2795 still adds
EncryptScriptSecretEnvVarsChangeUnithere (order020, already taken bybackfill-notification-read-state-type-and-severity). After this merges it will not compile here: it belongs in the tenant's migration package.Verified
mvn -o install -Drevision=999-SNAPSHOT: green; openframe-data-mongo-sync 398 tests, openframe-management-service-core 25 testsopenframe-saas-managementbuilt and tested against that 999-SNAPSHOT: 536 tests green (see #4197)tenant-4197-93on the7.0.37-2828-SNAPSHOTof this branch (before the merges ofmain): management started, Mongock ran all 30 change units in the expected order with no error, all 7 service pods running (details in #4197)mainsince leaves the diff againstmainat exactly the 52 removed files and the three pom edits🤖 Generated with Claude Code
https://claude.ai/code/session_011ynKke4PhxdSMdDDKBC44x