docs(soft-delete): spec wykonalności soft-delete dla 5 typów publikacji (ODŁOŻONE)#304
Closed
mpasternak wants to merge 1 commit into
Closed
docs(soft-delete): spec wykonalności soft-delete dla 5 typów publikacji (ODŁOŻONE)#304mpasternak wants to merge 1 commit into
mpasternak wants to merge 1 commit into
Conversation
…ji (ODŁOŻONE) Analiza wprowadzenia soft-delete dla Wydawnictwo_Ciagle/Zwarte, Praca_Doktorska, Praca_Habilitacyjna, Patent. Status: świadomie odłożone — to spec/rozpoznanie, nie zlecenie implementacji. Kluczowe ustalenia: - choke-point w triggerze bpp_refresh_cache(): "deleted_at IS NOT NULL" traktowany jak DELETE → wszystko czytające przez Rekord/Cache_* czyści się jednym ruchem, - django-soft-delete już w repo (pyproject.toml), precedens w zglos_publikacje; domyślny manager ukrywa usunięte → kat. A czysta za darmo, kat. B (import/dedup/PBN) musi przejść na global_objects, - kaskada/auto-undelete pakietu zweryfikowana w kodzie: strict=True wymaga by dzieci były SoftDeleteModel → rekomendacja Projekt A (override delete(), dzieci nietknięte, cache/trigger robi resztę), - slug unique → warunkowy UniqueConstraint(deleted_at__isnull=True), - szacunek ~2-3 tygodnie; otwarte decyzje spisane. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 4, 2026
Open
Member
Author
|
Zastąpiony przez #312 — pełny projekt wdrożeniowy (spec rozszerzony o autorów/PBN/log/admin) + 9 planów implementacyjnych TDD. Ten PR zawierał tylko wczesny feasibility-spec (publikacje, ODŁOŻONY). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dokumentacja-only. Dodaje spec wykonalności soft-delete dla
Wydawnictwo_Ciagle/Zwarte,Praca_Doktorska,Praca_Habilitacyjna,Patent.Refs #303
Co w środku
bpp_refresh_cache():deleted_at IS NOT NULLtraktowany jak
DELETE→ wszystko czytające przezRekord/Cache_*czyści się jednym ruchem.
django-soft-delete(już w repo, precedenszglos_publikacje): ekspozycja (API/dashboard/autocomplete/browse) czystaza darmo; kat. B (import/dedup/PBN) musi przejść na
global_objects.strict=Truewymaga, by dzieci były
SoftDeleteModel→ rekomendacja Projekt A(override
delete(),*_Autornietknięte, trigger odtwarza przy restore).slug unique→ warunkowyUniqueConstraint(deleted_at__isnull=True).Plik
docs/superpowers/specs/2026-06-03-soft-delete-publikacje.mdUwagi do mergowania
Zmiana czysto dokumentacyjna — nie rusza kodu, modeli ani migracji.
Bezpieczna do merge'a niezależnie od decyzji o samej funkcjonalności.
🤖 Generated with Claude Code