Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dev] Update zone dump #8275

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Dev] Update zone dump
  • Loading branch information
ottaviano committed Mar 22, 2023

Verified

This commit was signed with the committer’s verified signature.
rm3l Armel Soro
commit 087fa686d781c315bf60a5afa996ba0ea9564c82
1 change: 1 addition & 0 deletions config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ api_platform:
metadata_backward_compatibility_layer: false
exception_to_status:
ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException: 400
ApiPlatform\Exception\ItemNotFoundException: 400
formats:
json:
mime_types: ['application/json']
111 changes: 18 additions & 93 deletions dump/all-geo-zone.sql

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions features/api/adherent_formations.feature
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ Feature:
"content_type": "link",
"link": "https://renaissance.code/",
"published": true,
"zone": "e3efe5c5-906e-11eb-a875-0242ac150002",
"zone": "94405a9c-872a-11eb-9419-42010a840019",
"position": 4
}
"""
@@ -33,7 +33,7 @@ Feature:
"print_count": 0,
"visibility": "local",
"zone": {
"uuid": "e3efe5c5-906e-11eb-a875-0242ac150002",
"uuid": "94405a9c-872a-11eb-9419-42010a840019",
"code": "77",
"name": "Seine-et-Marne"
},
@@ -72,7 +72,7 @@ Feature:
"print_count": 0,
"visibility": "local",
"zone": {
"uuid": "e3efe5c5-906e-11eb-a875-0242ac150002",
"uuid": "94405a9c-872a-11eb-9419-42010a840019",
"code": "77",
"name": "Seine-et-Marne"
},
@@ -89,7 +89,7 @@ Feature:
"print_count": 0,
"visibility": "local",
"zone": {
"uuid": "e3efe5c5-906e-11eb-a875-0242ac150002",
"uuid": "94405a9c-872a-11eb-9419-42010a840019",
"code": "77",
"name": "Seine-et-Marne"
},
2 changes: 1 addition & 1 deletion features/api/adherents.feature
Original file line number Diff line number Diff line change
@@ -756,7 +756,7 @@ Feature:
"""
When I send a "POST" request to "/api/v3/adherents/count?scope=referent" with body:
"""
["e3efe6fd-906e-11eb-a875-0242ac150002"]
["944062a9-872a-11eb-9419-42010a840019"]
"""
Then the response status code should be 200
And the JSON should be equal to:
18 changes: 9 additions & 9 deletions features/api/audience_segments.feature
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ Feature:
"renaissance_membership": null,
"scope": "deputy",
"zone": {
"uuid": "e3f2c4a0-906e-11eb-a875-0242ac150002",
"uuid": "94938c58-872a-11eb-9419-42010a840019",
"code": "92024",
"name": "Clichy"
},
@@ -69,7 +69,7 @@ Feature:
"first_name": "Pierre",
"last_name": "Dupond",
"gender": "male",
"zone": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"zone": "94415793-872a-11eb-9419-42010a840019",
"age_min": 25,
"age_max": 35,
"registered_since": "2017-06-21",
@@ -92,7 +92,7 @@ Feature:
"first_name": "Pierre",
"last_name": "Dupond",
"gender": "male",
"zone": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"zone": "94415793-872a-11eb-9419-42010a840019",
"age_min": 25,
"age_max": 35,
"registered_since": "2017-06-21",
@@ -155,7 +155,7 @@ Feature:
"first_name": "Pierre",
"last_name": "Dupond",
"gender": "male",
"zone": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"zone": "94415793-872a-11eb-9419-42010a840019",
"age_min": 25,
"age_max": 35,
"registered_since": "2017-06-21",
@@ -175,7 +175,7 @@ Feature:
"renaissance_membership": "others_adherent",
"scope": "deputy",
"zone": {
"uuid": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"uuid": "94415793-872a-11eb-9419-42010a840019",
"code": "75-1",
"name": "Paris (1)"
},
@@ -201,7 +201,7 @@ Feature:
{
"filter": {
"scope": "referent",
"zone": "e3efe6fd-906e-11eb-a875-0242ac150002",
"zone": "944062a9-872a-11eb-9419-42010a840019",
"is_certified": false,
"renaissance_membership": null
}
@@ -215,7 +215,7 @@ Feature:
"is_certified": false,
"renaissance_membership": null,
"zone": {
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002",
"uuid": "944062a9-872a-11eb-9419-42010a840019",
"code": "92",
"name": "Hauts-de-Seine"
},
@@ -249,7 +249,7 @@ Feature:
"first_name": "Nouveau prénom",
"last_name": "Nouveau nom",
"gender": "male",
"zone": "e3f21338-906e-11eb-a875-0242ac150002",
"zone": "9477b1d8-872a-11eb-9419-42010a840019",
"age_min": 25,
"age_max": 35,
"registered_since": "2018-01-01",
@@ -269,7 +269,7 @@ Feature:
"renaissance_membership": "adherent_re",
"scope": "referent",
"zone": {
"uuid": "e3f21338-906e-11eb-a875-0242ac150002",
"uuid": "9477b1d8-872a-11eb-9419-42010a840019",
"code": "59350",
"name": "Lille"
},
14 changes: 7 additions & 7 deletions features/api/audiences.feature
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ Feature:
"first_name": "untrèslongprénomuntrèslongprénomuntrèslongprénomuntrèslongprénomuntrèslongprénomuntrèslongprénom",
"last_name": "untrèslongnomuntrèslongnomuntrèslongnomuntrèslongnomuntrèslongnomuntrèslongnomuntrèslongnom",
"gender": "invalid",
"zone": "e3ef6700-906e-11eb-a875-0242ac150002"
"zone": "943e2b28-872a-11eb-9419-42010a840019"
}
"""
Then the response status code should be 400
@@ -120,7 +120,7 @@ Feature:
"first_name": "Prénom",
"last_name": "Nom",
"gender": "female",
"zone": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"zone": "94415793-872a-11eb-9419-42010a840019",
"age_min": 20,
"age_max": 45,
"registered_since": "2017-06-29",
@@ -146,7 +146,7 @@ Feature:
"registered_since":"2017-06-29T00:00:00+02:00",
"registered_until":"2021-04-29T00:00:00+02:00",
"zone":{
"uuid":"e3f0bf9d-906e-11eb-a875-0242ac150002",
"uuid":"94415793-872a-11eb-9419-42010a840019",
"code":"75-1",
"name":"Paris (1)"
},
@@ -168,7 +168,7 @@ Feature:
"first_name": "Nouveau prénom",
"last_name": "Nouveau nom",
"gender": "female",
"zone": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"zone": "94415793-872a-11eb-9419-42010a840019",
"age_min": 20,
"age_max": 45,
"registered_since": "2018-08-28",
@@ -194,7 +194,7 @@ Feature:
"registered_since":"2018-08-28T00:00:00+02:00",
"registered_until":"2021-06-28T00:00:00+02:00",
"zone":{
"uuid":"e3f0bf9d-906e-11eb-a875-0242ac150002",
"uuid":"94415793-872a-11eb-9419-42010a840019",
"code":"75-1",
"name":"Paris (1)"
},
@@ -308,7 +308,7 @@ Feature:
"""
{
"zone": {
"uuid": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"uuid": "94415793-872a-11eb-9419-42010a840019",
"code": "75-1",
"name": "Paris (1)"
},
@@ -338,7 +338,7 @@ Feature:
"""
{
"zone": {
"uuid": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"uuid": "94415793-872a-11eb-9419-42010a840019",
"code": "75-1",
"name": "Paris (1)"
},
6 changes: 3 additions & 3 deletions features/api/causes.feature
Original file line number Diff line number Diff line change
@@ -687,7 +687,7 @@ Feature:
{
"email_address": "adherent@en-marche-dev.fr",
"first_name": "Pierre",
"zone": "e3f274b8-906e-11eb-a875-0242ac150002",
"zone": "94869992-872a-11eb-9419-42010a840019",
"cgu_accepted": true,
"cause_subscription": true,
"coalition_subscription": true
@@ -790,7 +790,7 @@ Feature:
{
"email_address": "adherent@en-marche-dev.fr",
"first_name": "Pierre",
"zone": "e3f274b8-906e-11eb-a875-0242ac150002",
"zone": "94869992-872a-11eb-9419-42010a840019",
"cause": "55056e7c-2b5f-4ef6-880e-cde0511f79b2",
"cgu_accepted": true
}
@@ -819,7 +819,7 @@ Feature:
{
"email_address": "jacques.picard@en-marche.fr",
"first_name": "jacques",
"zone": "e3f274b8-906e-11eb-a875-0242ac150002",
"zone": "94869992-872a-11eb-9419-42010a840019",
"cause": "017491f9-1953-482e-b491-20418235af1f",
"cgu_accepted": true
}
12 changes: 6 additions & 6 deletions features/api/committees.feature
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ Feature:
"""
[
{
"uuid": "e3f17cac-906e-11eb-a875-0242ac150002",
"uuid": "94966e3d-872a-11eb-9419-42010a840019",
"type": "city_community",
"postal_code": [],
"code": "200040954",
@@ -81,7 +81,7 @@ Feature:
"""
[
{
"uuid": "e3f2c5ec-906e-11eb-a875-0242ac150002",
"uuid": "94938d80-872a-11eb-9419-42010a840019",
"type": "city",
"postal_code": ["92260"],
"code": "92032",
@@ -95,9 +95,9 @@ Feature:
"name": "test 1",
"description": "my desc",
"zones": [
"e3f154b1-906e-11eb-a875-0242ac150002",
"e3f2c5ec-906e-11eb-a875-0242ac150002",
"e3f2cb17-906e-11eb-a875-0242ac150002"
"94463aee-872a-11eb-9419-42010a840019",
"94938d80-872a-11eb-9419-42010a840019",
"949393bc-872a-11eb-9419-42010a840019"
]
}
"""
@@ -134,7 +134,7 @@ Feature:
"name": "test 1",
"description": "my desc",
"zones": [
"e3f0ebd6-906e-11eb-a875-0242ac150002"
"94418bb1-872a-11eb-9419-42010a840019"
]
}
"""
10 changes: 5 additions & 5 deletions features/api/department_sites.feature
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ Feature:
{
"content": "<p>test</p>",
"json_content": "{\"test\": \"test\"}",
"zone": "e3efe563-906e-11eb-a875-0242ac150002"
"zone": "944057ca-872a-11eb-9419-42010a840019"
}
"""
Then the response status code should be 400
@@ -71,7 +71,7 @@ Feature:
{
"content": "<p>test</p>",
"json_content": "{\"test\": \"test\"}",
"zone": "e3efe563-906e-11eb-a875-0242ac150002"
"zone": "944057ca-872a-11eb-9419-42010a840019"
}
"""
Then the response status code should be 201
@@ -106,7 +106,7 @@ Feature:
"zone": {
"code": "92",
"name": "Hauts-de-Seine",
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002"
"uuid": "944062a9-872a-11eb-9419-42010a840019"
}
}
]
@@ -154,7 +154,7 @@ Feature:
{
"content": "<p>ceci est une mise à jour</p>",
"json_content": "{\"maj\": \"maj\"}",
"zone": "e3efe6fd-906e-11eb-a875-0242ac150002"
"zone": "944062a9-872a-11eb-9419-42010a840019"
}
"""
Then the response status code should be 200
@@ -182,7 +182,7 @@ Feature:
"zone": {
"code": "92",
"name": "Hauts-de-Seine",
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002"
"uuid": "944062a9-872a-11eb-9419-42010a840019"
}
}
"""
14 changes: 7 additions & 7 deletions features/api/elected_representatives.feature
Original file line number Diff line number Diff line change
@@ -164,7 +164,7 @@ Feature:
"type": "senateur",
"is_elected": true,
"geo_zone": {
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002",
"uuid": "944062a9-872a-11eb-9419-42010a840019",
"code": "92",
"name": "Hauts-de-Seine"
},
@@ -220,7 +220,7 @@ Feature:
"type": "senateur",
"is_elected": true,
"geo_zone": {
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002",
"uuid": "944062a9-872a-11eb-9419-42010a840019",
"code": "92",
"name": "Hauts-de-Seine"
},
@@ -398,7 +398,7 @@ Feature:
"type": "senateur",
"is_elected": true,
"geo_zone": {
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002",
"uuid": "944062a9-872a-11eb-9419-42010a840019",
"code": "92",
"name": "Hauts-de-Seine"
},
@@ -428,7 +428,7 @@ Feature:
{
"type": "membre_EPCI",
"is_elected": true,
"geo_zone": "e3efe6fd-906e-11eb-a875-0242ac150002",
"geo_zone": "944062a9-872a-11eb-9419-42010a840019",
"on_going": true,
"begin_at": "2023-01-13",
"finish_at": null,
@@ -461,7 +461,7 @@ Feature:
"type": "membre_EPCI",
"is_elected": true,
"geo_zone": {
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002",
"uuid": "944062a9-872a-11eb-9419-42010a840019",
"code": "92",
"name": "Hauts-de-Seine"
},
@@ -508,7 +508,7 @@ Feature:
{
"type": "membre_EPCI",
"is_elected": true,
"geo_zone": "e3efe6fd-906e-11eb-a875-0242ac150002",
"geo_zone": "944062a9-872a-11eb-9419-42010a840019",
"on_going": true,
"begin_at": "2023-01-13T00:00:00+01:00",
"finish_at": null,
@@ -541,7 +541,7 @@ Feature:
"type": "membre_EPCI",
"is_elected": true,
"geo_zone": {
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002",
"uuid": "944062a9-872a-11eb-9419-42010a840019",
"code": "92",
"name": "Hauts-de-Seine"
},
Loading