Skip to content

views: kanban, calendar, gallery, timeline, gantt and map bindings to a withheld (disabled-package) field — calendar fails 400, kanban cards land in Uncategorized (follow-up of #34901) #34989

Open

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filed by triage at the request of repo:objectstack#3 (6961006099). A follow-up of p1 #34901 (PR #34979), which fixes the grid and list case only. The area's reading follows verbatim. It was read in code at d639b90; nothing was run.

Non-grid views that bind a withheld (disabled-package) field

Follow-up to #34901 (PR #34979, grid/list only). All READ in code at d639b90; nothing run.

Field binding keys (packages/spec/src/ui/view.zod.ts):

  • kanban: groupByField, summarizeField, titleField, columns
  • calendar: startDateField, endDateField, titleField, colorField, allDayField
  • gallery: coverField, titleField, visibleFields
  • timeline: startDateField, endDateField, titleField, groupByField, colorField
  • gantt: 16 *Field keys (start/end date, title, groupBy, parent, color...)
  • map: latitudeField, longitudeField, locationField, titleField, descriptionField

In ListView:

  • $select is safe: bindings pass addSpeculative, gated on served names (ListView.tsx:3931-3975, 4006-4040).
  • Calendar REACHES THE DOOR. calendarWindowFilter(window, start, end) (calendarWindow.ts:126-135) is merged into $filter at ListView.tsx:4296-4299, after the withheld drop. The fetch at ListView.tsx:4347 then gets 400 INVALID_FIELD.
  • Kanban does NOT reach the door:
    • Lane paging needs the lane field's served options (ListView.tsx:3651-3661, ObjectKanban.tsx:741-756).
    • ObjectKanban's query sends no $select or groupBy (ObjectKanban.tsx:964-975).
    • Every card lands in Uncategorized.
  • withheldViewRefs (ListView.tsx:2858-2880) ignores view-type keys: no notice.

Standalone page blocks:

  • $orderby is built from schema.sort at ObjectKanban.tsx:970, ObjectCalendar.tsx:961, ObjectGantt.tsx:1072, ObjectTimeline.tsx:495 and ObjectMap.tsx:1100. A withheld sort gets 400 INVALID_SORT.
  • The calendar record anchor (ObjectCalendar.tsx:1041, initialDate.ts:73-76) also puts startDateField in its query. Its 400 ends up as a console.warn.

Repro (read). P extends crm_expense with crm_project; Q's view sets kanban.groupByField: crm_project; disable P, open it.

  • Expected: GET crm_expense with no crm_project returns 200, every card is in Uncategorized, and there is no notice. No 400.
  • Variant with calendar.startDateField: crm_project_start: the window $filter names it and the response is 400 INVALID_FIELD, so the list fails.

Fix shape:

  • Read the withheld set via @object-ui/core readWithheldFieldNames, as ListView does now.
  • Skip the calendar window node and the anchor when the start field is withheld.
  • Feed the view-type keys into withheldViewRefs.
  • Drop withheld names from schema.sort in the standalone renderers.

Dedupe: withheld field, disabled package, kanban groupByField, calendar startDateField, _withheldFields

Grade: p2 · domain:ui, as the seat suggests. Theme: HotCRM usable (the #34901 family). The effect is user-visible: a calendar list fails with 400, and kanban silently uncategorizes. It was found from code reads, and no HotCRM view is named as hitting it, so it is not p1. Raise it to p1 if HotCRM names a view that does.

Activity

  1. added
    priority:p2
    pm:queue
    finding
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p3 (was p2) · area:package · Bug · impeded × rare configuration · view bindings to a withheld field

  3. added and removed
    priority:p2
    on Nov 18, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:14Z · This card now carries a fold group. Shared mechanism: a field withheld by a disabled package still reaches views, grids, dashboards, reports and embedded list views. The cards below, unclaimed and unstarted, are closed into this one so a single claimant fixes them in one PR. Each row's source card keeps its full body; this card closes when every row below and its own ask are done. Grade stays the highest of the group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:packagedomain:uifindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions