From 8c2673e797d8ed19f26def450bea3fb8195dbad3 Mon Sep 17 00:00:00 2001 From: Michael Herzner Date: Thu, 7 Nov 2024 16:29:26 +0100 Subject: [PATCH 1/2] chore: update readme on how to populate local dev environment --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b83b8d97..dcc6c9f3 100644 --- a/README.md +++ b/README.md @@ -135,16 +135,19 @@ registry with data is to publish [deno_std](https://github.com/denoland/deno_std) to the registry. This can be done via the following steps: -1. Clone https://github.com/denoland/deno_std in the same parent folder as the - `jsr` project -2. Make sure to [make yourself a staff user/admin](#making-yourself-a-staff-useradmin) -3. Run `JSR_URL=http://jsr.test deno publish` to publish all of the @std +1. Make sure to [make yourself a staff user/admin](#making-yourself-a-staff-useradmin). +2. Run `SELECT id, name FROM users;` in the `registry` database to get your user's UUID. +3. Assign the `std` scope to your user through the [admin panel](http://jsr.test/admin/scopes/assign) + by using the UUID from the previous step. +4. Clone https://github.com/denoland/deno_std in the same parent folder as the + `jsr` project. +5. Run `JSR_URL=http://jsr.test deno publish` to publish all of the @std packages to your local dev environment. ### Making yourself a staff user/admin 1. Run `psql registry` -2. Run `SELECT name,github_id from users;` +2. Run `SELECT name, github_id FROM users;` 3. You should see a table with your name and GitHub ID. Copy your GitHub ID. 4. Run `UPDATE users SET is_staff = true WHERE github_id = xxxxxxx;`, replacing `xxxxxxx` with your copied GitHub ID from the previous step. From 8d7ebe6fe182f66f39da4bd7b2f11c1eb7d1aea1 Mon Sep 17 00:00:00 2001 From: Michael Herzner Date: Thu, 7 Nov 2024 17:38:00 +0100 Subject: [PATCH 2/2] chore: update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dcc6c9f3..efe5b70b 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ registry with data is to publish done via the following steps: 1. Make sure to [make yourself a staff user/admin](#making-yourself-a-staff-useradmin). -2. Run `SELECT id, name FROM users;` in the `registry` database to get your user's UUID. +2. Navigate to your profile page and copy the UUID from the URL. 3. Assign the `std` scope to your user through the [admin panel](http://jsr.test/admin/scopes/assign) by using the UUID from the previous step. 4. Clone https://github.com/denoland/deno_std in the same parent folder as the