You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dev executing objectui#10334 (PR objectui#10338) surfaced this. It was filed by the domain:spec @ objectui execution seat, session session_01877XiBYSaRCk2CU7cMSg3S. ⛔ It has not been graded. domain:spec and priority:p2 are the seat's proposal, and triage may regrade them.
Class b: the spec's default is not applied at the read site
Spec.@objectstack/spec declares DashboardSchema.dateRange.defaultRange as z.enum(DATE_RANGE_DEFAULT_RANGES).default('this_month'). This holds on the installed 17.4.0 and on objectstack main. So the parsed dashboard document says this_month when an author writes dateRange: { field: 'created_at' } with no defaultRange.
objectui. The mirror deliberately authors no default (stripImportedDefaults, batch [WIP] Fix action run issue in CI/CD pipeline #90). resolveDashboardFilterDefs in @object-ui/core (utils/dashboard-filters) sets defaultValue to undefined when the preset is absent. ⇒ The dashboard renders unfiltered, while the platform's parse of the same document says this_month.
Consistent control.allowCustomRange also has a spec default (true), and objectui reads it as !== false, so it already behaves as though defaulted.
Direction (to be decided; the protocol wins where it declares)
(i) The read site applies the spec's default: when dateRange is authored and defaultRange is absent, resolve it to this_month. This is a renderer behaviour change (Clause-② yes, runtime). Take the default from the spec, for example by parsing the element through the spec schema. ⛔ Do not hand-copy the string.
(ii) Leave it unfiltered and ask the spec side to drop .default('this_month'). This would be "the protocol is wrong ⇒ a spec card goes first", per ordering note 5617614225.
The seat reads it as (i): the spec is explicit, and the renderer is the one that diverges. Measure authored dateRange usage without defaultRange in examples/ / content/ / apps/ first, because (i) changes what those dashboards show.
The dev executing objectui#10334 (PR objectui#10338) surfaced this. It was filed by the
domain:spec@ objectui execution seat, sessionsession_01877XiBYSaRCk2CU7cMSg3S. ⛔ It has not been graded.domain:specandpriority:p2are the seat's proposal, and triage may regrade them.Class b: the spec's default is not applied at the read site
@objectstack/specdeclaresDashboardSchema.dateRange.defaultRangeasz.enum(DATE_RANGE_DEFAULT_RANGES).default('this_month'). This holds on the installed 17.4.0 and on objectstackmain. So the parsed dashboard document says this_month when an author writesdateRange: { field: 'created_at' }with nodefaultRange.stripImportedDefaults, batch [WIP] Fix action run issue in CI/CD pipeline #90).resolveDashboardFilterDefsin@object-ui/core(utils/dashboard-filters) setsdefaultValuetoundefinedwhen the preset is absent. ⇒ The dashboard renders unfiltered, while the platform's parse of the same document saysthis_month.allowCustomRangealso has a spec default (true), and objectui reads it as!== false, so it already behaves as though defaulted.Seam:
spec:DashboardSchema.dateRange.defaultRange(.default('this_month')) →runtime:resolveDashboardFilterDefs(@object-ui/core) →renderer:DashboardFilterBar.Direction (to be decided; the protocol wins where it declares)
dateRangeis authored anddefaultRangeis absent, resolve it tothis_month. This is a renderer behaviour change (Clause-② yes, runtime). Take the default from the spec, for example by parsing the element through the spec schema. ⛔ Do not hand-copy the string..default('this_month'). This would be "the protocol is wrong ⇒ a spec card goes first", per ordering note 5617614225.The seat reads it as (i): the spec is explicit, and the renderer is the one that diverges. Measure authored
dateRangeusage withoutdefaultRangeinexamples//content//apps/first, because (i) changes what those dashboards show.