Skip to content

fix: catch-all-in-group scope depends on node add order - #5944

Merged
knolleary merged 2 commits into
node-red:mainfrom
sathyanarayanan-v:fix-catch-all-group-scope-order-dependency
Oct 6, 2026
Merged

knolleary merged 2 commits into
node-red:mainfrom
sathyanarayanan-v:fix-catch-all-group-scope-order-dependency

Conversation

@sathyanarayanan-v

Copy link
Copy Markdown
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

Proposed change is a one-line tiebreak added to the sort comparator in Flow.handleError(), so that when two catch nodes are at the same group distance, non-uncaught (specifically scoped) catch nodes always sort before uncaught (catch-all) ones regardless of the order they were added to the group.

Fixes #5811

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run npm run test to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: sathyanarayanan-v / name: Sathya (084035c)

@knolleary
knolleary merged commit a347769 into node-red:main Oct 6, 2026
3 checks passed
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.

Group catch-all is depended on node insertion into group

2 participants