feat!: drop LegacyVariableName from coder parameter (#8360)

This commit is contained in:
Marcin Tojek
2023-07-07 14:14:29 +02:00
committed by GitHub
parent 4e42c33769
commit e088303382
23 changed files with 443 additions and 354 deletions
+9 -10
View File
@@ -490,16 +490,15 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
return nil, xerrors.Errorf("decode map values for coder_parameter.%s: %w", resource.Name, err)
}
protoParam := &proto.RichParameter{
Name: param.Name,
DisplayName: param.DisplayName,
Description: param.Description,
Type: param.Type,
Mutable: param.Mutable,
DefaultValue: param.Default,
Icon: param.Icon,
Required: !param.Optional,
Order: int32(param.Order),
LegacyVariableName: param.LegacyVariableName,
Name: param.Name,
DisplayName: param.DisplayName,
Description: param.Description,
Type: param.Type,
Mutable: param.Mutable,
DefaultValue: param.Default,
Icon: param.Icon,
Required: !param.Optional,
Order: int32(param.Order),
}
if len(param.Validation) == 1 {
protoParam.ValidationRegex = param.Validation[0].Regex