Repository navigation
fix: default a missing module version to any version - #8927
Merged
Merged
Conversation
Modules installed through the nodes API without a version (for example by the Expert) were stored without one and dropped from package.json on the next restart. Claude-Session: https://claude.ai/code/session_01HQVXtLUJtHr7hPXZ5DRwoL
Steve-Mcl
approved these changes
Oct 14, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8927 +/- ##
==========================================
- Coverage 79.11% 79.10% -0.01%
==========================================
Files 476 476
Lines 25890 25890
Branches 6886 6888 +2
==========================================
- Hits 20483 20481 -2
- Misses 5407 5409 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2 tasks done
This branch was successfully deployed
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.
Description
Modules installed through the Node-RED
POST /nodesAPI without a version (for example by the Expert) were saved to the instance's palette modules with no version.getRuntimeSettingsthen dropped them from the modules map, sopackage.jsonlost them andnpm installpruned them on the next restart.nodes.installaudit handler storesauditEvent.version || '*', matchingmodules.install.getRuntimeSettingsdefaults a missing version to'*', so rows already saved without a version are reinstalled on the instance's next start. No migration needed.Related Issue(s)
Closes #8919
Checklist
flowforge.yml?Labels
area:migrationlabelhttps://claude.ai/code/session_01HQVXtLUJtHr7hPXZ5DRwoL