Capability negotiation: server vs client operations
The data source declares which operations it performs on the server: sort, filter (per filter type and operator), quick search, grouping, aggregation, pivot and distinct values. The grid enables, disables or runs each operation client-side over loaded rows accordingly, and exposes the resolved plan. This makes behaviour predictable and avoids silently wrong results.
Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Capabilities are sort: true, filter.text: ['contains','equals'], group: false. A plan table below the grid lists each operation as 'server', 'client' or 'disabled'.
Expected behavior
Unchecking 'sort' makes column headers non-sortable under the 'disable' policy. Under 'clientOnLoaded', headers sort only the cached rows and show a warning badge. Under 'error', clicking a header throws a dev error. The plan table updates live.
Planned API surface
remoteSource.capabilitiescapabilities.sortcapabilities.filter.{type}.operatorscapabilities.groupcapabilities.aggregate.functionsoption: unsupportedOperationPolicy: 'disable'|'clientOnLoaded'|'error'api.getCapabilityPlan()event: capabilityPlanResolvedAcceptance criteria
- Every operation in the plan resolves to exactly one of server, client or disabled. (pending)
- Operations not declared default to 'disabled'. (pending)
- Disabled UI affordances show a tooltip naming the missing capability. (pending)
- In clientOnLoaded mode, a persistent indicator states that results cover loaded rows only. (pending)
- Async capability discovery blocks the first data request until it resolves, or until a timeout falls back to the declared defaults. (pending)