Skip to content

v9.9.0

Latest

Choose a tag to compare

@Ahoo-Wang Ahoo-Wang released this 12 Oct 08:58
a4d0da3

Highlights

  • Datasets: query a warehouse table through Wow's admission and governance. A dataset is a declared, table-like record set, such as an analyst's ClickHouse wide table. It is queried, scoped, masked and audited like an aggregate (#4116, #4120), served over GET /dataset/{context}/{dataset}/schema and POST …/{count|list|paged|cursor|single|aggregation} from a new ClickHouse backend (wow-clickhouse, #4122, #4127), and takes part in ABAC through declared tag columns (#4133). Datasets join, change and leave at run time (#4153); platform-level datasets and named ClickHouse sources serve a whole warehouse (#4156).
  • A dataset registry and an analytics server. wow-dataset-registry-* drafts a dataset from a table, reviews each field's sensitivity, and publishes or retires it (#4155). wow-analytics-server is its own gateway over CoSec tokens, with a console that analyses any published dataset; it ships as a Docker image (#4182, #4183, #4185). wow-cosec reads the principal's ABAC tags from CoSec (#4177).
  • Aggregation windows computed by the server. A derived metric can read TOTAL, RUNNING, RANK and PREVIOUS (period over period, year over year) over every group, not just the rows returned (#4169, #4170). MongoDB and ClickHouse compute the first three natively (#4173, #4179); the descriptor says which ones a storage offers (analysis.windows).
  • Group expanded elements by a field of their record. An aggregation group takes scope: ROOT, so the events of a stream can be counted per day of the stream, on MongoDB and Elasticsearch (#4207, #4213). The descriptor says so (analysis.rootGroups).
  • The view engine derives definitions from the dataset directory and keeps them in step with it (#4159, #4160, #4163), and stores a tenant's wording over a dataset in the view store (#4205, #4206). New: the kanban (#4113), the previous period and the same period last year (#4194, #4202), the top N within each value of a dimension (#4196), running lines computed by Wow (#4175), dimensions over a record's own fields while elements are expanded (#4217), stepping through records from the detail (#4152), and ⌘S / 「/」 anywhere on the workbench (#4146).

Important

Existing REST routes, route ids, configuration, metric names and tags, header keys, storage formats and wire formats are those of 9.8.0, and 9.8.x and 9.9.0 nodes can run side by side. Everything new is additive: the dataset routes, the wow.query.datasets and wow.query.clickhouse.* properties, and the descriptor's analysis.windows and analysis.rootGroups. The breaking changes below are signatures of SPI and internal classes; applications that use only the starter and the public entry APIs recompile against 9.9.0 without source changes.

Breaking

Policy. Every breaking change in this release is a signature outside the compatibility scope of docs/compat-debt.md (@WowSpi, internal classes, or a constructor that gains a defaulted parameter), so there are no deprecation cycles or binary-only shims.

TypeScript

@ahoo-wang/wow-client

  • Derived windows (#4172). DerivedExpressionType and DerivedExpression gain the window node types. Affects: code that switches exhaustively over a derived expression's type. Migrate: handle or default the new types.

@ahoo-wang/wow-view-engine

  • RecordLayout gains 'kanban' (#4113). Affects: code that switches exhaustively over a record layout. Migrate: handle 'kanban' or default it.
  • Derived lines (#4194). DERIVED_KINDS and DerivedKind gain the two period comparisons, DerivedGap gains 'unsupported', MarkWords gains an optional changeFrom, and AnalysisEditorController gains windows. Affects: exhaustive switches over these unions, and hosts that implement AnalysisEditorController themselves. Migrate: handle the new members.
  • ANALYSIS_AUTO_RUN_MEMBERS gains 'top' (#4196). Affects: code that lists the members itself. Migrate: none beyond an exhaustive switch.
  • AnalysisScope gains rootAggregations (#4217). Affects: code that builds an AnalysisScope by hand rather than with analysisScope(). Migrate: pass new Map().
  • Message wording (#4137, #4168). label.write.unknown and runtime.query.forbidden read differently; the keys are unchanged. Affects: hosts that override or assert these messages.

Kotlin / JVM

wow-query

  • The dataset query model (#4116, #4120). QueryModelSchema(…, profile), QuerySchemaCatalog(…, datasets), QueryBackendStorages(…, datasetFactory, datasets), SimpleQueryBackendProvider(…, dataset) and QueryModelCompiler.of(…, datasets) gain a trailing defaulted parameter. QueryModelProfile.identityField, payloadField, eventTimeField and systemField() are nullable on the base class (the snapshot and event-stream profiles still return non-null). QueryModelProfile.requiredScope and systemField() are abstract on the sealed class, and QueryModelProfile.of returns BuiltInQueryModelProfile. The QueryModelSchema.profile extension is now a member. Affects: code that builds query backends, schema providers or the Catalog by hand, or reads a profile's fields through the base class. Migrate: recompile; handle null where you read a profile through QueryModelProfile; remove import me.ahoo.wow.query.schema.profile.
  • Aggregation windows and root groups (#4169, #4207). AnalysisDescriptor(…, windows, rootGroups) and AggregationSupport(…, windows, rootGroups) gain trailing defaulted parameters; AggregationGroup.Terms, .Histogram, .DateHistogram and .DatePart gain a trailing scope, and so do the terms, histogram, dateHistogram and datePart functions of AggregationQueryDsl. Affects: Java callers that pass every argument, and binaries compiled against 9.8. Migrate: recompile; Java callers add the new argument (null for scope).
  • A ROOT group must lead the sort (#4207). With elements, an AggregationQuery whose effective sort puts a scope: ROOT group after an element group is refused on construction (groups with a ROOT scope must sort before the element groups.). This is new syntax, so no existing query is affected.

wow-spring-boot-starter

  • Dataset serving (#4127). QueryAutoConfiguration.querySchemaCatalog(…) takes the datasets and the dataset backend factory, and QueryProperties' constructor gains datasets. Affects: code that calls them directly. Migrate: recompile against the new signatures.

wow-tck

  • SnapshotQueryBackendSpec gains elementRootGroups (default true) and two root-group cases, and its saveAggregationStates and aggregationStates are protected (#4207, #4213). Affects: a backend that runs the spec and cannot group elements by a root field. Migrate: override elementRootGroups = false and declare AggregationSupport.rootGroups = SupportMode.NONE.

Server behaviour

None. Every existing route, route id and wire format is unchanged. The new dataset routes, the descriptor's analysis.windows and analysis.rootGroups, and the query's scope and window nodes are additive. In a mixed 9.8 / 9.9 cluster, a 9.8 node answers a query that uses scope: ROOT or a window node with a validation error, and its descriptor offers neither, so a client that reads the descriptor (wow-client, the view engine) sends them only to a 9.9 node.

Pre-release changes

Signatures added after 9.8.0 and changed again before this release: QueryDatasetScope and QuerySchemaCatalog's datasets (#4133, #4153), the ClickHouse dataset storage bindings (#4156), the protected keepDefinitionsIn of the engine's resources, which now takes a registrar (#4160), and DatasetResources' constructor, which gains onWordingError (#4206).

Labelled by the public-surface check for additive or documentation-only changes, not breaking: #4128, #4149, #4155, #4159, #4161, #4163, #4165, #4185.

Behaviour changes

  • An element-scope rejection says how to reach the field (#4124): Field [x] requires its declared element scope: reach it through ELEMENT_MATCH in a filter, or expand it with the aggregation's elements. Act: nothing, unless you match on the old text.
  • A command wait that runs out of time says what it waited for (#4123): Waiting for stage [PROJECTED] timed out after 10000ms. in place of Reactor's internal text. Act: nothing, unless you match on the old text.
  • ABAC's missing-tag message (#4133) reads Query requires the principal's ABAC tags. in place of Snapshot query requires…; the error code is unchanged.
  • Storage query backends register before the query fallbacks (#4164). An application on MongoDB or Elasticsearch whose auto-configuration order happened to register the unavailable fallback first now gets its storage backend. Act: nothing.

Fixes

Deprecations

None.

TypeScript packages

Install or upgrade with a ~9.9 range: a minor release may break (see version ranges). Every package in PUBLISHED (.github/scripts/publish-npm.mjs) ships together at 9.9.0; the packages peer on each other with ~, so upgrade them together. The fetcher peer ranges are unchanged.

@ahoo-wang/wow-client

  • DatasetQueryClient for the dataset routes (#4128) and DatasetDirectoryClient for the directory (#4160).
  • Derived windows (TOTAL, RUNNING, RANK, PREVIOUS) and analysis.windows (#4172); PREVIOUS_UNSHIFTABLE in QueryErrorCodes (#4170).
  • AggregationGroupScope, a group's scope and the builders' scope option, analysis.rootGroups, and the client-side admission of both root-group rules (#4207).

@ahoo-wang/wow-react

No API changes; tests cover the single and list hooks against a server (#4125).

@ahoo-wang/wow-generator

The open P2 items of the 9.2.0 review (#4109). Route ids are unchanged.

@ahoo-wang/wow-view-engine

  • Datasets: defineDataset, ViewEngine.register / unregister, DatasetResources, DatasetCatalog with overrides and wordings, and the view manager's 「措辞」 tab (#4159, #4160, #4163, #4206).
  • Analyses: running lines computed by Wow (D87, #4175), the previous period and the same period last year (D88, #4194), a metric card against last year (D90, #4202), the top N within each value of a dimension (D89, #4196), and dimensions over a record's own fields while elements are expanded (D92, #4217).
  • Records and boards: the kanban (D83, #4113), stepping through records from the detail (#4152), 设为共享/设为个人 and 复制链接 (#4154), a board's filters in the address (#4157), 放进仪表盘 from the title bar (#4158), inRows layouts (#4131), saving or leaving a personal view with unsaved edits (#4139), ⌘S and 「/」 (#4146), and a yes-or-no field naming its two answers (#4171).
  • memorySource (/testing) computes windows and root groups as Wow does.

@ahoo-wang/wow-view-store

WowDatasetWordings: a tenant's wording over a dataset, stored in the view store (#4205).

JVM (Maven)

  • New modules: wow-clickhouse (#4122, #4127); wow-dataset-registry-api, -domain and -starter (#4155, #4185); the wow-analytics-server distribution and image (#4182, #4185).
  • Dependencies: Ahoo platform BOMs 3.3.0 (#4143); CoSec 6.0.0 as compileOnly in wow-cosec (#4177).
  • Documentation: the documentation restructured by reader (#4104, #4111, #4114, #4115), the complete V8 to V9 migration path (#4117, #4118), the workbench user guide (#4130), the dataset and analytics guides (#4127, #4156, #4185), and the aggregation guide's windows and root groups (#4169, #4170, #4207).

Full changelog

v9.8.0...v9.9.0