jsr-io / jsr

The open-source package registry for modern JavaScript and TypeScript
https://jsr.io
MIT License
2.53k stars 118 forks source link

docs: how to assign users to reserved scopes #816

Closed mbhrznr closed 2 weeks ago

mbhrznr commented 2 weeks ago

while making myself familiar w/ the whole jsr stack i followed the readme to populate the local dev environment. in there, there's the suggestion to populate deno_std.

trying to do so rightfully showed me the ScopeNameReserved error, as i haven't made myself a staff member/admin yet. however the error persisted, even though i've made myself a staff member and i was in sudo mode.

contacted @crowlKats who confirmed that it's a bug.

image

lucacasonato commented 2 weeks ago

So the docs here are out of date - you have to assign reserved scopes thru the admin panel now (https://jsr.io/admin/scopes/assign).

mbhrznr commented 2 weeks ago

thanks for the heads-up! just tried to assign std via the admin panel, but was running into an issue there:

Bildschirmfoto 2024-11-07 um 15 10 54

here's the error as well:

{
  ok: false,
  status: 400,
  code: "malformedRequest",
  message: "Malformed request: UUID parsing failed: invalid length: expected length 32 for simple format, found 7 at line 1 column 33.",
  traceId: "40c2177bd3903363b1c39da82f28689d"
}

edit: nvm, for some reason i was using the user's github id rather than the uuid. will update the documentation to include the step about the assignment.