Merged in feature/textextraction (pull request #110)

Text Extraction

* bases

* go

* splitting

* structure

* movetoasync

* movetoasync

* settinguptrigger

* reorder

* storevent

* standardisepollingvalidation

* unittests

* fixlint

* fixlint

* awscfg

* generatesample

* followthrough

* tests

* clena

* store

* externalidcleanup

* clientid

* local

* baseunittests

* putobjecttests

* tests
This commit is contained in:
Michael McGuinness
2025-04-02 18:50:03 +00:00
parent e6a4cb3990
commit 81e7223560
226 changed files with 17283 additions and 2744 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (s *Service) Sync(ctx context.Context, id uuid.UUID) error {
err = s.cfg.SendToQueue(ctx, &queue.SendParams{
QueueURL: s.cfg.GetDocumentCleanURL(),
Body: doccleanrunner.Body{
ID: id,
DocumentID: id,
},
})
if err != nil {
+3 -3
View File
@@ -37,7 +37,7 @@ func TestSync(t *testing.T) {
})
j := client.Client{
ID: uuid.New(),
ID: "clientid",
CanSync: true,
}
doc := document.DocumentSummary{
@@ -52,8 +52,8 @@ func TestSync(t *testing.T) {
AddRow(doc.ID, doc.ClientID, doc.Hash),
)
pool.ExpectQuery("name: GetClient :one").WithArgs(j.ID).WillReturnRows(
pgxmock.NewRows([]string{"id", "externalId", "name", "canSync"}).
AddRow(j.ID, "id", "client_name", true),
pgxmock.NewRows([]string{"id", "name", "canSync"}).
AddRow(j.ID, "client_name", true),
)
mockSQS.EXPECT().