Skip to content

Commit

Permalink
chore: Rename customerProvidedAuth -> customAuth (#281)
Browse files Browse the repository at this point in the history
* chore: Rename customer-auth to custom-auth

* -a

* chore: Update sdk-react

* fix: Fix control-plane auth tests
  • Loading branch information
johnjcsmith authored Dec 11, 2024
1 parent f8de989 commit 534c86b
Show file tree
Hide file tree
Showing 30 changed files with 3,517 additions and 243 deletions.
14 changes: 7 additions & 7 deletions app/app/clusters/[clusterId]/settings/details/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const formSchema = z.object({
name: z.string(),
description: z.string().default(""),
debug: z.boolean().default(false),
enableCustomerAuth: z.boolean().default(false),
enableCustomAuth: z.boolean().default(false),
enableRunConfigs: z.boolean().default(false),
enableKnowledgebase: z.boolean().default(false),
});
Expand Down Expand Up @@ -65,8 +65,8 @@ export default function DetailsPage({
form.setValue("description", details.body.description ?? "");
form.setValue("debug", details.body.debug ?? false);
form.setValue(
"enableCustomerAuth",
details.body.enableCustomerAuth ?? false,
"enableCustomAuth",
details.body.enableCustomAuth ?? false,
);
form.setValue(
"enableRunConfigs",
Expand Down Expand Up @@ -96,7 +96,7 @@ export default function DetailsPage({
name: data.name,
description: data.description,
debug: data.debug,
enableCustomerAuth: data.enableCustomerAuth,
enableCustomAuth: data.enableCustomAuth,
enableRunConfigs: data.enableRunConfigs,
enableKnowledgebase: data.enableKnowledgebase,
},
Expand Down Expand Up @@ -210,15 +210,15 @@ export default function DetailsPage({
<div className="text-lg font-medium">Advanced Settings</div>
<FormField
control={form.control}
name="enableCustomerAuth"
name="enableCustomAuth"
render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-4">
<div className="space-y-0.5">
<FormLabel className="text-base">
Customer Provided Auth
Custom Auth
</FormLabel>
<FormDescription>
Allow this cluster to be authenticated with <Link className="underline" href="https://docs.inferable.ai/pages/auth#customer-provided-secrets">customer provided authentication tokens</Link>.
Allow this cluster to be authenticated with <Link className="underline" href="https://docs.inferable.ai/pages/auth#customer-provided-secrets">custom authentication tokens</Link>.
</FormDescription>
</div>
<FormControl>
Expand Down
4 changes: 2 additions & 2 deletions app/client/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export const definition = {
.describe(
"Enable additional logging (Including prompts and results) for use by Inferable support",
),
enableCustomerAuth: z.boolean().optional(),
enableCustomAuth: z.boolean().optional(),
enableRunConfigs: z.boolean().optional(),
enableKnowledgebase: z.boolean().optional(),
}),
Expand All @@ -359,7 +359,7 @@ export const definition = {
additionalContext: VersionedTextsSchema.nullable(),
createdAt: z.date(),
debug: z.boolean(),
enableCustomerAuth: z.boolean(),
enableCustomAuth: z.boolean(),
enableRunConfigs: z.boolean(),
enableKnowledgebase: z.boolean(),
lastPingAt: z.date().nullable(),
Expand Down
1 change: 1 addition & 0 deletions control-plane/drizzle/0192_familiar_roland_deschain.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "clusters" RENAME COLUMN "enable_customer_auth" TO "enable_custom_auth";
1 change: 1 addition & 0 deletions control-plane/drizzle/0193_fat_millenium_guard.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "workflows" RENAME COLUMN "customer_auth_token" TO "custom_auth_token";
Loading

0 comments on commit 534c86b

Please sign in to comment.