Skip to content

Commit 7fca603

Browse files
Rachel ChenRachel Chen
authored andcommitted
frontend name
1 parent e8fbb8b commit 7fca603

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

snuba/admin/static/api_client.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ interface Client {
8787
getAllocationPolicies: (storage: string) => Promise<AllocationPolicy[]>;
8888
setAllocationPolicyConfig: (
8989
configurable_component_namespace: string,
90-
configurable_component_name: string,
90+
configurable_component_class_name: string,
9191
resource_name: string,
9292
key: string,
9393
value: string,
9494
params: object,
9595
) => Promise<void>;
9696
deleteAllocationPolicyConfig: (
9797
configurable_component_namespace: string,
98-
configurable_component_name: string,
98+
configurable_component_class_name: string,
9999
resource_name: string,
100100
key: string,
101101
params: object,
@@ -462,7 +462,7 @@ function Client(): Client {
462462
},
463463
setAllocationPolicyConfig: (
464464
configurable_component_namespace: string,
465-
configurable_component_name: string,
465+
configurable_component_class_name: string,
466466
resource_name: string,
467467
key: string,
468468
value: string,
@@ -472,7 +472,7 @@ function Client(): Client {
472472
return fetch(url, {
473473
headers: { "Content-Type": "application/json" },
474474
method: "POST",
475-
body: JSON.stringify({ configurable_component_namespace, configurable_component_name, resource_name, key, value, params }),
475+
body: JSON.stringify({ configurable_component_namespace, configurable_component_class_name, resource_name, key, value, params }),
476476
}).then((res) => {
477477
if (res.ok) {
478478
return;
@@ -486,7 +486,7 @@ function Client(): Client {
486486
},
487487
deleteAllocationPolicyConfig: (
488488
configurable_component_namespace: string,
489-
config_key: string,
489+
configurable_component_class_name: string,
490490
resource_name: string,
491491
key: string,
492492
params: object,
@@ -495,7 +495,7 @@ function Client(): Client {
495495
return fetch(url, {
496496
headers: { "Content-Type": "application/json" },
497497
method: "DELETE",
498-
body: JSON.stringify({ configurable_component_namespace, config_key, resource_name, key, params }),
498+
body: JSON.stringify({ configurable_component_namespace, configurable_component_class_name, resource_name, key, params }),
499499
}).then((res) => {
500500
if (res.ok) {
501501
return;

0 commit comments

Comments
 (0)