Skip to content

Commit

Permalink
Revert "Temporarily delete fields on Location model"
Browse files Browse the repository at this point in the history
This reverts commit 8a1841a.
  • Loading branch information
clementprdhomme committed Oct 8, 2024
1 parent 8a1841a commit b1638c3
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 19 deletions.
15 changes: 12 additions & 3 deletions cms/config/sync/admin-role.strapi-author.json
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,9 @@
"fishing_protection_level_stats",
"protection_coverage_stats",
"name_es",
"name_fr"
"name_fr",
"total_marine_area",
"total_terrestrial_area"
],
"locales": []
},
Expand Down Expand Up @@ -896,7 +898,9 @@
"fishing_protection_level_stats",
"protection_coverage_stats",
"name_es",
"name_fr"
"name_fr",
"total_marine_area",
"total_terrestrial_area"
],
"locales": []
},
Expand All @@ -918,7 +922,9 @@
"fishing_protection_level_stats",
"protection_coverage_stats",
"name_es",
"name_fr"
"name_fr",
"total_marine_area",
"total_terrestrial_area"
],
"locales": []
},
Expand Down Expand Up @@ -995,6 +1001,7 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
]
Expand All @@ -1018,6 +1025,7 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
]
Expand All @@ -1032,6 +1040,7 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
]
Expand Down
15 changes: 12 additions & 3 deletions cms/config/sync/admin-role.strapi-editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,9 @@
"fishing_protection_level_stats",
"protection_coverage_stats",
"name_es",
"name_fr"
"name_fr",
"total_marine_area",
"total_terrestrial_area"
],
"locales": []
},
Expand Down Expand Up @@ -879,7 +881,9 @@
"fishing_protection_level_stats",
"protection_coverage_stats",
"name_es",
"name_fr"
"name_fr",
"total_marine_area",
"total_terrestrial_area"
],
"locales": []
},
Expand All @@ -899,7 +903,9 @@
"fishing_protection_level_stats",
"protection_coverage_stats",
"name_es",
"name_fr"
"name_fr",
"total_marine_area",
"total_terrestrial_area"
],
"locales": []
},
Expand Down Expand Up @@ -966,6 +972,7 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
]
Expand All @@ -985,6 +992,7 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
]
Expand All @@ -997,6 +1005,7 @@
"subject": "api::mpaa-protection-level-stat.mpaa-protection-level-stat",
"properties": {
"fields": [
"location",
"mpaa_protection_level",
"area"
]
Expand Down
18 changes: 15 additions & 3 deletions cms/config/sync/admin-role.strapi-super-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -1060,12 +1060,15 @@
"fields": [
"code",
"name",
"total_marine_area",
"type",
"groups",
"members",
"fishing_protection_level_stats",
"mpaa_protection_level_stats",
"protection_coverage_stats",
"marine_bounds",
"total_terrestrial_area",
"terrestrial_bounds",
"name_es",
"name_fr"
Expand All @@ -1088,12 +1091,15 @@
"fields": [
"code",
"name",
"total_marine_area",
"type",
"groups",
"members",
"fishing_protection_level_stats",
"mpaa_protection_level_stats",
"protection_coverage_stats",
"marine_bounds",
"total_terrestrial_area",
"terrestrial_bounds",
"name_es",
"name_fr"
Expand All @@ -1109,12 +1115,15 @@
"fields": [
"code",
"name",
"total_marine_area",
"type",
"groups",
"members",
"fishing_protection_level_stats",
"mpaa_protection_level_stats",
"protection_coverage_stats",
"marine_bounds",
"total_terrestrial_area",
"terrestrial_bounds",
"name_es",
"name_fr"
Expand Down Expand Up @@ -1264,7 +1273,8 @@
"fields": [
"mpaa_protection_level",
"area",
"percentage"
"percentage",
"location"
]
},
"conditions": [],
Expand All @@ -1284,7 +1294,8 @@
"fields": [
"mpaa_protection_level",
"area",
"percentage"
"percentage",
"location"
]
},
"conditions": [],
Expand All @@ -1297,7 +1308,8 @@
"fields": [
"mpaa_protection_level",
"area",
"percentage"
"percentage",
"location"
]
},
"conditions": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@
"sortable": true
}
},
"total_marine_area": {
"edit": {
"label": "total_marine_area",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "total_marine_area",
"searchable": true,
"sortable": true
}
},
"type": {
"edit": {
"label": "type",
Expand Down Expand Up @@ -107,6 +121,21 @@
"sortable": false
}
},
"mpaa_protection_level_stats": {
"edit": {
"label": "mpaa_protection_level_stats",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "id"
},
"list": {
"label": "mpaa_protection_level_stats",
"searchable": true,
"sortable": true
}
},
"protection_coverage_stats": {
"edit": {
"label": "protection_coverage_stats",
Expand Down Expand Up @@ -136,6 +165,20 @@
"sortable": false
}
},
"total_terrestrial_area": {
"edit": {
"label": "total_terrestrial_area",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "total_terrestrial_area",
"searchable": true,
"sortable": true
}
},
"terrestrial_bounds": {
"edit": {
"label": "terrestrial_bounds",
Expand Down Expand Up @@ -238,11 +281,6 @@
}
},
"layouts": {
"list": [
"id",
"code",
"name"
],
"edit": [
[
{
Expand Down Expand Up @@ -290,6 +328,12 @@
"size": 6
}
],
[
{
"name": "mpaa_protection_level_stats",
"size": 6
}
],
[
{
"name": "marine_bounds",
Expand All @@ -301,7 +345,23 @@
"name": "terrestrial_bounds",
"size": 12
}
],
[
{
"name": "total_marine_area",
"size": 4
},
{
"name": "total_terrestrial_area",
"size": 4
}
]
],
"list": [
"id",
"code",
"name",
"total_marine_area"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@
"sortable": true
}
},
"location": {
"edit": {
"label": "location",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "code"
},
"list": {
"label": "location",
"searchable": true,
"sortable": true
}
},
"mpaa_protection_level": {
"edit": {
"label": "mpaa_protection_level",
Expand Down Expand Up @@ -123,13 +138,12 @@
}
},
"layouts": {
"list": [
"id",
"mpaa_protection_level",
"area"
],
"edit": [
[
{
"name": "location",
"size": 6
},
{
"name": "area",
"size": 4
Expand All @@ -145,6 +159,12 @@
"size": 4
}
]
],
"list": [
"id",
"location",
"mpaa_protection_level",
"area"
]
}
},
Expand Down
Loading

0 comments on commit b1638c3

Please sign in to comment.