A typed main kind plus a catalog other kind was sent as only the catalog value. Method ranking then treated that catalog kind as the main kind, and the finished Rule stored no group type. This keeps the catalog kind as an other kind, and records it on the finished Rule.
Changes
A typed main kind is sent as facet.orgType=__typed__ ahead of any catalog other kinds.
The methods and templates APIs keep that marker so the catalog kind stays an other kind.
Launch counts use the catalog other kind when the main kind was typed.
How to Test
npx vitest run tests/unit/buildFacetQueryString.test.ts tests/unit/methodFacetsSchemas.test.ts tests/unit/publishedRuleAnalytics.test.ts
With a typed main kind and a catalog other kind, method order should match a group that has no main kind, and the finished Rule should store the catalog kind.
Notes
Base this on adilallo/fix/product-leftovers.
The marker is omitted from template scoring pairs, so it does not count as a facet match.
## Overview
A typed main kind plus a catalog other kind was sent as only the catalog value. Method ranking then treated that catalog kind as the main kind, and the finished Rule stored no group type. This keeps the catalog kind as an other kind, and records it on the finished Rule.
## Changes
- A typed main kind is sent as `facet.orgType=__typed__` ahead of any catalog other kinds.
- The methods and templates APIs keep that marker so the catalog kind stays an other kind.
- Launch counts use the catalog other kind when the main kind was typed.
## How to Test
1. `npx vitest run tests/unit/buildFacetQueryString.test.ts tests/unit/methodFacetsSchemas.test.ts tests/unit/publishedRuleAnalytics.test.ts`
2. With a typed main kind and a catalog other kind, method order should match a group that has no main kind, and the finished Rule should store the catalog kind.
## Notes
- Base this on `adilallo/fix/product-leftovers`.
- The marker is omitted from template scoring pairs, so it does not count as a facet match.
an.di
self-assigned this 2026-11-23 18:13:55 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Overview
A typed main kind plus a catalog other kind was sent as only the catalog value. Method ranking then treated that catalog kind as the main kind, and the finished Rule stored no group type. This keeps the catalog kind as an other kind, and records it on the finished Rule.
Changes
facet.orgType=__typed__ahead of any catalog other kinds.How to Test
npx vitest run tests/unit/buildFacetQueryString.test.ts tests/unit/methodFacetsSchemas.test.ts tests/unit/publishedRuleAnalytics.test.tsNotes
adilallo/fix/product-leftovers.