Skip to content
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

Merged
merged 1 commit into from Jun 16, 2022

Conversation

david-crespo
Copy link
Contributor

Our enums are generally not plural. An instance of the type is a role, not a roles.

"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"
Copy link
Contributor Author

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.

#[schemars(rename = "{AllowedRoles}RoleAssignment")]

@david-crespo david-crespo changed the title Rename ProjectRoles and friends to ProjectRole Rename ProjectRoles and friends to ProjectRole etc Jun 16, 2022
@david-crespo
Copy link
Contributor Author

Approved by @davepacheco in DMs.

@david-crespo david-crespo merged commit 6170823 into main Jun 16, 2022
@david-crespo david-crespo deleted the role-enum-singular branch June 16, 2022 20:18
leftwo added a commit that referenced this pull request Mar 29, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant