@malloy-publisher/app 0.17.1 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/api-doc.yaml +43 -5
  2. package/package.json +2 -2
package/dist/api-doc.yaml CHANGED
@@ -4973,7 +4973,10 @@ components:
4973
4973
  another source), `destination_missing` (`storage=` names a
4974
4974
  destination the environment does not configure),
4975
4975
  `connection_cannot_hold_table` (database, on a connection whose
4976
- type creates no tables), `materialization_off` (a `#(materialize)`
4976
+ type creates no tables), `types_unrecorded` (database, bound, but
4977
+ its manifest entry records no column types, neither `schema` nor
4978
+ `nativeSchema`, so a change since the build cannot be ruled out;
4979
+ rebuild it), `materialization_off` (a `#(materialize)`
4977
4980
  source, which only the served copy reads, and the served copy is
4978
4981
  off: `PUBLISHER_MATERIALIZE`, and for `storage=`
4979
4982
  `PERSIST_STORAGE_MODE`), `served_copy` (a source the served copy
@@ -4999,6 +5002,17 @@ components:
4999
5002
  while a served copy has yet to compile. Read from the same compile
5000
5003
  of record as the `served-copy-not-served` warnings, never by
5001
5004
  running a query.
5005
+ servedCopyPending:
5006
+ type: boolean
5007
+ description: >-
5008
+ Present, and always `true`, while some model that holds this source,
5009
+ which its served copy reads (`#(materialize)` or `#@ persist`), has
5010
+ yet to compile its served copy over the tables bound now. A bind
5011
+ returns before that compile, so the verdict carries no served-copy
5012
+ judgement yet: it may read `serves` for a table the compile will
5013
+ leave unread. A host must re-read the verdict while it is present;
5014
+ it is absent once every such model's copy is current, and then
5015
+ `notServedIn` and a `served_copy` reason are final for the bind.
5002
5016
  message:
5003
5017
  type: string
5004
5018
  description: What the verdict means for this source, in a sentence.
@@ -11751,6 +11765,24 @@ components:
11751
11765
  content address): a stored upstream is stacked on in its
11752
11766
  destination, and never rendered into warehouse SQL. Optional and
11753
11767
  additive: a reference without it still serves a database upstream.
11768
+ nativeSchema:
11769
+ type: array
11770
+ description: >-
11771
+ For a database upstream (no `storageDestinationName`): the
11772
+ `nativeSchema` the upstream's build reported on its manifest
11773
+ entry, sent back as it came. Before a build reads the referenced
11774
+ table in place of its source, it reads the table's columns from
11775
+ the warehouse and compares each with this type (case and spacing
11776
+ aside). If a column was retyped or dropped since, or cannot be
11777
+ read, a strict build is refused and any other build recomputes
11778
+ the upstream from its definition. Without it nothing can be
11779
+ checked: a strict build reads the table unchecked, with a warning
11780
+ and a count (`publisher_materialization_upstream_recompute_total`,
11781
+ `reason="reference_types_unrecorded"`), and any other build
11782
+ recomputes the upstream. Ignored for a `storage=` upstream: omit
11783
+ it there. Optional and additive.
11784
+ items:
11785
+ $ref: "#/components/schemas/Column"
11754
11786
 
11755
11787
  BuildInstruction:
11756
11788
  type: object
@@ -12281,8 +12313,12 @@ components:
12281
12313
  handed by reference; for a database build, an upstream that
12282
12314
  landed in a `storage=` destination; for a `storage=` build, a
12283
12315
  source that reaches the warehouse through a non-persisted source,
12284
- or whose shape does not compile in the destination.
12285
- `upstreamRecomputeReason` says which. Such a table reflects the
12316
+ or whose shape does not compile in the destination; on the
12317
+ database tier, an upstream whose table holds other columns than
12318
+ its build recorded (retyped or dropped since), could not be read,
12319
+ or whose build recorded no column types; and always, for a
12320
+ persisted view or named query, which builds from its source's
12321
+ definition. `upstreamRecomputeReason` says which. Such a table reflects the
12286
12322
  warehouse at THIS build's time rather than the upstream's
12287
12323
  snapshot, so the two can disagree when their refresh cadences
12288
12324
  differ.
@@ -12292,8 +12328,10 @@ components:
12292
12328
  way to build and no choice to report.
12293
12329
 
12294
12330
  A database rollup reports what its build actually read: `reused`
12295
- only when it built from its base's materialized table, and absent
12296
- when it built from the warehouse, even over a persisted base. Before
12331
+ only when it built from its base's materialized table, `recomputed`
12332
+ when it could not because that table holds other columns than its
12333
+ build recorded, could not be read, or recorded no column types,
12334
+ and absent when it built from the warehouse for any other reason. Before
12297
12335
  0.15.0 every rollup over a persisted base reported `reused`. A
12298
12336
  `storage=` rollup reports `reused` only when it stacked on a stored
12299
12337
  table.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/app",
3
3
  "description": "Malloy Publisher Console (the built-in web UI)",
4
- "version": "0.17.1",
4
+ "version": "0.17.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",
@@ -42,7 +42,7 @@
42
42
  "test:playwright:headed": "bunx playwright test --config=playwright.config.ts --headed"
43
43
  },
44
44
  "dependencies": {
45
- "@malloy-publisher/sdk": "^0.17.1",
45
+ "@malloy-publisher/sdk": "^0.17.2",
46
46
  "@modelcontextprotocol/ext-apps": "1.7.5",
47
47
  "@mui/icons-material": "^7.0.2",
48
48
  "@mui/material": "^7.0.2",