-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename ProjectRoles
and friends to ProjectRole
etc
#1220
Conversation
"description": "Client view of a [`Policy`], which describes how this resource may be accessed\n\nNote that the Policy only describes access granted explicitly for this resource. The policies of parent resources can also cause a user to have access to this resource.", | ||
"type": "object", | ||
"properties": { | ||
"role_assignments": { | ||
"description": "Roles directly assigned on this resource", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/components/schemas/FleetRolesRoleAssignment" | ||
"$ref": "#/components/schemas/FleetRoleRoleAssignment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RoleRole
is a bit silly, really the only downside of this whole change. We could change the rename to make this FleetRoleAssignment
. Only problem is it relies on AllowedRoles
to have Role
in there, which I assume is why it is the way it is instead.
omicron/nexus/src/external_api/shared.rs
Line 73 in 4c933a1
#[schemars(rename = "{AllowedRoles}RoleAssignment")] |
ProjectRoles
and friends to ProjectRole
ProjectRoles
and friends to ProjectRole
etc
Approved by @davepacheco in DMs. |
Propolis changes: Add `IntrPin::import_state` and migrate LPC UART pin states (#669) Attempt to set WCE for raw file backends Fix clippy/lint nits for rust 1.77.0 Crucible changes: Correctly (and robustly) count bytes (#1237) test-replay.sh fix name of DTrace script (#1235) BlockReq -> BlockOp (#1234) Simplify `BlockReq` (#1218) DTrace, cmon, cleanup, retry downstairs connections at 10 seconds. (#1231) Remove `MAX_ACTIVE_COUNT` flow control system (#1217) Crucible changes that were in Omicron but not in Propolis before this commit. Return *410 Gone* if volume is inactive (#1232) Update Rust crate opentelemetry to 0.22.0 (#1224) Update Rust crate base64 to 0.22.0 (#1222) Update Rust crate async-recursion to 1.1.0 (#1221) Minor cleanups to extent implementations (#1230) Update Rust crate http to 0.2.12 (#1220) Update Rust crate reedline to 0.30.0 (#1227) Update Rust crate rayon to 1.9.0 (#1226) Update Rust crate nix to 0.28 (#1223) Update Rust crate async-trait to 0.1.78 (#1219) Various buffer optimizations (#1211) Add low-level test for message encoding (#1214) Don't let df failures ruin the buildomat tests (#1213) Activate the NBD server's psuedo file (#1209) --------- Co-authored-by: Alan Hanson <alan@oxide.computer>
Our enums are generally not plural. An instance of the type is a role, not a roles.