Skip to content

feat(api): filter scope lists by region and catalogue membership - #195

Merged
MrAlders0n merged 1 commit into
devfrom
feat/region-scoped-scopes
Oct 1, 2026
Merged

MrAlders0n merged 1 commit into
devfrom
feat/region-scoped-scopes

Conversation

@MrAlders0n

Copy link
Copy Markdown
Member

Region-filtered scope lists now follow configured regions and MeshMapper catalogue membership instead of observed traffic.

  • GET /scopes?iatas|region|regionId returns string[] (same shape as the unfiltered call): manual scopes configured for a matching region, plus imported scopes whose current catalogue includes a requested IATA. IATAs without a catalogue source list only manual scopes. Unfiltered /scopes is unchanged.
  • GET /stats/scopes applies the same rule when filtered; member scopes with no traffic still appear with zero counts.
  • Removes the traffic-based GetScopesByIATAs query and ScopeSummary.

Breaking config: every scopes: entry now needs region: <slug> matching a configured region, or startup fails. Matching is unchanged; the region only affects listings.

Region-filtered /scopes and /stats/scopes now list manual scopes configured
for the region and imported scopes whose MeshMapper catalogue includes the
IATA, instead of inferring membership from observed traffic. Filtered
/scopes returns string[] like the unfiltered call.

Manual scopes now require a region in config.
@MrAlders0n
MrAlders0n merged commit 2f49ffb into dev Oct 1, 2026
3 checks passed
@MrAlders0n
MrAlders0n deleted the feat/region-scoped-scopes branch October 1, 2026 02:05
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.

1 participant