Skip to content

Commit

Permalink
Merge pull request #278 from Vizzuality/feature/cms/SKY30-381_adapt_m…
Browse files Browse the repository at this point in the history
…pa_tables

Feature/cms/sky30 381 adapt mpa tables
  • Loading branch information
SARodrigues authored Jul 4, 2024
2 parents 92da964 + 0942e5d commit 6ad2c47
Show file tree
Hide file tree
Showing 23 changed files with 1,064 additions and 687 deletions.
6 changes: 4 additions & 2 deletions cms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ ENV NODE_ENV development

WORKDIR /app

COPY . ./
COPY . .

RUN yarn install --immutable

ENV PATH /app/node_modules/.bin:$PATH
RUN chown -R node:node /app
USER node

EXPOSE 1337
# CMD [ "yarn", "strapi", "develop" ]

ENTRYPOINT ["/app/entrypoint.sh"]
87 changes: 12 additions & 75 deletions cms/config/sync/admin-role.strapi-author.json
Original file line number Diff line number Diff line change
Expand Up @@ -819,69 +819,6 @@
"admin::is-creator"
]
},
{
"action": "plugin::content-manager.explorer.create",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area",
"mpaa_establishment_stage"
]
},
"conditions": [
"admin::is-creator"
]
},
{
"action": "plugin::content-manager.explorer.delete",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {},
"conditions": [
"admin::is-creator"
]
},
{
"action": "plugin::content-manager.explorer.read",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area",
"mpaa_establishment_stage"
]
},
"conditions": [
"admin::is-creator"
]
},
{
"action": "plugin::content-manager.explorer.update",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area",
"mpaa_establishment_stage"
]
},
"conditions": [
"admin::is-creator"
]
},
{
"action": "plugin::content-manager.explorer.create",
"actionParameters": {},
Expand All @@ -892,8 +829,9 @@
"area",
"year",
"protection_status",
"mpa_protection_coverage_stats",
"wdpaid"
"bbox",
"wdpaid",
"is_child"
]
},
"conditions": [
Expand All @@ -919,8 +857,9 @@
"area",
"year",
"protection_status",
"mpa_protection_coverage_stats",
"wdpaid"
"bbox",
"wdpaid",
"is_child"
]
},
"conditions": [
Expand All @@ -937,8 +876,9 @@
"area",
"year",
"protection_status",
"mpa_protection_coverage_stats",
"wdpaid"
"bbox",
"wdpaid",
"is_child"
]
},
"conditions": [
Expand Down Expand Up @@ -1013,8 +953,7 @@
"fields": [
"slug",
"name",
"info",
"mpa_protection_coverage_stats"
"info"
]
},
"conditions": [
Expand All @@ -1038,8 +977,7 @@
"fields": [
"slug",
"name",
"info",
"mpa_protection_coverage_stats"
"info"
]
},
"conditions": [
Expand All @@ -1054,8 +992,7 @@
"fields": [
"slug",
"name",
"info",
"mpa_protection_coverage_stats"
"info"
]
},
"conditions": [
Expand Down
79 changes: 12 additions & 67 deletions cms/config/sync/admin-role.strapi-editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,61 +756,6 @@
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.create",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area",
"mpaa_establishment_stage"
]
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.delete",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.read",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area",
"mpaa_establishment_stage"
]
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.update",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area",
"mpaa_establishment_stage"
]
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.create",
"actionParameters": {},
Expand All @@ -821,8 +766,9 @@
"area",
"year",
"protection_status",
"mpa_protection_coverage_stats",
"wdpaid"
"bbox",
"wdpaid",
"is_child"
]
},
"conditions": []
Expand All @@ -844,8 +790,9 @@
"area",
"year",
"protection_status",
"mpa_protection_coverage_stats",
"wdpaid"
"bbox",
"wdpaid",
"is_child"
]
},
"conditions": []
Expand All @@ -860,8 +807,9 @@
"area",
"year",
"protection_status",
"mpa_protection_coverage_stats",
"wdpaid"
"bbox",
"wdpaid",
"is_child"
]
},
"conditions": []
Expand Down Expand Up @@ -926,8 +874,7 @@
"fields": [
"slug",
"name",
"info",
"mpa_protection_coverage_stats"
"info"
]
},
"conditions": []
Expand All @@ -947,8 +894,7 @@
"fields": [
"slug",
"name",
"info",
"mpa_protection_coverage_stats"
"info"
]
},
"conditions": []
Expand All @@ -961,8 +907,7 @@
"fields": [
"slug",
"name",
"info",
"mpa_protection_coverage_stats"
"info"
]
},
"conditions": []
Expand Down
Loading

0 comments on commit 6ad2c47

Please sign in to comment.