Skip to content

Commit e7b604b

Browse files
committed
Add new field proecesing_deadline to expiry
1 parent 683f151 commit e7b604b

File tree

9 files changed

+24
-18
lines changed

9 files changed

+24
-18
lines changed

database/migrations/2024_09_18_140437_create_expiries_table.php renamed to database/migrations/2024_11_27_073748_create_expiries_table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?php
22

3-
use Illuminate\Database\Migrations\Migration;
4-
use Illuminate\Database\Schema\Blueprint;
53
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
66

7-
return new class extends Migration
8-
{
7+
return new class extends Migration {
98
/**
109
* Run the migrations.
1110
*/
@@ -22,6 +21,7 @@ public function up(): void
2221
$table->string('category')->nullable();
2322
$table->string('status')->nullable();
2423
$table->dateTime('expired_at');
24+
$table->dateTime('processing_deadline')->nullable();
2525
$table->string('cycle')->nullable();
2626
$table->dateTime('notified_at')->nullable();
2727
$table->unsignedBigInteger('notified_to')->nullable();

packages/expiry/database/migrations/create_expiries_table.php.stub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ return new class extends Migration {
2121
$table->string('category')->nullable();
2222
$table->string('status')->nullable();
2323
$table->dateTime('expired_at');
24+
$table->dateTime('processing_deadline')->nullable();
2425
$table->string('cycle')->nullable();
2526
$table->dateTime('notified_at')->nullable();
2627
$table->unsignedBigInteger('notified_to')->nullable();

packages/expiry/src/Jobs/CollectExpiries.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function handle()
3636
{
3737
$this->setProgress(1);
3838

39-
// Beispiel-Daten (du kannst beliebige Demo-Daten hinzufügen)
39+
// Example data (you can add any demo data)
4040
$demoData = [
4141
[
4242
'title' => 'Demo Document 1',
@@ -45,6 +45,7 @@ public function handle()
4545
'category' => 'Documents',
4646
'status' => 'active',
4747
'expired_at' => Carbon::now()->addDays(30),
48+
'processing_deadline' => Carbon::now()->addDays(20),
4849
'notified_to' => 1,
4950
'escalated_to' => 2,
5051
'handled_by' => 3,
@@ -57,6 +58,7 @@ public function handle()
5758
'category' => 'Articles',
5859
'status' => 'inactive',
5960
'expired_at' => Carbon::now()->addDays(60),
61+
'processing_deadline' => Carbon::now()->addDays(30),
6062
'notified_to' => 2,
6163
'escalated_to' => 3,
6264
'handled_by' => 1,
@@ -69,6 +71,7 @@ public function handle()
6971
'category' => 'Tasks',
7072
'status' => 'active',
7173
'expired_at' => Carbon::now()->addDays(90),
74+
'processing_deadline' => Carbon::now()->addDays(50),
7275
'notified_to' => 3,
7376
'escalated_to' => 1,
7477
'handled_by' => 2,
@@ -91,11 +94,12 @@ public function handle()
9194
'category' => $data['category'],
9295
'status' => $data['status'],
9396
'expired_at' => $data['expired_at'],
97+
'processing_deadline' => $data['processing_deadline'],
9498
'notified_to' => $data['notified_to'],
9599
'escalated_to' => $data['escalated_to'],
96100
'handled_by' => $data['handled_by'],
97101
'done_at' => $data['done_at'],
98-
'cycle' => array_rand($cycleOptions), // Zufälliger Turnus
102+
'cycle' => array_rand($cycleOptions), // Random cycle
99103
'meta_id' => null,
100104
'notified_at' => Carbon::now(),
101105
'escalated_at' => Carbon::now()->addDays(2),

packages/expiry/src/Models/Expiry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Expiry extends Model
2424
'category',
2525
'status',
2626
'expired_at',
27+
'processing_deadline',
2728
'cycle',
2829
'notified_at',
2930
'notified_to',

public/css/filament/filament/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/filament/forms/forms.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/filament/forms/components/file-upload.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/filament/forms/components/markdown-editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/filament/support/support.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)