{"record":{"id":"4ba89180643754b4","repo":"toeverything/AFFiNE","slug":"unsupported-method-params-method","errorCode":null,"errorMessage":"Unsupported method: ${params.method}","messagePattern":"Unsupported method: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/frontend/core/src/modules/collection-rules/impls/filters/checkbox.ts","lineNumber":45,"sourceCode":"          }\n          return match;\n        })\n      );\n    }\n    if (method === 'is-not') {\n      return this.docsService.propertyValues$('custom:' + params.key).pipe(\n        map(o => {\n          const match = new Set<string>();\n          for (const [id, value] of o) {\n            if ((value === 'true' ? 'true' : 'false') !== params.value) {\n              match.add(id);\n            }\n          }\n          return match;\n        })\n      );\n    }\n    throw new Error(`Unsupported method: ${params.method}`);\n  }\n}\n","sourceCodeStart":27,"sourceCodeEnd":48,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/packages/frontend/core/src/modules/collection-rules/impls/filters/checkbox.ts#L27-L48","documentation":"An exhaustive-switch fallback in the checkbox filter provider: filter$ only implements the 'is' and 'is-not' methods over the boolean custom property. It fires when a collection rule reaches this provider with any other method name, indicating a rule payload with a method this filter type does not support; the interpolated value is the unsupported method string from params.method.","triggerScenarios":"Thrown in the checkbox property filter when the filter method is neither 'is' nor 'is-not'.","commonSituations":"Occurs when a collection filter on a checkbox property uses an unknown comparison method, typically from stale or malformed filter config; re-create the filter with a supported method (is / is-not).","solutions":["Use one of the filter methods supported by the checkbox filter (e.g. is).","Update the filter definition to a supported method."],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}