fix(switch-compat): only suggest catalog-confirmed Flexoptix parts (fx_specifications)

~107 parts were misattributed to the Flexoptix vendor but do not exist in the
live Flexoptix catalog (FX uses dot-SKUs like S.1606.28.KD; these use dash-SKUs
like FOT-AX-200G). They polluted 'BEI FLEXOPTIX BESTELLEN' with non-orderable
phantom parts carrying name-guessed specs. Now require fx_specifications IS NOT
NULL — every suggestion is confirmed in Flexoptix's API with authoritative
datasheet specs. CX 10000-48Y6C: 801 -> 630 suggestions, all catalog-confirmed,
0 physically impossible, 0 phantoms.
This commit is contained in:
Rene Fichtmueller 2026-06-11 05:36:44 +00:00
parent 436f62bc2b
commit 7f13144c53

View File

@ -384,6 +384,10 @@ export async function getFlexoptixSuggestions(switchId: string) {
LIMIT 1
) so ON true
WHERE LOWER(v.name) = 'flexoptix'
-- Only parts confirmed in Flexoptix's live API catalog (have authoritative
-- datasheet specs). Excludes phantom/misattributed parts not actually
-- orderable from Flexoptix, and parts with no source-of-truth specs.
AND t.fx_specifications IS NOT NULL
AND t.speed_gbps IS NOT NULL AND t.speed_gbps > 0
AND EXISTS (
SELECT 1 FROM switch_ports sp