Skip to content

Commit 4c54dd6

Browse files
committed
init
1 parent 6c98de4 commit 4c54dd6

File tree

3 files changed

+10
-23
lines changed

3 files changed

+10
-23
lines changed

runtime/drivers/azure/azure.go

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,14 @@ var spec = drivers.Spec{
2424
DocsURL: "https://docs.rilldata.com/build/connectors/data-source/azure",
2525
ConfigProperties: []*drivers.PropertySpec{
2626
{
27-
Key: "azure_storage_account",
28-
Type: drivers.StringPropertyType,
29-
Secret: true,
30-
},
31-
{
32-
Key: "azure_storage_key",
33-
Type: drivers.StringPropertyType,
34-
Secret: true,
35-
},
36-
{
37-
Key: "azure_storage_sas_token",
38-
Type: drivers.StringPropertyType,
39-
Secret: true,
40-
},
41-
{
42-
Key: "azure_storage_connection_string",
43-
Type: drivers.StringPropertyType,
44-
Secret: true,
27+
Key: "azure_storage_connection_string",
28+
Type: drivers.StringPropertyType,
29+
DisplayName: "Azure Connection String",
30+
Description: "Azure connection string for storage account",
31+
Placeholder: "Paste your Azure connection string here",
32+
Secret: true,
4533
},
4634
},
47-
// Important: Any edits to the below properties must be accompanied by changes to the client-side form validation schemas.
4835
SourceProperties: []*drivers.PropertySpec{
4936
{
5037
Key: "path",

web-common/src/features/sources/modal/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const OLAP_ENGINES = [
6767
export const ALL_CONNECTORS = [...SOURCES, ...OLAP_ENGINES];
6868

6969
// Connectors that support multi-step forms (connector -> source)
70-
export const MULTI_STEP_CONNECTORS = ["gcs"];
70+
export const MULTI_STEP_CONNECTORS = ["gcs", "azure"];
7171

7272
export const FORM_HEIGHT_TALL = "max-h-[38.5rem] min-h-[38.5rem]";
7373
export const FORM_HEIGHT_DEFAULT = "max-h-[34.5rem] min-h-[34.5rem]";

web-common/src/features/sources/modal/yupSchemas.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,18 @@ export const getYupSchema = {
6666
}),
6767

6868
azure: yup.object().shape({
69+
azure_storage_connection_string: yup.string(),
6970
path: yup
7071
.string()
7172
.matches(
7273
/^azure:\/\//,
7374
"Must be an Azure URI (e.g. azure://container/path)",
7475
)
75-
.required("Path is required"),
76-
azure_storage_account: yup.string(),
76+
.optional(),
7777
name: yup
7878
.string()
7979
.matches(VALID_NAME_PATTERN, INVALID_NAME_MESSAGE)
80-
.required("Source name is required"),
80+
.optional(),
8181
}),
8282

8383
postgres: yup.object().shape({

0 commit comments

Comments
 (0)