Skip to content

Commit 008e23b

Browse files
committed
fixed failed test cases
1 parent f9aa39e commit 008e23b

File tree

8 files changed

+66
-0
lines changed

8 files changed

+66
-0
lines changed

components/databricks/actions/delete-vector-search-index-data/delete-vector-search-index-data.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ export default {
1010
type: "action",
1111
props: {
1212
databricks,
13+
endpointName: {
14+
propDefinition: [
15+
databricks,
16+
"endpointName",
17+
],
18+
},
1319
indexName: {
1420
propDefinition: [
1521
databricks,
1622
"indexName",
23+
({ endpointName }) => ({
24+
endpointName,
25+
}),
1726
],
1827
},
1928
primaryKeys: {

components/databricks/actions/delete-vector-search-index/delete-vector-search-index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@ export default {
88
type: "action",
99
props: {
1010
databricks,
11+
endpointName: {
12+
propDefinition: [
13+
databricks,
14+
"endpointName",
15+
],
16+
},
1117
indexName: {
1218
propDefinition: [
1319
databricks,
1420
"indexName",
21+
({ endpointName }) => ({
22+
endpointName,
23+
}),
1524
],
1625
},
1726
},

components/databricks/actions/get-vector-search-index/get-vector-search-index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@ export default {
88
type: "action",
99
props: {
1010
databricks,
11+
endpointName: {
12+
propDefinition: [
13+
databricks,
14+
"endpointName",
15+
],
16+
},
1117
indexName: {
1218
propDefinition: [
1319
databricks,
1420
"indexName",
21+
({ endpointName }) => ({
22+
endpointName,
23+
}),
1524
],
1625
},
1726
},

components/databricks/actions/query-vector-search-index/query-vector-search-index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@ export default {
99
type: "action",
1010
props: {
1111
databricks,
12+
endpointName: {
13+
propDefinition: [
14+
databricks,
15+
"endpointName",
16+
],
17+
},
1218
indexName: {
1319
propDefinition: [
1420
databricks,
1521
"indexName",
22+
({ endpointName }) => ({
23+
endpointName,
24+
}),
1625
],
1726
},
1827
columns: {

components/databricks/actions/scan-vector-search-index/scan-vector-search-index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@ export default {
99
type: "action",
1010
props: {
1111
databricks,
12+
endpointName: {
13+
propDefinition: [
14+
databricks,
15+
"endpointName",
16+
],
17+
},
1218
indexName: {
1319
propDefinition: [
1420
databricks,
1521
"indexName",
22+
({ endpointName }) => ({
23+
endpointName,
24+
}),
1625
],
1726
},
1827
lastPrimaryKey: {

components/databricks/actions/sync-vector-search-index/sync-vector-search-index.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@ export default {
88
type: "action",
99
props: {
1010
databricks,
11+
endpointName: {
12+
propDefinition: [
13+
databricks,
14+
"endpointName",
15+
],
16+
},
1117
indexName: {
1218
propDefinition: [
1319
databricks,
1420
"indexName",
21+
({ endpointName }) => ({
22+
endpointName,
23+
}),
1524
],
1625
},
1726
},

components/databricks/actions/upsert-vector-search-index-data/upsert-vector-search-index-data.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ export default {
1010
type: "action",
1111
props: {
1212
databricks,
13+
endpointName: {
14+
propDefinition: [
15+
databricks,
16+
"endpointName",
17+
],
18+
},
1319
indexName: {
1420
propDefinition: [
1521
databricks,
1622
"indexName",
23+
({ endpointName }) => ({
24+
endpointName,
25+
}),
1726
],
1827
},
1928
rows: {

components/databricks/databricks.app.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export default {
8585
label: "Index Name",
8686
description: "The name of the vector search index",
8787
async options({ endpointName }) {
88+
if (!endpointName) {
89+
return [];
90+
}
8891
const { vector_indexes = [] } = await this.listVectorSearchIndexes({
8992
params: {
9093
endpoint_name: endpointName,

0 commit comments

Comments
 (0)