databricks-cli/bundle/permissions
Pieter Noordhuis fa3c8b1017
Use resource key as name in permissions code (#1087)
## Changes

The code relied on the `Name` property being accessible for every
resource. This is generally true, but because these property structs are
embedded as pointer, they can be nil. This is also why the tests had to
initialize the embedded struct to pass. This changes the approach to use
the keys from the resource map instead, so that we no longer rely on the
non-nil embedded struct.

Note: we should evaluate whether we should turn these into values
instead of pointers. I don't recall if we get value from them being
pointers.

## Tests

Unit tests pass.
2023-12-22 14:45:53 +00:00
..
mutator.go Use resource key as name in permissions code (#1087) 2023-12-22 14:45:53 +00:00
mutator_test.go Use resource key as name in permissions code (#1087) 2023-12-22 14:45:53 +00:00
utils.go Added support for top-level permissions (#928) 2023-11-13 11:29:40 +00:00
workspace_root.go Added support for top-level permissions (#928) 2023-11-13 11:29:40 +00:00
workspace_root_test.go Added support for top-level permissions (#928) 2023-11-13 11:29:40 +00:00