Skip to content

Commit

Permalink
Merge pull request #35 from Vizzuality/feature/cms/SKY30-84
Browse files Browse the repository at this point in the history
Added location geographic bounding box as a JSON field
  • Loading branch information
Agnieszka Figiel authored Oct 27, 2023
2 parents f9521a6 + 99372cf commit e2f3583
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 11 deletions.
9 changes: 6 additions & 3 deletions cms/config/sync/admin-role.strapi-super-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@
"members",
"fishing_protection_level_stats",
"mpaa_protection_level_stats",
"protection_coverage_stats"
"protection_coverage_stats",
"bounds"
]
},
"conditions": []
Expand All @@ -356,7 +357,8 @@
"members",
"fishing_protection_level_stats",
"mpaa_protection_level_stats",
"protection_coverage_stats"
"protection_coverage_stats",
"bounds"
]
},
"conditions": []
Expand All @@ -375,7 +377,8 @@
"members",
"fishing_protection_level_stats",
"mpaa_protection_level_stats",
"protection_coverage_stats"
"protection_coverage_stats",
"bounds"
]
},
"conditions": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,20 @@
"sortable": false
}
},
"bounds": {
"edit": {
"label": "bounds",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "bounds",
"searchable": false,
"sortable": false
}
},
"createdAt": {
"edit": {
"label": "createdAt",
Expand Down Expand Up @@ -211,6 +225,14 @@
}
},
"layouts": {
"list": [
"id",
"code",
"name",
"type",
"totalMarineArea",
"groups"
],
"edit": [
[
{
Expand Down Expand Up @@ -257,15 +279,13 @@
"name": "protection_coverage_stats",
"size": 6
}
],
[
{
"name": "bounds",
"size": 12
}
]
],
"list": [
"id",
"code",
"name",
"type",
"totalMarineArea",
"groups"
]
}
},
Expand Down
3 changes: 3 additions & 0 deletions cms/src/api/location/content-types/location/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
"relation": "oneToMany",
"target": "api::protection-coverage-stat.protection-coverage-stat",
"mappedBy": "location"
},
"bounds": {
"type": "json"
}
}
}
1 change: 1 addition & 0 deletions cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ export interface ApiLocationLocation extends Schema.CollectionType {
'oneToMany',
'api::protection-coverage-stat.protection-coverage-stat'
>;
bounds: Attribute.JSON;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
Expand Down

0 comments on commit e2f3583

Please sign in to comment.