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
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
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
Expand Up @@ -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
}
"""
Expand All @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand All @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion features/api/adherents.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 9 additions & 9 deletions features/api/audience_segments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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)"
},
Expand All @@ -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
}
Expand All @@ -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"
},
Expand Down Expand Up @@ -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",
Expand All @@ -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"
},
Expand Down
14 changes: 7 additions & 7 deletions features/api/audiences.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",
Expand All @@ -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)"
},
Expand All @@ -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",
Expand All @@ -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)"
},
Expand Down Expand Up @@ -308,7 +308,7 @@ Feature:
"""
{
"zone": {
"uuid": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"uuid": "94415793-872a-11eb-9419-42010a840019",
"code": "75-1",
"name": "Paris (1)"
},
Expand Down Expand Up @@ -338,7 +338,7 @@ Feature:
"""
{
"zone": {
"uuid": "e3f0bf9d-906e-11eb-a875-0242ac150002",
"uuid": "94415793-872a-11eb-9419-42010a840019",
"code": "75-1",
"name": "Paris (1)"
},
Expand Down
6 changes: 3 additions & 3 deletions features/api/causes.feature
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ Feature:
{
"email_address": "[email protected]",
"first_name": "Pierre",
"zone": "e3f274b8-906e-11eb-a875-0242ac150002",
"zone": "94869992-872a-11eb-9419-42010a840019",
"cgu_accepted": true,
"cause_subscription": true,
"coalition_subscription": true
Expand Down Expand Up @@ -790,7 +790,7 @@ Feature:
{
"email_address": "[email protected]",
"first_name": "Pierre",
"zone": "e3f274b8-906e-11eb-a875-0242ac150002",
"zone": "94869992-872a-11eb-9419-42010a840019",
"cause": "55056e7c-2b5f-4ef6-880e-cde0511f79b2",
"cgu_accepted": true
}
Expand Down Expand Up @@ -819,7 +819,7 @@ Feature:
{
"email_address": "[email protected]",
"first_name": "jacques",
"zone": "e3f274b8-906e-11eb-a875-0242ac150002",
"zone": "94869992-872a-11eb-9419-42010a840019",
"cause": "017491f9-1953-482e-b491-20418235af1f",
"cgu_accepted": true
}
Expand Down
14 changes: 7 additions & 7 deletions features/api/committees.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ Feature:

Scenario: As a user granted with local scope, I can get geo zone available for a new committee
Given I am logged with "[email protected]" via OAuth client "JeMengage Web" with scope "jemengage_admin"
And I send a "GET" request to "/api/v3/zone/autocomplete?scope=referent&q=Hauts&availableForCommittee=true"
And I send a "GET" request to "/api/v3/zone/autocomplete?scope=referent&q=Hauts de Flandre&availableForCommittee=true"
Then the response status code should be 200
And the response should be in JSON
And the JSON should be equal to:
"""
[
{
"uuid": "e3f17cac-906e-11eb-a875-0242ac150002",
"uuid": "94966e3d-872a-11eb-9419-42010a840019",
"type": "city_community",
"postal_code": [],
"code": "200040954",
Expand All @@ -81,7 +81,7 @@ Feature:
"""
[
{
"uuid": "e3f2c5ec-906e-11eb-a875-0242ac150002",
"uuid": "94938d80-872a-11eb-9419-42010a840019",
"type": "city",
"postal_code": ["92260"],
"code": "92032",
Expand All @@ -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"
]
}
"""
Expand Down Expand Up @@ -134,7 +134,7 @@ Feature:
"name": "test 1",
"description": "my desc",
"zones": [
"e3f0ebd6-906e-11eb-a875-0242ac150002"
"94418bb1-872a-11eb-9419-42010a840019"
]
}
"""
Expand Down
10 changes: 5 additions & 5 deletions features/api/department_sites.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -106,7 +106,7 @@ Feature:
"zone": {
"code": "92",
"name": "Hauts-de-Seine",
"uuid": "e3efe6fd-906e-11eb-a875-0242ac150002"
"uuid": "944062a9-872a-11eb-9419-42010a840019"
}
}
]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"
},
Expand Down
Loading