-
Notifications
You must be signed in to change notification settings - Fork 10
feat: file upload to object storage and then async file verification #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
f265e47
a427be9
2c92de2
9e0260d
7d0940c
0752310
5cc3aba
9737cfe
5c642a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -19,7 +19,7 @@ embedded-db = ["dep:postgresql_embedded"] | |||||
|
|
||||||
| [dependencies] | ||||||
| axum = { version = "0.8", features = ["multipart"] } | ||||||
| fusillade = { version = "14.2.1" } | ||||||
| fusillade = { version = "14.2.1", path = "../../fusillade" } | ||||||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume this needs bumping when https://github.com/doublewordai/fusillade/pull/207/changes is merged in.
|
||||||
| fusillade = { version = "14.2.1", path = "../../fusillade" } | |
| fusillade = "14.2.1" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| CREATE TABLE IF NOT EXISTS file_ingest_jobs ( | ||
| file_id UUID PRIMARY KEY, | ||
| object_key TEXT NOT NULL, | ||
| status TEXT NOT NULL CHECK (status IN ('pending', 'processing', 'processed', 'failed')), | ||
| error_message TEXT, | ||
| created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), | ||
| updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW() | ||
| ); | ||
|
|
||
| CREATE INDEX IF NOT EXISTS idx_file_ingest_jobs_status ON file_ingest_jobs(status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The UI only disables View/Download actions when
file.status === "error", but in the new async-ingest flow files can be in"uploaded"(pending/processing). In that state the backend won’t have templates/results available yet, so these actions will likely show empty content or confusing errors. Consider also disabling (or showing a distinct “processing” tooltip/state) whenstatus !== "processed".