Accept a capture whose title was typed when nothing could be read (#710) #1069

Merged
tiagoagueda merged 1 commit from 710-capture-corrections into main 2026-10-27 23:48:01 +00:00
Owner

The extension lets a person correct every field before sending, but the capture endpoint
refused a page its parsers read nothing from before looking at what was sent with it, so a
posting typed in full by hand was turned away as having nothing in it. The endpoint now
judges the capture as sent: when the page yields nothing and corrections came with it, they
are the capture, and a title among them is enough. The review screen and the capture list
say that nothing read it rather than naming a source.

With no title read and none typed it is still refused: the old 422 when nothing was sent
with it, and a problem document naming data.title when corrections came without one. A
preview, which carries no corrections, is refused as before. Nothing is learned from such a
capture's corrections, since there is no reading to compare them with.

Closes #710

🤖 Generated with Claude Code

The extension lets a person correct every field before sending, but the capture endpoint refused a page its parsers read nothing from before looking at what was sent with it, so a posting typed in full by hand was turned away as having nothing in it. The endpoint now judges the capture as sent: when the page yields nothing and corrections came with it, they are the capture, and a title among them is enough. The review screen and the capture list say that nothing read it rather than naming a source. With no title read and none typed it is still refused: the old 422 when nothing was sent with it, and a problem document naming `data.title` when corrections came without one. A preview, which carries no corrections, is refused as before. Nothing is learned from such a capture's corrections, since there is no reading to compare them with. Closes #710 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Accept a capture whose title was typed when nothing could be read (#710)
Some checks failed
CI / Security audit (push) Successful in 45s
CI / Unit tests and coverage (Python 3.14) (pull_request) Has been cancelled
CI / Checks: lint, migrations, catalogues, settings, built files (pull_request) Has been cancelled
CI / Database tests on PostgreSQL (pull_request) Has been cancelled
CI / Security audit (pull_request) Has been cancelled
CI / Browser tests (Chromium) (pull_request) Has been cancelled
CI / Unit tests and coverage (Python 3.14) (push) Successful in 13m27s
CI / Database tests on PostgreSQL (push) Successful in 3m33s
CI / Checks: lint, migrations, catalogues, settings, built files (push) Successful in 2m47s
CI / Browser tests (Chromium) (push) Successful in 32m6s
Every Python / Unit tests (Python 3.12) (push) Successful in 12m41s
Every Python / Unit tests (Python 3.13) (push) Has been cancelled
50a419b8ae
The extension lets a person correct every field before sending, but the capture endpoint
refused a page its parsers read nothing from before looking at what was sent with it, so a
posting typed in full by hand was turned away as having nothing in it. The endpoint now
judges the capture as sent: when the page yields nothing and corrections came with it, they
are the capture, and a title among them is enough. The review screen and the capture list
say that nothing read it rather than naming a source.

With no title read and none typed it is still refused: the old 422 when nothing was sent
with it, and a problem document naming `data.title` when corrections came without one. A
preview, which carries no corrections, is refused as before. Nothing is learned from such a
capture's corrections, since there is no reading to compare them with.

Closes #710

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tiagoagueda force-pushed 710-capture-corrections from 50a419b8ae
Some checks failed
CI / Security audit (push) Successful in 45s
CI / Unit tests and coverage (Python 3.14) (pull_request) Has been cancelled
CI / Checks: lint, migrations, catalogues, settings, built files (pull_request) Has been cancelled
CI / Database tests on PostgreSQL (pull_request) Has been cancelled
CI / Security audit (pull_request) Has been cancelled
CI / Browser tests (Chromium) (pull_request) Has been cancelled
CI / Unit tests and coverage (Python 3.14) (push) Successful in 13m27s
CI / Database tests on PostgreSQL (push) Successful in 3m33s
CI / Checks: lint, migrations, catalogues, settings, built files (push) Successful in 2m47s
CI / Browser tests (Chromium) (push) Successful in 32m6s
Every Python / Unit tests (Python 3.12) (push) Successful in 12m41s
Every Python / Unit tests (Python 3.13) (push) Has been cancelled
to ff46eacc2e
Some checks failed
CI / Checks: lint, migrations, catalogues, settings, built files (push) Successful in 3m11s
CI / Database tests on PostgreSQL (push) Successful in 4m13s
CI / Security audit (push) Successful in 1m5s
CI / Browser tests (Chromium) (push) Failing after 33m58s
Every Python / Unit tests (Python 3.12) (push) Successful in 13m47s
CI / Checks: lint, migrations, catalogues, settings, built files (pull_request) Successful in 2m59s
CI / Unit tests and coverage (Python 3.14) (push) Successful in 13m26s
Every Python / Unit tests (Python 3.13) (push) Successful in 14m11s
CI / Unit tests and coverage (Python 3.14) (pull_request) Successful in 13m12s
CI / Database tests on PostgreSQL (pull_request) Successful in 4m15s
CI / Security audit (pull_request) Successful in 1m3s
CI / Browser tests (Chromium) (pull_request) Failing after 33m32s
2026-10-27 23:46:39 +00:00
Compare
tiagoagueda deleted branch 710-capture-corrections 2026-10-27 23:48:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Postulo/postulo!1069
No description provided.