audit: Nacharbeit Umsetzungsaudit 25.09.2026 — Bildfreigabe, Beweisarchiv, KI-Atomarität, Berichte (Block 8, N01–N05, N07, N08, N10–N21, 5.1, 5.2)
Bilder (N01, N05, N07, N08): gemeinsamer Freigabezustand PressReleaseImage::isPubliclyDeliverable() für Seiten, OG und Medienroute (Bestand bleibt sichtbar, v2 nur mit Bestätigung, Admin-Upload bis zum Kundenklick nicht öffentlich); eigene Ability confirmImageRights nur für den Kontoinhaber, ohne Super-Admin-Kurzschluss, Identität und ausstehende Bestätigung auch im Service; Status-Regel unter der PM-Sperre; Cache-Flush nach dem Commit außerhalb der Dateibereinigung; Snapshot nach Bestätigung an veröffentlichter PM; Bestätigungstexte an die gezeigte Kennung gebunden. Beweisarchiv (N02, N10, N11, N12, N13, 5.1): Tombstone unter Zeilensperre mit erneuter Hold-/Fristprüfung; Dateioperationen ausgewertet, Commands mit FAILURE; record() über .tmp + move; Marker archive_pending_at mit archive:retry-pending und archive:sweep-orphans; Anonymisierung entfernt Bilder über den Remover mit Antragsbezug; Draft-Purge räumt Medien nie veröffentlichter abgelehnter Einreichungen; App-Kopien fallen mit dem Archiv-Tombstone; label_corrected nur für veröffentlichte Bilder; archive_entries.legal_request_id; FileDeletion-Helfer; Systemstatus-Checks. KI und Hintergrund (N03, N04, N14, N20, N21): Ergebnis-UPDATE und Audit in einer Transaktion; erwarteter Hash bis in reject()/holdForManualReview(); Ablaufmail per beanspruchtem Marker in einer Transaktion; strikte Schemaprüfung der Vision-Antwort; Fortschrittsmarke ungecacht. Berichte und Canonical (N15–N19, 5.2): lückenlose Alterskohorten; Feed-Identität mit Portal und Sprache; Sitemap-Rolle in der Kundenansicht; Indexverteilung auf einer Grundgesamtheit; Kopien nach Wegfall der Erstquelle neu bewertet; Kategorie-Admin leert Seiten-Caches; Dry-Run zählt alle Tabellen. Gesamtsuite: 2.122 Tests grün, einer übersprungen; Larastan und Pint sauber. Zwei Migrationen (nullable Spalten, INSTANT). N09 offen. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
34fa342c7f
commit
2a2215b3c3
66 changed files with 3092 additions and 368 deletions
|
|
@ -27,6 +27,10 @@ new #[Layout('components.layouts.app'), Title('Beweisarchiv')] class extends Com
|
|||
#[Url]
|
||||
public string $subject = '';
|
||||
|
||||
/** Vorgang im Meldeverfahren (legal_requests.id, 5.1 d). */
|
||||
#[Url]
|
||||
public string $legalRequest = '';
|
||||
|
||||
public ?int $holdEntryId = null;
|
||||
|
||||
public string $holdNote = '';
|
||||
|
|
@ -47,14 +51,22 @@ new #[Layout('components.layouts.app'), Title('Beweisarchiv')] class extends Com
|
|||
['holdNote.required' => __('Bitte begründen Sie das Setzen bzw. Aufheben (Pflichtvermerk).')],
|
||||
);
|
||||
|
||||
$entry->legal_hold
|
||||
? $archive->releaseLegalHold($entry, auth()->user(), $this->holdNote)
|
||||
: $archive->setLegalHold($entry, auth()->user(), $this->holdNote);
|
||||
try {
|
||||
$entry->legal_hold
|
||||
? $archive->releaseLegalHold($entry, auth()->user(), $this->holdNote)
|
||||
: $archive->setLegalHold($entry, auth()->user(), $this->holdNote);
|
||||
} catch (\RuntimeException $exception) {
|
||||
// Eintrag wurde zwischenzeitlich nach Fristablauf gelöscht (N02).
|
||||
$this->holdEntryId = null;
|
||||
Flux::toast(text: $exception->getMessage(), variant: 'danger');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->holdEntryId = null;
|
||||
$this->holdNote = '';
|
||||
|
||||
Flux::toast(text: $entry->fresh()->legal_hold ? __('Legal Hold gesetzt.') : __('Legal Hold aufgehoben, Frist läuft neu.'), variant: 'success');
|
||||
Flux::toast(text: $entry->legal_hold ? __('Legal Hold gesetzt.') : __('Legal Hold aufgehoben, Frist läuft neu.'), variant: 'success');
|
||||
}
|
||||
|
||||
public function with(): array
|
||||
|
|
@ -71,6 +83,10 @@ new #[Layout('components.layouts.app'), Title('Beweisarchiv')] class extends Com
|
|||
});
|
||||
}
|
||||
|
||||
if ($this->legalRequest !== '') {
|
||||
$query->where('legal_request_id', (int) $this->legalRequest);
|
||||
}
|
||||
|
||||
return [
|
||||
'entries' => $query->paginate(50),
|
||||
'events' => ArchiveEvent::cases(),
|
||||
|
|
@ -94,6 +110,7 @@ new #[Layout('components.layouts.app'), Title('Beweisarchiv')] class extends Com
|
|||
@endforeach
|
||||
</flux:select>
|
||||
<flux:input wire:model.live.debounce.400ms="subject" size="sm" :placeholder="__('PM- oder Bild-ID')" class="w-40" />
|
||||
<flux:input wire:model.live.debounce.400ms="legalRequest" size="sm" :placeholder="__('Vorgang (Antrags-ID)')" class="w-44" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -127,6 +144,9 @@ new #[Layout('components.layouts.app'), Title('Beweisarchiv')] class extends Com
|
|||
@if ($entry->press_release_id)
|
||||
· <a class="underline underline-offset-2" href="{{ route('admin.press-releases.show', ['id' => $entry->press_release_id]) }}" wire:navigate>PM #{{ $entry->press_release_id }}</a>
|
||||
@endif
|
||||
@if ($entry->legal_request_id)
|
||||
· <button type="button" class="underline underline-offset-2" wire:click="$set('legalRequest', '{{ $entry->legal_request_id }}')">{{ __('Vorgang') }} #{{ $entry->legal_request_id }}</button>
|
||||
@endif
|
||||
</td>
|
||||
<td class="py-2 pr-3">{{ $entry->reason_category->label() }}</td>
|
||||
<td class="py-2 pr-3 whitespace-nowrap">{{ $entry->created_at?->format('d.m.Y H:i') }}</td>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
use App\Enums\Portal;
|
||||
use App\Models\Category;
|
||||
use App\Models\CategoryTranslation;
|
||||
use App\Support\WebCaches;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Validation\Rule;
|
||||
use Livewire\Attributes\Layout;
|
||||
|
|
@ -80,8 +81,11 @@ new #[Layout('components.layouts.app'), Title('Kategorie bearbeiten')] class ext
|
|||
return;
|
||||
}
|
||||
|
||||
DB::transaction(function (): void {
|
||||
$publicChanged = false;
|
||||
|
||||
DB::transaction(function () use (&$publicChanged): void {
|
||||
$category = Category::query()->findOrFail($this->id);
|
||||
$previousSlugs = $category->translations()->pluck('slug', 'locale')->all();
|
||||
|
||||
$category->update([
|
||||
'parent_id' => $this->parentId ?: null,
|
||||
|
|
@ -92,6 +96,13 @@ new #[Layout('components.layouts.app'), Title('Kategorie bearbeiten')] class ext
|
|||
$slugDe = CategoryTranslation::uniqueSlug($this->slugDe, 'de', $category->id);
|
||||
$slugEn = CategoryTranslation::uniqueSlug($this->slugEn, 'en', $category->id);
|
||||
|
||||
// Sichtbarkeit, Portal oder Adresse geändert: Branchenseite,
|
||||
// Navigation und Kategorienfeed liegen bis zu einer Stunde im
|
||||
// Seiten-Cache — den alten Stand nicht nachhängen lassen.
|
||||
$publicChanged = $category->wasChanged(['is_active', 'portal', 'parent_id'])
|
||||
|| ($previousSlugs['de'] ?? null) !== $slugDe
|
||||
|| ($previousSlugs['en'] ?? null) !== $slugEn;
|
||||
|
||||
$category->translations()->updateOrCreate(
|
||||
['locale' => 'de'],
|
||||
[
|
||||
|
|
@ -114,6 +125,10 @@ new #[Layout('components.layouts.app'), Title('Kategorie bearbeiten')] class ext
|
|||
$this->slugEn = $slugEn;
|
||||
});
|
||||
|
||||
if ($publicChanged) {
|
||||
WebCaches::forgetPublicPages();
|
||||
}
|
||||
|
||||
session()->flash('success', __('Kategorie wurde aktualisiert.'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue