Merged in feature/richname (pull request #112)

Standardised rich name for Files

* tests
This commit is contained in:
Michael McGuinness
2025-04-03 19:17:24 +00:00
parent 1d49313a9f
commit 60812aba91
31 changed files with 744 additions and 601 deletions
+6 -8
View File
@@ -40,18 +40,16 @@ func (s *Service) Process(ctx context.Context, params Params) error {
case objectstore.Import:
queueParams.QueueURL = s.cfg.GetDocInitURL()
queueParams.Body = docinitrunner.Body{
Bucket: params.Bucket,
Key: params.Key,
Hash: params.Hash,
ClientID: key.ClientID,
Bucket: params.Bucket,
Key: params.Key,
Hash: params.Hash,
}
case objectstore.TextTextract:
queueParams.QueueURL = s.cfg.GetDocumentTextProcessURL()
queueParams.Body = doctextprocessrunner.Body{
Bucket: params.Bucket,
Key: params.Key,
Hash: params.Hash,
ClientID: key.ClientID,
Bucket: params.Bucket,
Key: params.Key,
Hash: params.Hash,
}
default:
slog.Info("unsupported key", "key", params.Key)
-2
View File
@@ -60,7 +60,6 @@ func TestProcess(t *testing.T) {
location := objectstore.BucketKey{
ClientID: "7db16095-9155-47d4-8004-b3b3ead93c83",
Location: objectstore.Import,
Filename: "aaa",
CreatedAt: time.Now().UTC(),
}
err := svc.Process(ctx, Params{
@@ -83,7 +82,6 @@ func TestProcess(t *testing.T) {
location := objectstore.BucketKey{
ClientID: "7db16095-9155-47d4-8004-b3b3ead93c83",
Location: objectstore.TextTextract,
Filename: "aaa",
CreatedAt: time.Now().UTC(),
}
err := svc.Process(ctx, Params{