{"record":{"id":"39197fe5fa9ee51c","repo":"toeverything/AFFiNE","slug":"unsupported-system-filter-params-key","errorCode":null,"errorMessage":"Unsupported system filter: ${params.key}","messagePattern":"Unsupported system filter: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/frontend/core/src/modules/collection-rules/impls/filters/system.ts","lineNumber":13,"sourceCode":"import { Service } from '@toeverything/infra';\nimport { type Observable } from 'rxjs';\n\nimport { FilterProvider } from '../../provider';\nimport type { FilterParams } from '../../types';\n\nexport class SystemFilterProvider extends Service implements FilterProvider {\n  filter$(params: FilterParams): Observable<Set<string>> {\n    const provider = this.framework.getOptional(\n      FilterProvider('system:' + params.key)\n    );\n    if (!provider) {\n      throw new Error('Unsupported system filter: ' + params.key);\n    }\n    return provider.filter$(params);\n  }\n}\n","sourceCodeStart":1,"sourceCodeEnd":18,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/packages/frontend/core/src/modules/collection-rules/impls/filters/system.ts#L1-L18","documentation":"SystemFilterProvider.filter$ throws when no FilterProvider is registered under 'system:<key>', meaning the rule references a system filter key the current build does not implement (renamed or removed filter).","triggerScenarios":"Thrown in the system filter dispatcher when no filter provider is registered for the given system filter key.","commonSituations":"Occurs when a collection references a system filter key that does not exist in this build, often after downgrades or stale configs; remove the unrecognized filter from the collection.","solutions":["Use a supported system filter key.","Remove or replace the unknown system filter."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b4c8548c09da21b2898443559a5b846f0ccf5dd8","analyzedAt":"2026-08-18T21:16:52.546Z","contentChangedAt":"2026-08-18T21:16:52.546Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}