Skip to content

Commit

Permalink
Enhance IncidentSeverity and IncidentStatus forms with max length val…
Browse files Browse the repository at this point in the history
…idation; add access control tests for Incident views
  • Loading branch information
payal-canyon committed Feb 13, 2025
1 parent 9c64a24 commit 21a965a
Show file tree
Hide file tree
Showing 19 changed files with 709 additions and 388 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

public function up(): void
{
if (app()->runningUnitTests()) {
return;
}

DB::table('incident_severities')->insert(collect($this->incidentSeverities)->map(function ($item) {
$item['id'] = Str::uuid()->toString();
$item['created_at'] = now();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function form(Form $form): Form
TextInput::make('name')
->label('Name')
->required()
->maxLength(255)
->string(),
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function form(Form $form): Form
TextInput::make('name')
->label('Name')
->required()
->maxLength('255')
->string(),
Select::make('classification')
->label('Classification')
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 21a965a

Please # to comment.