-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add archive/unarchive/delete workspace
- Loading branch information
1 parent
0bcdcae
commit 6edf9b9
Showing
8 changed files
with
414 additions
and
24 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
backend/migrations/20230107075643_use_internal_url_sync.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- Add down migration script here |
16 changes: 16 additions & 0 deletions
16
backend/migrations/20230107075643_use_internal_url_sync.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- Add up migration script here | ||
-- Add up migration script here | ||
UPDATE script SET content = 'import wmill from "https://deno.land/x/wmill@v1.57.0/main.ts"; | ||
export async function main() { | ||
await run( | ||
"workspace", "add", "__automation", "admins", Deno.env.get("BASE_INTERNAL_URL") + "/", "--token", Deno.env.get("WM_TOKEN")); | ||
await run("hub", "pull"); | ||
} | ||
async function run(...cmd: string[]) { | ||
console.log("Running \"" + cmd.join('' '') + "\""); | ||
await wmill.parse(cmd); | ||
}', summary = 'Synchronize Hub Resource types with admins workspace', | ||
description = 'Basic administrative script to sync latest resource types from hub to share to every workspace. Recommended to run at least once. On a schedule by default.' | ||
WHERE hash = -28028598712388162 AND workspace_id = 'admins'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.