Commit e5afa40
authored
fix: use server computed org display name (#183)
I picked up on this reviewing #182, but it's a mistake I made when
reviewing the resource originally 😓
There's a minor inconsistency between display names on orgs and some
other resources with display names on `coderd`. i.e. for organizations:
```
if req.DisplayName == "" {
req.DisplayName = req.Name
}
```
For some other resources, e.g. users & groups, an empty string display
name is retained, and the CLI/Web UI just shows the actual name if the
display name is empty. For those, it's okay to have an empty string
default in the provider.1 parent ed8270c commit e5afa40
File tree
2 files changed
+23
-1
lines changed- internal/provider
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
124 | 147 | | |
125 | 148 | | |
126 | 149 | | |
| |||
0 commit comments