You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Harden Readme.CAML edit lock ordering; track description follow-ups (#1848)
- caml_article: acquire a row lock on the Corpus inside the atomic CAML
edit block (select_for_update) so a concurrent corpus delete or
readme_caml_document cache refresh cannot race between the Document
lock and import_document. Documents the Document -> Corpus ->
DocumentPath lock order (issue #1848 item 5).
- descriptions/signals: replace bare follow-up prose with TODO(#1848)
references for threading the live caller through get_corpus_description
and for the readme-document signal-guard hardening (items 1 and 3).
* Revert historical migration 0018; fix CAML test class typo (#1848)
- Restore opencontractserver/corpuses/migrations/0018_* to its pre-#1825
contents (the no-op RunPython appended in #1825 mutated an
already-shipped migration, which can diverge migration hash-checks in
CI). The op was a no-op so reverting has no schema/data effect
(issue #1848 item 6).
- Rename test class AapplyCamlArticleEditCreatesVersionTreeSiblingTest ->
ApplyCamlArticleEditCreatesVersionTreeSiblingTest (merge-artifact typo).
* Restore migration 0018 inline upload_to helper (#1848)
The prior revert (b504705) reintroduced a dangling reference to
opencontractserver.corpuses.models.calculate_description_filepath, which
the canonical-CAML refactor (#1825) removed. Django cannot import the
historical migration, breaking the test suite. Restore the inlined
calculate_description_filepath callable so 0018 stays importable on
fresh installs.
https://claude.ai/code/session_01Wa4U1t8WG2uAff2JY9d7z1
* Address PR #1855 review: clarify DocumentPath lock comment
The lock-order comment implied DocumentPath is always locked inside
import_document; it is locked via .select_for_update().first() only when the
path already exists (the new-document case has no row to lock). Comment-only;
no behavior change.
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments