feat(meshcore): region scope on MessageChannel (#391)#393
Merged
Conversation
Document device-to-API channel mirror, apply-to-radio flow, data model, and operations. Link from meshcore README; groundwork for #391.
Progress/outstanding logs, region-scope.md, and updates to mc-channel-sync hub, flow, data-model, and ADR-0002.
Migration drops mc_hashtag, backfills hashtag names, and enforces uniqueness on name, type, and region_scope. Channel identity upsert keys on the new shape.
Serializers, OpenAPI, admin, and labels; tests updated for region-scoped canonical channels.
…#391) Enrich mc-channel-sync from existing feeder slot links when CHANNEL_INFO returns name only, avoiding duplicate unscoped canonical MessageChannel rows.
This was referenced Jun 3, 2026
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
region_scopeonMessageChannel(MC rows); dropmc_hashtagwith data migration and new uniqueness on(name, mc_channel_type, region_scope).region_scope; labels show scope suffix (e.g.#galloway · sample-west).region_scope, reconcile preserves scope from the feeder’s existing slot link when name/type still match (avoids duplicate unscoped canonical rows).docs/features/meshcore/mc-channel-sync/includingregion-scope.md; ADR-0002 amended.Deploy: run migrations before bot/UI that send
region_scope.Closes #391 (API slice).
Related PRs: meshflow-bot #127, meshflow-ui #321
Testing performed
pytestfortest_mc_region_scope,test_mc_channel_labels,test_channel_sync(including scope preservation when snapshot omits scope),test_canonical_channels,test_channel_apply_service,test_apply_channel.