Skip to content

Commit 5f1ed08

Browse files
committed
feat: add elasticsearch extension support
1 parent 9d3e7ad commit 5f1ed08

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

console/atest-ui/src/views/DataManager.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const executeWithQuery = async (sql: string) => {
166166
case 'atest-store-orm':
167167
case 'atest-store-cassandra':
168168
case 'atest-store-iotdb':
169+
case 'atest-store-elasticsearch':
169170
ormDataHandler(data)
170171
success = true
171172
break;

console/atest-ui/src/views/net.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,10 +794,10 @@ var DataQueryAsync = (store: string, kind: string, currentDatabase: string, quer
794794
queryObj['key'] = currentDatabase;
795795
break;
796796
case 'atest-store-etcd':
797-
queryObj['key'] = query;
798-
break;
799797
case 'atest-store-redis':
798+
case 'atest-store-elasticsearch':
800799
queryObj['key'] = query;
800+
queryObj['sql'] = query;
801801
break;
802802
}
803803
const requestOptions = {

console/atest-ui/src/views/store.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ const storeExtensions = [
115115
defaultValue: 'atest'
116116
}],
117117
link: 'https://github.com/LinuxSuRen/atest-ext-store-mongodb'
118+
},
119+
{
120+
name: 'atest-store-elasticsearch',
121+
params: [],
122+
link: 'https://github.com/LinuxSuRen/atest-ext-store-elasticsearch'
118123
}
119124
] as Store[]
120125

0 commit comments

Comments
 (0)