Merged in feature/postprocessing (pull request #114)

Feature/postprocessing

* tests

* passtest

* fixshorttests

* mosttests

* improvingbasedockerfile

* testspeeds

* testing

* host

* canparallel

* clean

* passfullsuite

* singlepagemax

* test

* findfeatures

* findstables

* tbls

* tablestoo

* tablestoo

* lateraltests

* tableloc

* cleanup

* inlinetable

* childids

* cleanup

* tests
This commit is contained in:
Michael McGuinness
2025-04-22 14:40:16 +00:00
parent edc50c7510
commit fee71e7740
404 changed files with 211048 additions and 2820 deletions
+3 -6
View File
@@ -6,7 +6,6 @@ import (
resultset "queryorchestration/internal/query/result/set"
"github.com/go-playground/validator/v10"
"github.com/google/uuid"
)
@@ -17,14 +16,12 @@ type Services struct {
}
type Runner struct {
validator *validator.Validate
svc *Services
svc *Services
}
func New(validator *validator.Validate, svc *Services) Runner {
func New(svc *Services) Runner {
return Runner{
validator: validator,
svc: svc,
svc: svc,
}
}
+3 -4
View File
@@ -17,7 +17,6 @@ import (
queuemock "queryorchestration/mocks/queue"
"github.com/aws/aws-sdk-go-v2/service/sqs"
"github.com/go-playground/validator/v10"
"github.com/google/uuid"
"github.com/pashagolub/pgxmock/v3"
"github.com/stretchr/testify/assert"
@@ -44,7 +43,7 @@ func TestQueryRunner(t *testing.T) {
cfg.QueryURL = "/i/am/here"
que := query.New(cfg)
runner := queryrunner.New(validator.New(), &queryrunner.Services{
runner := queryrunner.New(&queryrunner.Services{
ResultSet: resultset.New(cfg, &resultset.Services{
Query: que,
Result: result.New(cfg, &result.Services{
@@ -76,8 +75,8 @@ func TestQueryRunner(t *testing.T) {
textEntryId := uuid.New()
pool.ExpectQuery("name: GetTextEntryByDocId :one").WithArgs(params.DocumentID).
WillReturnRows(
pgxmock.NewRows([]string{"id", "documentId", "bucket", "key", "hash", "cleanId", "triggerId", "textractJobId", "triggerVersion", "extractionVersion"}).
AddRow(textEntryId, params.DocumentID, "buket", "/i/am/here", "example", uuid.New(), uuid.New(), "jobId", int64(123), int64(543)),
pgxmock.NewRows([]string{"id", "documentId", "bucket", "key", "hash", "cleanId", "extractionVersion"}).
AddRow(textEntryId, params.DocumentID, "buket", "/i/am/here", "example", uuid.New(), int64(543)),
)
pool.ExpectQuery("name: GetQuery :one").WithArgs(query.ID).WillReturnRows(
pgxmock.NewRows([]string{"id", "type", "activeVersion", "latestVersion", "config", "requiredIds"}).