Add a command to migrate old job business models to licensed - #2435
Open
Alberto Vilches (avilches) wants to merge 27 commits into
Open
Add a command to migrate old job business models to licensed#2435Alberto Vilches (avilches) wants to merge 27 commits into
Alberto Vilches (avilches) wants to merge 27 commits into
Conversation
# Conflicts: # gateway/tests/core/services/ibm_cloud/event_streams/test_event_streams_client.py
Ismael Rozas (ismaelRozasRamallal)
previously approved these changes
Sep 3, 2026
… migrate-job-business-model
Alberto Vilches (avilches)
marked this pull request as ready for review
September 3, 2026 18:18
Alberto Vilches (avilches)
requested a review
from Ismael Rozas (ismaelRozasRamallal)
September 3, 2026 18:22
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.
Summary
Adds
migrate_job_business_model, the management command that rewrites the oldSUBSIDIZEDbusiness model of existing jobs toLICENSED. It runs from the internal deployment repo as a Kubernetes Job through the existingqiskit-serverless-migrationschart, the same way the earliermigrate_old_job_*commands do.Set as draft because it needs the
LICENSEDfield from #2427, so it targets that branch instead ofmainuntil it merges.Details and comments
--dry-runonly reports how many rows still holdSUBSIDIZED, without writing. Safe to interrupt and rerun, since each run only touches rows that still hold the old name.Once every job row is migrated, a follow-up cleanup PR removes
core/domain/subsidized_license_mapping.pyand its two call sites, dropsSUBSIDIZEDfromBusinessModel, and turnsBILLING_NAMESback into an identity map.