Release v0.1.4 with terrain rescanning and owner-published map updates
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m26s
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m26s
This commit is contained in:
@@ -11,7 +11,9 @@ try {
|
||||
await db.exec(`create role anon; create role authenticated; create role service_role bypassrls;
|
||||
create schema auth; create table auth.users(id uuid primary key);
|
||||
create function auth.uid() returns uuid language sql as $$ select null::uuid $$;
|
||||
create schema storage; create table storage.buckets(id text primary key,name text,public boolean,file_size_limit bigint);`);
|
||||
create schema storage; create table storage.buckets(id text primary key,name text,public boolean,file_size_limit bigint,allowed_mime_types text[]);
|
||||
create table storage.objects(id uuid primary key default gen_random_uuid(),bucket_id text,name text);
|
||||
create function storage.foldername(name text) returns text[] language sql as $$ select string_to_array(name, '/') $$;`);
|
||||
for (const file of (await readdir("supabase/migrations"))
|
||||
.filter((f) => f.endsWith(".sql"))
|
||||
.sort())
|
||||
@@ -44,8 +46,8 @@ try {
|
||||
)
|
||||
).rows[0].id;
|
||||
await db.query(
|
||||
`insert into public.game_sessions(revision_id,access_hash,difficulty,current_round,created_at)
|
||||
values($1,'test','easy',5,now()),($1,'test','hard',0,now()-interval '2 days')`,
|
||||
`insert into public.game_sessions(revision_id,access_hash,difficulty,difficulty_settings,current_round,created_at)
|
||||
values($1,'test','easy',public.resolve_difficulty_preset('easy'),5,now()),($1,'test','hard',public.resolve_difficulty_preset('hard'),0,now()-interval '2 days')`,
|
||||
[revision],
|
||||
);
|
||||
const rpc = async (sql, args = []) =>
|
||||
@@ -88,7 +90,7 @@ try {
|
||||
"select public.read_prometheus_metrics($1) value",
|
||||
[oldHash],
|
||||
);
|
||||
assert.equal(snapshot.length, 43);
|
||||
assert.equal(snapshot.length, 45); // Includes complete/incomplete Void games.
|
||||
assert.equal(snapshot.find((s) => s.metric === "minegeo_accounts").value, 3);
|
||||
assert.equal(
|
||||
snapshot.find(
|
||||
@@ -183,6 +185,9 @@ try {
|
||||
await db.query("update public.profiles set role='admin' where id=$1", [
|
||||
owner,
|
||||
]);
|
||||
await db.query("update public.profiles set account_status='deactivated' where id=$1", [owner]);
|
||||
assert.equal(await rpc("select public.read_prometheus_metrics($1) value", [newHash]), null);
|
||||
await db.query("update public.profiles set account_status='active' where id=$1", [owner]);
|
||||
await rpc("select public.configure_prometheus($1,null) value", [owner]);
|
||||
assert.equal(
|
||||
await rpc("select public.read_prometheus_metrics($1) value", [newHash]),
|
||||
|
||||
Reference in New Issue
Block a user