-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #893 from MTES-MCT/feature/841-cor-lyon
[Territoire 69] Modifications communes à autoriser + règles affectation
- Loading branch information
Showing
35 changed files
with
740 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# `special_territory` To define the partners for the special territory | ||
# `authorized_codes_insee` To define the authorized INSEE codes for the special territory | ||
# Result: | ||
# - Apply filters on signalement, cartographie and notification for user with role ROLE_ADMIN_TERRITORY | ||
# - Partner name and insee code partner will be readonly on partner form to make no difference between | ||
# possible affectation filter and signalement filter | ||
# | ||
|
||
parameters: | ||
special_territory: | ||
69: # Rhône | ||
COR: 'COR' | ||
EMHA - Métropole de Lyon: "EMHA - Métropole de Lyon" | ||
authorized_codes_insee: | ||
69: | ||
COR: | ||
- "69001" | ||
- "69006" | ||
- "69008" | ||
- "69037" | ||
- "69054" | ||
- "69060" | ||
- "69066" | ||
- "69070" | ||
- "69075" | ||
- "69093" | ||
- "69102" | ||
- "69107" | ||
- "69174" | ||
- "69130" | ||
- "69160" | ||
- "69164" | ||
- "69169" | ||
- "69181" | ||
- "69183" | ||
- "69188" | ||
- "69200" | ||
- "69214" | ||
- "69217" | ||
- "69225" | ||
- "69229" | ||
- "69234" | ||
- "69240" | ||
- "69243" | ||
- "69248" | ||
- "69254" | ||
- "69157" | ||
EMHA - Métropole de Lyon: | ||
- "69091" | ||
- "69091" | ||
- "69096" | ||
- "69123" | ||
- "69149" | ||
- "69199" | ||
- "69205" | ||
- "69290" | ||
- "69259" | ||
- "69266" | ||
- "69381" | ||
- "69382" | ||
- "69383" | ||
- "69384" | ||
- "69385" | ||
- "69386" | ||
- "69387" | ||
- "69388" | ||
- "69389" | ||
- "69901" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ grumphp: | |
- ';dd(' | ||
- 'die(' | ||
- 'exit(' | ||
yamllint: | ||
phpstan: ~ | ||
eslint: | ||
bin: node_modules/.bin/eslint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineMigrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
final class Version20230207063027 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Authorize the signalement for the La Communauté d\'Agglomération de l\'Ouest Rhodanien '; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$metropoleLyonCodesInsee = [ | ||
69091, 69096, 69123, 69149, 69199, 69205, 69290, 69259, 69266, | ||
69381, 69382, 69383, 69384, 69385, 69386, 69387, 69388, 69389, | ||
69901, ]; | ||
|
||
$corCodesInsee = [69001, 69006, 69008, 69037, 69054, 69060, 69066, 69070, 69075, 69093, 69102, 69107, 69174, 69130, | ||
69160, 69164, 69169, 69181, 69183, 69188, 69200, 69214, 69217, 69225, 69229, 69234, 69240, 69243, 69248, | ||
69254, 69157, ]; | ||
|
||
$codesInsee = array_merge($metropoleLyonCodesInsee, $corCodesInsee); | ||
|
||
$this->addSql( | ||
'UPDATE territory SET authorized_codes_insee = \''.json_encode($codesInsee).'\' WHERE zip = \'69\'' | ||
); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.