Skip to content

feat: refactor IoT workflow migrations- #772 - #856

Open
oliveriosousa wants to merge 7 commits into
criticalmanufacturing:mainfrom
oliveriosousa:development-refactor-iot-workflow-migrations
Open

oliveriosousa wants to merge 7 commits into
criticalmanufacturing:mainfrom
oliveriosousa:development-refactor-iot-workflow-migrations

Conversation

@oliveriosousa

Copy link
Copy Markdown
Contributor

What was done

The previous IoT workflow upgrade process consisted of changing the tasks' version in the JSON file, which is against the recommendations of the Product team. A new utility, the workflow-migration-tool, was developed as a standalone npm package. The utility goes through all the masterdata and workflow files and updates the tasks, applying all the migration scripts needed. This is the correct, safe way to perform these kinds of upgrades.

The cmf upgrade command was being used as a placeholder so users could use the cmf upgrade base command. The latter is an anti-pattern since it goes through all the package files and performs an upgrade. Now, the cmf upgrade command is no longer a placeholder and can be used to perform an upgrade in the specified package only.
The cmf upgrade base behavior was kept.

Finally, existing unit tests were updated and new ones were added for the UpgradeCommand.

Closes #758 #759 #760

Dependencies

Depends on the Connect IoT workflow-migration-tool package.

Validation checklist

Please ensure the following conditions are met in order for this PR to be merged:

  • Code validation (careful with side-effects)
  • Integration test run provided
  • Main WorkItem is linked
  • Target branch version is correct

@oliveriosousa
oliveriosousa force-pushed the development-refactor-iot-workflow-migrations branch 7 times, most recently from d8627fe to ee639dc Compare October 19, 2026 12:43
@oliveriosousa oliveriosousa changed the title Development refactor iot workflow migrations feat: refactor IoT workflow migrations- #772 Oct 19, 2026
@oliveriosousa
oliveriosousa force-pushed the development-refactor-iot-workflow-migrations branch from 02fb078 to 6a2dce6 Compare October 21, 2026 14:30

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue in cmf upgrade - Control flow fields

2 participants