Skip to content

Commit 28fdebf

Browse files
committed
fix: restore verify/revert files, update snapshots, fix test compatibility
- Revert database-jobs test to main (no db_id param in published function) - Revert encrypted-secrets-table snapshot to main (uuid_generate_v4 in test env) - Regenerate metaschema-modules snapshot (48 modules, 55 total tables) - Restore services revert files deleted by sync (fixes integration test) - Restore object-tree set_and_commit revert (drop both functions) - Restore metaschema-modules verify/revert from main, add new module files - Update namespace_module verify to match new deploy schema - Add verify/revert for 4 new modules (config_secrets, i18n, user_credentials, user_settings)
1 parent b3f931b commit 28fdebf

43 files changed

Lines changed: 556 additions & 66 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/database-jobs/__tests__/jobs.test.ts

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,20 @@ describe('scheduled jobs', () => {
6565
const start = new Date(Date.now() + 10000); // 10s
6666
const end = new Date(start.getTime() + 180000); // +3min
6767

68+
// Set JWT claims for the session (required by add_scheduled_job)
69+
await pg.any(`SELECT set_config('jwt.claims.database_id', $1, false)`, [database_id]);
70+
6871
const [result] = await pg.any(
6972
`SELECT * FROM app_jobs.add_scheduled_job(
70-
db_id := $1::uuid,
71-
identifier := $2::text,
72-
payload := $3::json,
73-
schedule_info := $4::json,
74-
job_key := $5::text,
75-
queue_name := $6::text,
76-
max_attempts := $7::integer,
77-
priority := $8::integer
73+
identifier := $1::text,
74+
payload := $2::json,
75+
schedule_info := $3::json,
76+
job_key := $4::text,
77+
queue_name := $5::text,
78+
max_attempts := $6::integer,
79+
priority := $7::integer
7880
)`,
7981
[
80-
database_id,
8182
'my_job',
8283
{ just: 'run it' },
8384
{ start, end, rule: '*/1 * * * *' },
@@ -101,17 +102,15 @@ describe('scheduled jobs', () => {
101102

102103
const [result2] = await pg.any(
103104
`SELECT * FROM app_jobs.add_scheduled_job(
104-
db_id := $1,
105-
identifier := $2,
106-
payload := $3,
107-
schedule_info := $4,
108-
job_key := $5,
109-
queue_name := $6,
110-
max_attempts := $7,
111-
priority := $8
105+
identifier := $1,
106+
payload := $2,
107+
schedule_info := $3,
108+
job_key := $4,
109+
queue_name := $5,
110+
max_attempts := $6,
111+
priority := $7
112112
)`,
113113
[
114-
database_id,
115114
'my_job',
116115
{ just: 'run it' },
117116
{ start, end, rule: '*/1 * * * *' },

packages/encrypted-secrets-table/__tests__/__snapshots__/secrets-table.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`encrypted secrets table should have secrets_table with correct structur
44
{
55
"columns": [
66
{
7-
"column_default": "uuid_generate_v4()",
7+
"column_default": "uuidv7()",
88
"column_name": "id",
99
"data_type": "uuid",
1010
"is_nullable": "NO",

0 commit comments

Comments
 (0)