Skip to content

Always require slug for model entities #610

Always require slug for model entities

Always require slug for model entities #610

Triggered via pull request February 13, 2025 14:11
Status Failure
Total duration 20s
Artifacts

validate.yml

on: pull_request
validate  /  Linting
9s
validate / Linting
validate  /  Testing
7s
validate / Testing
Fit to window
Zoom out
Zoom in

Annotations

3 errors
error: expect(received).toEqual(expected): tests/options.test.ts#L87
[ { params: [], statement: "CREATE TABLE \"accounts\" (\"id\" TEXT PRIMARY KEY DEFAULT ('acc_' || lower(substr(hex(randomblob(12)), 1, 16))), \"ronin.createdAt\" DATETIME DEFAULT (strftime('%Y-%m-%dT%H:%M:%f', 'now') || 'Z'), \"ronin.createdBy\" TEXT, \"ronin.updatedAt\" DATETIME DEFAULT (strftime('%Y-%m-%dT%H:%M:%f', 'now') || 'Z'), \"ronin.updatedBy\" TEXT, \"activeAt\" DATETIME DEFAULT (strftime('%Y-%m-%dT%H:%M:%f', 'now') || 'Z'))", }, { params: [], returning: true, + statement: "INSERT INTO \"ronin_schema\" (\"slug\", \"fields\", \"id\", \"pluralSlug\", \"name\", \"pluralName\", \"idPrefix\", \"table\", \"identifiers.name\", \"identifiers.slug\") VALUES ('account', json('{\"id\":{\"name\":\"ID\",\"type\":\"string\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"''acc_'' || lower(substr(hex(randomblob(12)), 1, 16))\"}},\"ronin.createdAt\":{\"name\":\"RONIN - Created At\",\"type\":\"date\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"strftime(''%Y-%m-%dT%H:%M:%f'', ''now'') || ''Z''\"}},\"ronin.createdBy\":{\"name\":\"RONIN - Created By\",\"type\":\"string\"},\"ronin.updatedAt\":{\"name\":\"RONIN - Updated At\",\"type\":\"date\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"strftime(''%Y-%m-%dT%H:%M:%f'', ''now'') || ''Z''\"}},\"ronin.updatedBy\":{\"name\":\"RONIN - Updated By\",\"type\":\"string\"},\"activeAt\":{\"name\":\"Active At\",\"type\":\"date\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"strftime(''%Y-%m-%dT%H:%M:%f'', ''now'') || ''Z''\"}}}'), 'mod_1f052f8432bc861b', 'accounts', 'Account', 'Accounts', 'acc', 'accounts', 'id', 'id') RETURNING \"id\", \"ronin.createdAt\", \"ronin.createdBy\", \"ronin.updatedAt\", \"ronin.updatedBy\", \"name\", \"pluralName\", \"slug\", \"pluralSlug\", \"idPrefix\", \"table\", \"identifiers.name\", \"identifiers.slug\", \"fields\", \"indexes\", \"triggers\", \"presets\"", - statement: "INSERT INTO \"ronin_schema\" (\"slug\", \"fields\", \"id\", \"pluralSlug\", \"name\", \"pluralName\", \"idPrefix\", \"table\", \"identifiers.name\", \"identifiers.slug\") VALUES ('account', json('{\"id\":{\"name\":\"ID\",\"type\":\"string\",\"slug\":\"id\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"''acc_'' || lower(substr(hex(randomblob(12)), 1, 16))\"}},\"ronin.createdAt\":{\"name\":\"RONIN - Created At\",\"type\":\"date\",\"slug\":\"ronin.createdAt\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"strftime(''%Y-%m-%dT%H:%M:%f'', ''now'') || ''Z''\"}},\"ronin.createdBy\":{\"name\":\"RONIN - Created By\",\"type\":\"string\",\"slug\":\"ronin.createdBy\"},\"ronin.updatedAt\":{\"name\":\"RONIN - Updated At\",\"type\":\"date\",\"slug\":\"ronin.updatedAt\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"strftime(''%Y-%m-%dT%H:%M:%f'', ''now'') || ''Z''\"}},\"ronin.updatedBy\":{\"name\":\"RONIN - Updated By\",\"type\":\"string\",\"slug\":\"ronin.updatedBy\"},\"activeAt\":{\"name\":\"Active At\",\"type\":\"date\",\"defaultValue\":{\"__RONIN_EXPRESSION\":\"strftime(''%Y-%m-%dT%H:%M:%f'', ''now'') || ''Z''\"}}}'), 'mod_1f052f8432bc861b', 'accounts', 'Account', 'Accounts', 'acc', 'accounts', 'id', 'id') RETURNING \"id\", \"ronin.createdAt\", \"ronin.createdBy\", \"ronin.updatedAt\", \"ronin.updatedBy\", \"name\", \"pluralName\", \"slug\", \"pluralSlug\", \"idPrefix\", \"table\", \"identifiers.name\", \"identifiers.slug\", \"fields\", \"indexes\", \"triggers\", \"presets\"", } ] - Expected - 1 + Received + 1 at /home/runner/work/compiler/compiler/tests/options.test.ts:87:34 at /home/runner/work/compiler/compiler/tests/options.test.ts:58:70
validate / Testing
Process completed with exit code 1.
validate / Linting
Process completed with exit code 2.