Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5b4079b
Add editableValues to Template Profiles
AlinaGoaga Jul 20, 2022
5955022
Add editableValues to Template Profiles - updated
AlinaGoaga Jul 20, 2022
2cec4ae
Merge branch 'main' of github.com:weaveworks/weave-gitops-enterprise …
AlinaGoaga Jul 22, 2022
a1fd874
Update ProfileListItem to look for editable values
AlinaGoaga Jul 22, 2022
d00ee3e
Update flag
AlinaGoaga Jul 22, 2022
0afa472
Merge branch 'main' into WG1086-editable-values-flag
AlinaGoaga Jul 22, 2022
3123698
Update ui-cra/src/components/Clusters/Create/Form/Partials/ProfileLis…
AlinaGoaga Jul 26, 2022
9860bd7
Check that user edited values are in fact editable
AlinaGoaga Jul 26, 2022
4705ab7
Merge branch 'WG1086-editable-values-flag' of github.com:weaveworks/w…
AlinaGoaga Jul 26, 2022
5aad121
Check that user edited values are in fact editable - 2
AlinaGoaga Jul 27, 2022
16861fe
Adds a test case for editable
foot Jul 27, 2022
7911634
Add test for GenerateProfileFiles
AlinaGoaga Jul 27, 2022
e11a946
Merge branch 'main' into WG1086-editable-values-flag
AlinaGoaga Jul 28, 2022
740638e
Regenate files
AlinaGoaga Jul 28, 2022
dee670e
Update tests
AlinaGoaga Jul 28, 2022
ba773f0
Refactor handling of editable flag
AlinaGoaga Jul 29, 2022
1ec0f41
Merge branch 'main' into WG1086-editable-values-flag
AlinaGoaga Jul 29, 2022
9e56104
Refactor handling of editable flag -
AlinaGoaga Jul 29, 2022
83e2249
Merge branch 'main' into WG1086-editable-values-flag
AlinaGoaga Jul 29, 2022
7798565
Regen file
AlinaGoaga Jul 29, 2022
8089f72
Fix typo
AlinaGoaga Jul 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/clusters-service/api/cluster_services.proto
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ message Parameter {
message TemplateProfile {
string name = 1;
string version = 2;
bool editable = 3;
string values = 4;
}

message TemplateObject {
Expand Down
8 changes: 7 additions & 1 deletion cmd/clusters-service/api/cluster_services.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@
}
},
"additionalProperties": {},
"description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\nExample 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\nExample 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
"description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }"
},
"rpcStatus": {
"type": "object",
Expand Down Expand Up @@ -1755,6 +1755,12 @@
},
"version": {
"type": "string"
},
"editable": {
"type": "boolean"
},
"values": {
"type": "string"
}
}
}
Expand Down
Loading