Skip to content

Commit

Permalink
Merge pull request #114 from dbarzin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dbarzin authored Aug 4, 2024
2 parents 0099bce + d6a3683 commit 48f0e9d
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 174 deletions.
15 changes: 11 additions & 4 deletions INSTALL.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ Pour importer la base de données avec les attributs de sécurité de la norme 2

LANG=fr php artisan db:seed --class=AttributeSeeder

Démarrer l'application avec php
Peupler la base de données avec la norme ISO 27001:2022 et générer un jeu de tests (optionel)

php artisan deming:import-framework ./storage/app/repository/ISO27001-2022.fr.xlsx --clean
php artisan deming:generate-tests

Démarrer l'application avec PHP

php artisan serve

Expand Down Expand Up @@ -236,8 +241,10 @@ Voici la commande pour recréer la DB :

php artisan migrate:fresh --seed

Puis pour peupler la DB avec la 27001:2022
Puis importer les attributs

php artisan db:seed --class=AttributeSeeder
php artisan db:seed --class=DomainSeeder
php artisan db:seed --class=MeasureSeeder

Peupler la base de données avec la norme ISO 27001:2022

php artisan deming:import-framework ./storage/app/repository/ISO27001-2022.fr.xlsx
15 changes: 11 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,15 @@ Create storage link

php artisan storage:link

To import the database with 27001:2022 attributes (optional)
Import attributes

php artisan db:seed --class=AttributeSeeder

Then populate the database with 27001:2022 and generated tests data

php artisan deming:import-framework ./storage/app/repository/ISO27001-2022.en.xlsx --clean
php artisan deming:generate-tests

Start application with php

php artisan serve
Expand Down Expand Up @@ -232,8 +237,10 @@ Here's the command to recreate the DB:

php artisan migrate:fresh --seed

Then to populate the DB with 27001:2022
Import attributes

php artisan db:seed --class=AttributeSeeder
php artisan db:seed --class=DomainSeeder
php artisan db:seed --class=MeasureSeeder

Then to populate the database with 27001:2022

php artisan deming:import-framework ./storage/app/repository/ISO27001-2022.en.xlsx
2 changes: 1 addition & 1 deletion app/Console/Commands/GenerateTestData.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GenerateTestData extends Command
*
* @var string
*/
protected $signature = 'deming:generateTests';
protected $signature = 'deming:generate-tests';

/**
* The console command description.
Expand Down
11 changes: 0 additions & 11 deletions app/Http/Controllers/MeasureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,17 +401,6 @@ public function plan(Request $request)
'403 Forbidden'
);

$this->validate(
$request,
[
'name' => 'required|min:3|max:255',
'scope' => 'max:32',
'objective' => 'required',
'plan_date' => 'required',
'periodicity' => 'required|integer',
]
);

$measure = Measure::find($request->id);

// Control not found
Expand Down
Loading

0 comments on commit 48f0e9d

Please sign in to comment.