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
{{ message }}
Repository navigation
Commit b743a63
Browse filesBrowse the repository at this point in the historyBrowse files
fix(objectql)!: the in-process engine refuses a projection whose every column is unknown, as it refuses an empty one (#27165)
6
+
7
+
Clause-②: no (narrowing) — `ObjectQL.find` / `findOne` refuse a `fields` list naming only columns the object does not have, which they read before as every column. Nothing is widened.
8
+
Metadata-protocol: none
9
+
10
+
<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export or type changes: the engine already refused an empty projection, and a projection that its unknown-column tolerance empties is now judged the same way. There is nothing for a migration to rewrite and no tombstone. -->
11
+
12
+
**BREAKING** accept-set narrowing at the in-process read entry (`@objectstack/objectql`).
13
+
14
+
-**Before.**`find` / `findOne` drop a requested plain column the object does not have. When that left nothing, they fell back to every column: `engine.find(object, { fields: ['nope'] })` answered every column, owner, organization and audit columns included, and the caller was not told. The REST door refuses the same request.
15
+
-**Now.** That case is an empty projection and gets the empty projection's refusal, before any driver read: `status: 400`, `code: 'VALIDATION_ERROR'`, the declaration's words (`Name at least one field`), and the message names the columns that were asked for.
16
+
-**Unchanged.** A mix of known and unknown columns still projects the known ones and drops the rest. An absent or `null``fields` still reads every column. A host whose object has no registered field map is not judged.
17
+
-**Who sees it.** A plugin, hook, flow or other in-process caller whose projection names only columns the object lacks, for example a typo or a column from another object. No in-repo caller does.
18
+
19
+
**The remedy.** Name at least one column the object has, or leave `fields` out to read every column.
fix(i18n): a tenant's rewrite of a packaged validation rule message is served as written in every locale, on the refusal and on `/meta` (#27221)
7
+
8
+
Clause-②: yes (widening)
9
+
Metadata-protocol: semantic
10
+
11
+
A package's bundle translates the rule messages that package shipped (`objects.<object>._validations.<rule>.message`). When a tenant overlaid a packaged object and reworded one of its validation rule messages, keeping the rule's name, a reader in any locale the bundle carries got the package's translation instead of the tenant's sentence. The rejected write's error and the rule served by `/meta` (and the public form) both showed it.
12
+
13
+
-**Now.** Both readers apply the bundle entry only while the served message still equals the packaged rule's message of the same name. A message that differs is the tenant's own and is served and returned as written, in every locale. Rules the tenant left alone are still translated. A `conditional` branch is matched by its own name. A rule the owning package does not declare (one an `objectExtensions` entry adds, or one the tenant added) has no packaged message to differ from and is still translated under its own name, as before. With no packaged owner (an object authored entirely at runtime), nothing changes.
14
+
-**One rule, both readers.**`/meta` (`translateObject`) and the rule evaluator use the same comparison, the one already applied to an object's `label`, `description`, embedded list views and fields. `/meta` and the refusal of the same write still show one sentence for one rule and locale.
15
+
-**`scalarOverridesPackagedBase`** (`@objectstack/spec/system`) now also accepts the key `'message'`, so the rule evaluator judges a rule message through it. Its behaviour for the existing keys is unchanged.
16
+
-**`evaluateValidationRules`'s `messages` option** (`EvaluateRulesOptions.messages`, `@objectstack/objectql`) gains an optional `packagedRule` lookup, which the engine fills from the object's packaged owner. A caller that passes its own `messages` without it keeps the previous behaviour.
docs(skills): hand-written inventory counts are deleted; the names and the source of truth stay
15
+
16
+
Clause-②: no
17
+
Metadata-protocol: none
18
+
19
+
-**Before.**`objectstack-data` counted its field types ("49") in SKILL.md and in `rules/field-types.md`, and its lifecycle events ("8") in SKILL.md and `references/data-hooks.md`; `objectstack-automation` counted its built-in node types ("20"); `objectui/README.md` counted its plugins ("18"); `objectui/guides/schema-expressions.md` counted the formula registry ("30 functions"); `objectstack-query` counted the aggregate functions ("six"). No gate reads any of those numbers against the tree, so each one goes wrong the moment the inventory moves, and a wrong count misleads the reader more than no count.
20
+
-**Now.** The numbers are gone; every enumeration that taught something (the node-type tables, the plugin names, the function table, the aggregate names) stays, and each page still points at the file or schema that is the source of truth. Deletion only: every touched file shrinks under its unchanged token ceiling.
21
+
- The same deletion in shipped READMEs and one shipped source comment: `@objectstack/spec` (a `//` comment in `src/kernel/metadata-plugin.zod.ts`, which ships), `@objectstack/metadata` (README), and the `@object-ui/*` READMEs of i18n, plugin-grid, components, fields, types, plugin-form and console. No schema, key or behaviour changes.
Copy file name to clipboardExpand all lines: content/docs/api/error-catalog.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ navTitle: Error Code Catalog
4
4
description: Complete reference for all ObjectStack error codes with causes, fixes, and retry strategies
5
5
---
6
6
7
-
ObjectStack uses a structured error system with**9 error categories** and **56 error codes reachable on the wire**. Every error includes a machine-readable code, HTTP status mapping, and retry guidance.
7
+
ObjectStack uses a structured error system of**error categories** and **56 error codes reachable on the wire**, catalogued in full below (that count is pinned by `packages/spec/src/api/error-catalog-docs.test.ts` against the wire face). Every error includes a machine-readable code, HTTP status mapping, and retry guidance.
8
8
9
9
This catalog documents the **wire face** — the codes a client can actually receive. That is not quite the
10
10
`StandardErrorCode` enum: the enum also carries in-process spellings the REST door translates at the
Copy file name to clipboardExpand all lines: content/docs/capabilities/analytics.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
2
title: Analytics — dashboards, reports and charts
3
3
navTitle: Analytics & Dashboards
4
-
description: ~20 chart families, period-over-period comparison, runtime filters, TV display pages, and four report shapes
4
+
description: Chart families, period-over-period comparison, runtime filters, TV display pages, and the report shapes
5
5
---
6
6
7
7
8
8
The executive cockpit and the ops detail report are both configured, not built. Data is live, and permissions apply inside every chart — each viewer sees only the numbers they are allowed to see.
-**Comparisons**: bar and column by stage, rep, or product line.
@@ -26,7 +26,7 @@ Dashboard extras that matter in practice:
26
26
27
27
## Reports
28
28
29
-
Four shapes — **tabular** (detail rows), **summary** (grouped totals), **matrix** (regions × quarters), and **joined** (several dataset panels) — with runtime filters and export.
29
+
The shapes — **tabular** (detail rows), **summary** (grouped totals), **matrix** (regions × quarters), and **joined** (several dataset panels) — with runtime filters and export.
30
30
31
31
> **In HotCRM**: four dashboards (executive, sales, service, CRM overview) and six reports (lead, opportunity, account, case, churn), fed by six shared datasets covering accounts, contacts, leads, opportunities, products, and cases. The executive dashboard carries quarter and owner filters plus the funnel and trend widgets described above.
Copy file name to clipboardExpand all lines: content/docs/capabilities/approvals.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: Approvals — routing, queues and audit trail
3
3
navTitle: Approvals
4
-
description: Seven ways to pick approvers, four decision modes including group sign-off, record locking, overdue escalation, and send-back-for-revision
4
+
description: Ways to pick approvers, decision modes including group sign-off, record locking, overdue escalation, and send-back-for-revision
5
5
---
6
6
7
7
8
8
Discounts, contracts, spend — anything that needs a human "yes" becomes an approval step in a flow, replacing the group-chat shoulder tap with a tracked, enforceable decision.
9
9
10
-
## Who approves — seven resolution styles
10
+
## Who approves — the resolution styles
11
11
12
12
A specific person · everyone holding a position (e.g. sales managers) · the submitter's direct manager (needs each user's manager set — see below) · a team · a department (optionally including sub-departments) · organization leadership · **a person named on the record itself** (e.g. the "regional director" field).
13
13
@@ -23,7 +23,7 @@ request opens and waits for an administrator. The details, and the fallback that
23
23
data at all, are in [Automation → Approvals](/docs/automation/approvals).
Copy file name to clipboardExpand all lines: content/docs/capabilities/automation.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Automation — processes that run themselves
3
3
navTitle: Automation — Processes That Run Themselves
4
-
description: Five trigger styles, visual flow diagrams, notifications, branching, loops, waits, and external calls — the work nobody should have to remember
4
+
description: Trigger styles, visual flow diagrams, notifications, branching, loops, waits, and external calls — the work nobody should have to remember
Copy file name to clipboardExpand all lines: content/docs/capabilities/index.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@ If you are a developer, the [Build sections](/docs/data-modeling) cover the same
12
12
## The capabilities
13
13
14
14
<Cards>
15
-
<Cardhref="/docs/capabilities/data"title="Manage Business Data"description="Objects, 40+ field types, formula and roll-up fields, relationships from lookups to hierarchies" />
16
-
<Cardhref="/docs/capabilities/views"title="Views — See Data Your Way"description="Nine lenses over the same records: table, kanban, calendar, gantt, map and more — plus saved filters and global search" />
15
+
<Cardhref="/docs/capabilities/data"title="Manage Business Data"description="Objects, field types, formula and roll-up fields, relationships from lookups to hierarchies" />
16
+
<Cardhref="/docs/capabilities/views"title="Views — See Data Your Way"description="Many lenses over the same records: table, kanban, calendar, gantt, map and more — plus saved filters and global search" />
17
17
<Cardhref="/docs/capabilities/forms"title="Forms & Data Quality"description="Wizards, conditional fields, validation on save, legal stage transitions, public web-to-lead forms" />
18
-
<Cardhref="/docs/capabilities/automation"title="Automation"description="Five trigger styles and visual flows: reminders, hand-offs, escalations, and scheduled work that runs itself" />
19
-
<Cardhref="/docs/capabilities/approvals"title="Approvals"description="Seven approver styles, four decision modes including group sign-off, locking, SLA escalation, send-back" />
20
-
<Cardhref="/docs/capabilities/permissions"title="Permissions — Who Sees What"description="Four layers from object capability to per-field visibility, five data-depth scopes, audit, and an explain API" />
21
-
<Cardhref="/docs/capabilities/analytics"title="Analytics & Dashboards"description="~20 chart families, period-over-period, runtime filters, TV display pages and reports" />
18
+
<Cardhref="/docs/capabilities/automation"title="Automation"description="Trigger styles and visual flows: reminders, hand-offs, escalations, and scheduled work that runs itself" />
19
+
<Cardhref="/docs/capabilities/approvals"title="Approvals"description="Approver styles and decision modes including group sign-off, locking, SLA escalation, send-back" />
20
+
<Cardhref="/docs/capabilities/permissions"title="Permissions — Who Sees What"description="Layers from object capability to per-field visibility, data-depth scopes, audit, and an explain API" />
21
+
<Cardhref="/docs/capabilities/analytics"title="Analytics & Dashboards"description="Chart families, period-over-period, runtime filters, TV display pages and reports" />
22
22
<Cardhref="/docs/capabilities/ai"title="AI Under Governance"description="Ask questions and get charts; AI acts under the same permissions and audit as people; bring your own agent over MCP" />
<Cardhref="/docs/capabilities/request-template"title="How to Request Features"description="A one-page template that turns business needs into configuration — hand it to your team or an AI agent" />
Copy file name to clipboardExpand all lines: content/docs/capabilities/views.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ One object can carry many named views at once — "My open deals (table)", "East
27
27
28
28
-**Global search** (`⌘K`) spans objects and understands partial matches — including **pinyin search**, so typing `zhangsan` finds 张三.
29
29
-**Filters** combine any fields with and/or logic and a full operator set (equals, contains, greater than, between, is empty…).
30
-
-**Relative dates**: "this quarter", "last month", "past 7 days", "next 30 days" — 36 built-in tokens plus custom offsets. A saved view filtered on "this quarter" rolls forward every day by itself.
30
+
-**Relative dates**: "this quarter", "last month", "past 7 days", "next 30 days" — built-in tokens plus custom offsets. A saved view filtered on "this quarter" rolls forward every day by itself.
31
31
-**Per-person scoping**: views like "My accounts" or "My team's opportunities" resolve per viewer automatically, following the permission model.
32
32
33
33
> **In HotCRM**: twelve view files cover every object — open the Opportunity object and switch between its pipeline kanban, forecast table, and close-date calendar to feel the difference lenses make.
0 commit comments