Skip to content

Commit

Permalink
Add new field proecesing_deadline to expiry
Browse files Browse the repository at this point in the history
  • Loading branch information
AzGasim committed Nov 27, 2024
1 parent 683f151 commit e7b604b
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*/
Expand All @@ -22,6 +21,7 @@ public function up(): void
$table->string('category')->nullable();
$table->string('status')->nullable();
$table->dateTime('expired_at');
$table->dateTime('processing_deadline')->nullable();
$table->string('cycle')->nullable();
$table->dateTime('notified_at')->nullable();
$table->unsignedBigInteger('notified_to')->nullable();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ return new class extends Migration {
$table->string('category')->nullable();
$table->string('status')->nullable();
$table->dateTime('expired_at');
$table->dateTime('processing_deadline')->nullable();
$table->string('cycle')->nullable();
$table->dateTime('notified_at')->nullable();
$table->unsignedBigInteger('notified_to')->nullable();
Expand Down
8 changes: 6 additions & 2 deletions packages/expiry/src/Jobs/CollectExpiries.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle()
{
$this->setProgress(1);

// Beispiel-Daten (du kannst beliebige Demo-Daten hinzufügen)
// Example data (you can add any demo data)
$demoData = [
[
'title' => 'Demo Document 1',
Expand All @@ -45,6 +45,7 @@ public function handle()
'category' => 'Documents',
'status' => 'active',
'expired_at' => Carbon::now()->addDays(30),
'processing_deadline' => Carbon::now()->addDays(20),
'notified_to' => 1,
'escalated_to' => 2,
'handled_by' => 3,
Expand All @@ -57,6 +58,7 @@ public function handle()
'category' => 'Articles',
'status' => 'inactive',
'expired_at' => Carbon::now()->addDays(60),
'processing_deadline' => Carbon::now()->addDays(30),
'notified_to' => 2,
'escalated_to' => 3,
'handled_by' => 1,
Expand All @@ -69,6 +71,7 @@ public function handle()
'category' => 'Tasks',
'status' => 'active',
'expired_at' => Carbon::now()->addDays(90),
'processing_deadline' => Carbon::now()->addDays(50),
'notified_to' => 3,
'escalated_to' => 1,
'handled_by' => 2,
Expand All @@ -91,11 +94,12 @@ public function handle()
'category' => $data['category'],
'status' => $data['status'],
'expired_at' => $data['expired_at'],
'processing_deadline' => $data['processing_deadline'],
'notified_to' => $data['notified_to'],
'escalated_to' => $data['escalated_to'],
'handled_by' => $data['handled_by'],
'done_at' => $data['done_at'],
'cycle' => array_rand($cycleOptions), // Zufälliger Turnus
'cycle' => array_rand($cycleOptions), // Random cycle
'meta_id' => null,
'notified_at' => Carbon::now(),
'escalated_at' => Carbon::now()->addDays(2),
Expand Down
1 change: 1 addition & 0 deletions packages/expiry/src/Models/Expiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Expiry extends Model
'category',
'status',
'expired_at',
'processing_deadline',
'cycle',
'notified_at',
'notified_to',
Expand Down
2 changes: 1 addition & 1 deletion public/css/filament/filament/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/css/filament/forms/forms.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions public/js/filament/forms/components/file-upload.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/filament/forms/components/markdown-editor.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions public/js/filament/support/support.js

Large diffs are not rendered by default.

0 comments on commit e7b604b

Please sign in to comment.