vikingowl a2dffcb112 fix(discovery): sort source_contributions by rank on read
MergePendingSources re-aggregates the jsonb array with
ORDER BY source_name for DB determinism, but the admin UI treats
index 0 as "Rang 1 = winning source." Legacy auto-merged rows were
therefore surfacing mittelalterkalender (alphabetically first) as
Rang 1 instead of the actual rank-1 source mittelaltermarkt_online.

- Export crawler.SourceRank (was unexported rankOf) so other packages
  in the discovery domain can reference the canonical rank map.
- scanDiscoveredMarket: sort.SliceStable SourceContributions by rank
  after unmarshal. Every read path now sees contributions in rank
  order regardless of how they were persisted; legacy rows
  self-correct on next read, no migration needed.
2026-04-24 13:38:23 +02:00
2026-02-21 07:10:30 +01:00
Description
No description provided
1.7 MiB
Languages
Go 60.3%
Svelte 20.3%
Dart 11.1%
TypeScript 5%
PLpgSQL 1.1%
Other 2.1%