Skip to content

Wip granularities rewrite #84

Wip granularities rewrite

Wip granularities rewrite #84

Triggered via push August 6, 2024 21:57
Status Failure
Total duration 1m 10s
Artifacts
📦 Dependencies
22s
📦 Dependencies
🐋 Setup Docker
11s
🐋 Setup Docker
🔬 Lint & Format
26s
🔬 Lint & Format
🛡️ Audit
9s
🛡️ Audit
🈸 Spellcheck
22s
🈸 Spellcheck
ʦ Typecheck
23s
ʦ Typecheck
⚡ Tests
25s
⚡ Tests
🚀 Build & release
0s
🚀 Build & release
Fit to window
Zoom out
Zoom in

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.