images: nur freigegebene Bilder in Feed und PDF, versionierte Veröffentlichungssnapshots, Bestätigung an das gezeigte Bild gebunden, getrennte Rückhaltegründe (Umsetzungsaudit 29.09.: B-01 bis B-14, N09, OPT-3 bis OPT-5; 02.10.: O03)
- B-01/B-02: Startseiten-Feed, Card-Helfer und Nachweis-PDF nur mit isPubliclyDeliverable() - B-03: Livewire-Temp-Upload 16 MiB - N09: Snapshot je Bytes- und Metadaten-Hash inkl. OG-Variante, put() geprüft, alle Fassungen ins Archiv - O03: published_ever_at in der Freigabetransaktion (markPublishedIfNowPublic) — Kundenbestätigung, Vorab-Sichtung, Korrektur - B-04/B-14: Bestätigung an Bild-ID und SHA gebunden, unter Sperre - B-05/B-06: Entfernen unter Sperre mit frischem Stand und Archivauftrag; Korrektur archiviert über den Auftrag, Nacharbeiten abgesichert - B-07: precheck_withheld_at getrennt von withheld_at (Migration + Übernahme) - B-08, B-09, B-11, B-12: published_ever_at nur bei Status published, Admin-Eigentümer mit Kundenregel, Sweep verwaister Originale, Verarbeitungsfehler als Formularmeldung - K-02-Teil: nach Kundenbestätigung erneut routen - OPT-3 bis OPT-5: pingImage für JPEG, Hash durchgereicht, erstes Frame Admin-PM-Detailseite enthält zusätzlich K-06 (Autorisierung) und A-08 (Nachweis per POST), weil die Datei ungeteilt committet ist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
60650baeb8
commit
f1c0e2766b
23 changed files with 1675 additions and 149 deletions
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Umsetzungsaudit 29.09.2026, B-07: Vorab-Sichtung (Block K) und
|
||||
* Korrekturweg (E.6) teilten sich `withheld_at`. Die Sichtung bekommt einen
|
||||
* eigenen Grund; `withheld_at` bleibt der Rückhalt aus dem Korrekturweg.
|
||||
* Öffentlich ausgeliefert wird nur, wenn beide leer sind.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('press_release_images', function (Blueprint $table) {
|
||||
$table->timestamp('precheck_withheld_at')->nullable()->after('withheld_at');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('press_release_images', function (Blueprint $table) {
|
||||
$table->dropColumn('precheck_withheld_at');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* Umsetzungsaudit 29.09.2026, B-07: bestehende Rückhalte der Vorab-Sichtung
|
||||
* übernehmen. Ein Bild mit offener Sichtung und gesetztem `withheld_at`
|
||||
* wandert auf `precheck_withheld_at`; `withheld_at` bleibt nur stehen, wenn
|
||||
* der jüngste Korrektureintrag zum Rückhalt „zurückgehalten" lautet.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
$pending = DB::table('press_release_images')
|
||||
->whereNotNull('precheck_review_required_at')
|
||||
->whereNull('precheck_reviewed_at')
|
||||
->whereNotNull('withheld_at')
|
||||
->get(['id', 'withheld_at']);
|
||||
|
||||
foreach ($pending as $image) {
|
||||
$latestCorrection = DB::table('image_declaration_corrections')
|
||||
->where('press_release_image_id', $image->id)
|
||||
->where('field', 'withheld')
|
||||
->orderByDesc('id')
|
||||
->value('new_value');
|
||||
|
||||
DB::table('press_release_images')->where('id', $image->id)->update([
|
||||
'precheck_withheld_at' => $image->withheld_at,
|
||||
'withheld_at' => $latestCorrection === '1' ? $image->withheld_at : null,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('press_release_images')
|
||||
->whereNotNull('precheck_withheld_at')
|
||||
->whereNull('withheld_at')
|
||||
->update(['withheld_at' => DB::raw('precheck_withheld_at')]);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue