{"record":{"id":"c9dc13c40310c063","repo":"toeverything/AFFiNE","slug":"unsupported-property-type","errorCode":null,"errorMessage":"Unsupported property type","messagePattern":"Unsupported property type","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/frontend/core/src/modules/collection-rules/impls/group-by/property.ts","lineNumber":35,"sourceCode":"  }\n\n  groupBy$(\n    items$: Observable<Set<string>>,\n    params: GroupByParams\n  ): Observable<Map<string, Set<string>>> {\n    const property$ = this.workspacePropertyService.propertyInfo$(params.key);\n\n    return property$.pipe(\n      switchMap(property => {\n        if (!property) {\n          throw new Error('Unknown property');\n        }\n        const type = property.type;\n        const provider = this.framework.getOptional(\n          GroupByProvider('property:' + type)\n        );\n        if (!provider) {\n          throw new Error('Unsupported property type');\n        }\n        return provider.groupBy$(items$, params);\n      })\n    );\n  }\n}\n","sourceCodeStart":17,"sourceCodeEnd":42,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/packages/frontend/core/src/modules/collection-rules/impls/group-by/property.ts#L17-L42","documentation":"A provider-resolution guard in the property group-by flow: the property exists and its type was resolved, but no GroupByProvider('property:' + type) is registered in the framework for that type. It fires when grouping by a property whose type has no grouping implementation — a gap between schema types and registered group-by providers; the faulting input is the property type derived from params.key.","triggerScenarios":"Thrown in the group-by property dispatcher when no group-by provider is registered for the property's type.","commonSituations":"Occurs when grouping by a property type without a registered group-by provider; group by a supported property type instead.","solutions":["Use a property type supported by group-by.","Add a group-by implementation for this type."],"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-14T00:17:10.932Z"}