Merged in feature/remove-query (pull request #201)
remove query from codebase part 1 * remove query * fix localstack run
This commit is contained in:
+3
-26
@@ -4,13 +4,13 @@
|
||||
//
|
||||
// - Client - A client is a single client of the Doczy project, all configurations and clients for a client will be in reference to the respective client.
|
||||
//
|
||||
// - Collector - A collector specifies the required queries for export for a given client.
|
||||
// - Collector - A collector specifies document processing settings for a given client.
|
||||
//
|
||||
// - Sample - A sample is a subset of documents to be used for testing. When it is active a client will only process documents in the sample.
|
||||
//
|
||||
// - Query - A query is a block of processing of data which takes an input and produces an output.
|
||||
//
|
||||
// - Export - An export is a manually started process which outputs the results for a client to a given location.
|
||||
//
|
||||
// Note: Query functionality has been removed from this API. See remove_query_plan.md for details.
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -28,14 +28,11 @@ import (
|
||||
"queryorchestration/internal/fieldextraction"
|
||||
"queryorchestration/internal/folder"
|
||||
"queryorchestration/internal/label"
|
||||
"queryorchestration/internal/query"
|
||||
"queryorchestration/internal/query/result"
|
||||
"queryorchestration/internal/server/api"
|
||||
"queryorchestration/internal/serviceconfig"
|
||||
"queryorchestration/internal/serviceconfig/build"
|
||||
"queryorchestration/internal/serviceconfig/objectstore"
|
||||
"queryorchestration/internal/serviceconfig/queue/clientsync"
|
||||
"queryorchestration/internal/serviceconfig/queue/queryversionsync"
|
||||
|
||||
queryapi "queryorchestration/api/queryAPI"
|
||||
documentbatch "queryorchestration/internal/document/batch"
|
||||
@@ -45,9 +42,6 @@ import (
|
||||
|
||||
collectorset "queryorchestration/internal/collector/set"
|
||||
|
||||
querytest "queryorchestration/internal/query/test"
|
||||
queryupdate "queryorchestration/internal/query/update"
|
||||
|
||||
"github.com/getkin/kin-openapi/openapi3"
|
||||
_ "github.com/lib/pq"
|
||||
)
|
||||
@@ -55,7 +49,6 @@ import (
|
||||
type QueryAPIConfig struct {
|
||||
api.BaseConfig
|
||||
clientsync.ClientSyncConfig
|
||||
queryversionsync.QueryVersionSyncConfig
|
||||
objectstore.ObjectStoreConfig
|
||||
BackgroundRunner *backgroundtask.Runner
|
||||
}
|
||||
@@ -70,10 +63,6 @@ func main() {
|
||||
|
||||
cfg.RegisterHandlersFunc = func() (*openapi3.T, error) {
|
||||
exp := export.New()
|
||||
que := query.New(cfg)
|
||||
res := result.New(cfg, &result.Services{
|
||||
Query: que,
|
||||
})
|
||||
col := collector.New(cfg)
|
||||
colupdate := collectorset.New(cfg, &collectorset.Services{
|
||||
Collector: col,
|
||||
@@ -85,15 +74,6 @@ func main() {
|
||||
doc := document.New(cfg)
|
||||
docup := documentupload.New(cfg)
|
||||
docbatch := documentbatch.New(cfg)
|
||||
quetest := querytest.New(cfg, &querytest.Services{
|
||||
Collector: col,
|
||||
Result: res,
|
||||
Document: doc,
|
||||
})
|
||||
qupdate := queryupdate.New(cfg, &queryupdate.Services{
|
||||
Query: que,
|
||||
})
|
||||
|
||||
fieldext := fieldextraction.New(cfg)
|
||||
fld := folder.New(cfg)
|
||||
lbl := label.New(cfg)
|
||||
@@ -102,9 +82,6 @@ func main() {
|
||||
Export: exp,
|
||||
Collector: col,
|
||||
CollectorSet: colupdate,
|
||||
Query: que,
|
||||
QueryUpdate: qupdate,
|
||||
QueryTest: quetest,
|
||||
Client: cli,
|
||||
ClientUpdate: cliUpdate,
|
||||
Document: doc,
|
||||
|
||||
Reference in New Issue
Block a user