Skip to content

Accept comma-separated to_clusters destinations - #167

Draft
robjarawan wants to merge 2 commits into
developmentfrom
fix/multi-cluster-destinations-refresh
Draft

Accept comma-separated to_clusters destinations#167
robjarawan wants to merge 2 commits into
developmentfrom
fix/multi-cluster-destinations-refresh

Conversation

@robjarawan

Copy link
Copy Markdown
Owner

Fixes #53 and supersedes the closed fork PR #132.

ToClusters.after_accept() compares the whole to_clusters value to the configured list. So DDI.CMC,DDI.EDM does not match msgToClusters DDI.CMC; the callback moves the message to rejected even though the local cluster is one of its destinations.

So what I did was restore the original one-line fix on the current fork development base: split the message field on commas, trim each token, and keep the message when any token is configured locally. Single destinations and non-matches keep their existing behavior.

Before:

1 failed, 1 passed

After:

2 passed

The original audit's exact single/multiple destination fixture also passes 2/2 after the fix.

Tests:

  • focused ToClusters regression: 2 passed
  • all accept callback tests: 52 passed
  • broader suite excluding the unavailable Azure fixture: 354 passed, 1 skipped
  • local maintenance flow: PASS, 5 messages received and downloaded, queues/configurations cleaned up

This branch also includes the local-fixture CI repair from #140 so the fork maintenance jobs do not depend on public dynamic flows.

Upstream issue MetPX#1752 remains open, while upstream PR MetPX#1740 was closed unmerged. Peter's comment on MetPX#1752 says this callback may be unused and removal may be the better long-term direction. That removal scope is still unresolved. This fork draft preserves the currently reachable callback's documented matching behavior without making the broader removal decision.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Test Results

374 tests   373 ✅  1m 41s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit bd9da9d.

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.

ToClusters rejects comma-separated destinations

1 participant