Skip to content

Commit 414b38b

Browse files
committed
support to trigger query when enter event
1 parent eb311a5 commit 414b38b

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ This is an awesome API testing tool. 🚀
2121
* Pre and post handle with the API request
2222
* Run in server mode, and provide the [gRPC](pkg/server/server.proto) and HTTP endpoint
2323
* [VS Code extension](https://github.com/LinuxSuRen/vscode-api-testing) support
24+
* Simple Database query support
2425
* Multiple storage backends supported(Local, ORM Database, S3, Git, Etcd, etc.)
2526
* [HTTP API record](https://github.com/LinuxSuRen/atest-ext-collector)
2627
* Install in multiple use cases(CLI, Container, Native-Service, [Operator](https://github.com/LinuxSuRen/atest-operator), Helm, etc.)

cmd/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func createServerCmd(execer fakeruntime.Execer, httpServer server.HTTPServer) (c
102102
flags.StringArrayVarP(&opt.mockConfig, "mock-config", "", nil, "The mock config files")
103103
flags.StringVarP(&opt.mockPrefix, "mock-prefix", "", "/mock", "The mock server API prefix")
104104
flags.StringVarP(&opt.extensionRegistry, "extension-registry", "", "docker.io", "The extension registry URL")
105-
flags.DurationVarP(&opt.downloadTimeout, "download-timeout", "", time.Second*10, "The timeout of extension download")
105+
flags.DurationVarP(&opt.downloadTimeout, "download-timeout", "", time.Minute, "The timeout of extension download")
106106

107107
// gc related flags
108108
flags.IntVarP(&opt.gcPercent, "gc-percent", "", 100, "The GC percent of Go")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const executeQuery = async () => {
115115
</el-col>
116116
<el-col :span="18">
117117
<el-form-item>
118-
<el-input v-model="sqlQuery" :placeholder="queryTip"></el-input>
118+
<el-input v-model="sqlQuery" :placeholder="queryTip" @keyup.enter="executeQuery"></el-input>
119119
</el-form-item>
120120
</el-col>
121121
<el-col :span="2">

pkg/server/store_ext_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (s *storeExtManager) Start(name, socket string) (err error) {
103103
} else {
104104
binaryPath, err = s.execer.LookPath(name)
105105
if err != nil {
106-
err = fmt.Errorf("not found extension, try to download it.")
106+
err = fmt.Errorf("not found extension, try to download it, error: %v", err)
107107
go func() {
108108
reader, dErr := s.ociDownloader.Download(name, "", "")
109109
if dErr != nil {

tools/make/run.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ run-server: ## Run the API Testing server
1313
run-server: build-ui run-backend
1414
run-backend:
1515
go run . server --local-storage 'bin/*.yaml' --console-path ${ATEST_UI}/dist \
16-
--extension-registry ghcr.io --download-timeout 90s
16+
--extension-registry ghcr.io --download-timeout 10m
1717

1818
.PHONY: run-console
1919
run-console: ## Run the API Testing console

0 commit comments

Comments
 (0)