Wip granularities rewrite #84
semantic-layer.yml
on: push
📦 Dependencies
22s
🐋 Setup Docker
11s
🔬 Lint & Format
26s
🛡️ Audit
9s
🈸 Spellcheck
22s
ʦ Typecheck
23s
🚀 Build & release
0s
Annotations
17 errors
ʦ Typecheck:
src/__tests__/clone.test.ts#L30
Property 'withGranularity' does not exist on type 'Model<undefined, "user", MemberNameToType & { user_id: "number"; } & { first_name: "string"; } & { last_name: "string"; } & { datetime: "datetime"; } & DimensionWithTemporalGranularity<"datetime", "datetime">, MemberNameToType & { ...; }, "datetime">'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L68
'models.customer' is possibly 'undefined'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L68
Argument of type 'string' is not assignable to parameter of type 'never'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L68
'models.invoice' is possibly 'undefined'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L69
Argument of type 'string' is not assignable to parameter of type 'never'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L76
'models.employee' is possibly 'undefined'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L76
Argument of type 'string' is not assignable to parameter of type 'never'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L76
'models.invoice' is possibly 'undefined'.
|
ʦ Typecheck:
src/__tests__/clone.test.ts#L77
Argument of type 'string' is not assignable to parameter of type 'never'.
|
ʦ Typecheck:
src/__tests__/granularity.test.ts#L65
Property 'withGranularity' does not exist on type 'Model<undefined, "customers", MemberNameToType & { customer_id: "number"; } & { first_name: "string"; } & { last_name: "string"; } & { full_name: "string"; } & { company: "string"; } & ... 7 more ... & { ...; }, MemberNameToType, never>'.
|
src/__tests__/clone.test.ts:
src/__tests__/clone.test.ts#L30
TypeError: model(...).withName(...).fromTable(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withMetric(...).withGranularity is not a function
❯ src/__tests__/clone.test.ts:30:4
|
src/__tests__/granularity.test.ts:
src/__tests__/granularity.test.ts#L65
TypeError: model(...).withName(...).fromTable(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withDimension(...).withGranularity is not a function
❯ src/__tests__/granularity.test.ts:65:4
|
src/__tests__/helpers.test.ts:
src/lib/repository.ts#L2311
Error: Invariant failed: Dimension datetime.year not found
❯ Proxy.invariant node_modules/tiny-invariant/dist/esm/tiny-invariant.js:12:11
❯ Repository.getDimension src/lib/repository.ts:2311:34
❯ src/lib/custom-granularity.ts:1539:21
❯ CustomGranularityElement.getConfig src/lib/custom-granularity.ts:1536:74
❯ map src/lib/query-builder.ts:140:7
❯ QueryBuilder.getGranularityConfigs src/lib/query-builder.ts:139:36
❯ new QueryBuilder src/lib/query-builder.ts:102:35
❯ Repository.build src/lib/repository.ts:2433:12
|
src/__tests__/index.test.ts:
src/lib/repository.ts#L2311
Error: Invariant failed: Dimension invoice_date.year not found
❯ Proxy.invariant node_modules/tiny-invariant/dist/esm/tiny-invariant.js:12:11
❯ Repository.getDimension src/lib/repository.ts:2311:34
❯ src/lib/custom-granularity.ts:1539:21
❯ CustomGranularityElement.getConfig src/lib/custom-granularity.ts:1536:74
❯ map src/lib/query-builder.ts:140:7
❯ QueryBuilder.getGranularityConfigs src/lib/query-builder.ts:139:36
❯ new QueryBuilder src/lib/query-builder.ts:102:35
❯ Repository.build src/lib/repository.ts:2433:12
|
src/__tests__/dialects/mssql.test.ts:
src/lib/repository.ts#L2311
Error: Invariant failed: Dimension invoice_date.year not found
❯ Proxy.invariant node_modules/tiny-invariant/dist/esm/tiny-invariant.js:12:11
❯ Repository.getDimension src/lib/repository.ts:2311:34
❯ src/lib/custom-granularity.ts:1539:21
❯ CustomGranularityElement.getConfig src/lib/custom-granularity.ts:1536:74
❯ map src/lib/query-builder.ts:140:7
❯ QueryBuilder.getGranularityConfigs src/lib/query-builder.ts:139:36
❯ new QueryBuilder src/lib/query-builder.ts:102:35
❯ Repository.build src/lib/repository.ts:2433:12
|
⚡ Tests
Process completed with exit code 1.
|
🔬 Lint & Format
Process completed with exit code 1.
|