From 97b8eb2e5bead86fbbbbf560402e280506396b34 Mon Sep 17 00:00:00 2001 From: Dorian De Rosa Date: Wed, 19 Apr 2023 18:12:51 +0200 Subject: [PATCH] fix(apprentissage): video supression draft publish --- .../files/admin-role.strapi-author.json | 18 ++---------- .../files/admin-role.strapi-editor.json | 24 ++-------------- ...configuration_components##video.video.json | 4 +-- ...tissage.videos-campagne-apprentissage.json | 10 +++---- .../videos-campagne-apprentissage/schema.json | 7 +++-- .../1.0.0/full_documentation.json | 28 ++++--------------- 6 files changed, 23 insertions(+), 68 deletions(-) diff --git a/config/config-sync/files/admin-role.strapi-author.json b/config/config-sync/files/admin-role.strapi-author.json index 4c9c8a00..c6cb980d 100644 --- a/config/config-sync/files/admin-role.strapi-author.json +++ b/config/config-sync/files/admin-role.strapi-author.json @@ -1147,11 +1147,7 @@ "action": "plugin::content-manager.explorer.create", "subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage", "properties": { - "fields": [ - "Video.titre", - "Video.transcription", - "Video.url" - ] + "fields": [] }, "conditions": [ "admin::is-creator" @@ -1169,11 +1165,7 @@ "action": "plugin::content-manager.explorer.read", "subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage", "properties": { - "fields": [ - "Video.titre", - "Video.transcription", - "Video.url" - ] + "fields": [] }, "conditions": [ "admin::is-creator" @@ -1183,11 +1175,7 @@ "action": "plugin::content-manager.explorer.update", "subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage", "properties": { - "fields": [ - "Video.titre", - "Video.transcription", - "Video.url" - ] + "fields": [] }, "conditions": [ "admin::is-creator" diff --git a/config/config-sync/files/admin-role.strapi-editor.json b/config/config-sync/files/admin-role.strapi-editor.json index 018505f0..edaf2338 100644 --- a/config/config-sync/files/admin-role.strapi-editor.json +++ b/config/config-sync/files/admin-role.strapi-editor.json @@ -1168,11 +1168,7 @@ "action": "plugin::content-manager.explorer.create", "subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage", "properties": { - "fields": [ - "Video.titre", - "Video.transcription", - "Video.url" - ] + "fields": [] }, "conditions": [] }, @@ -1182,21 +1178,11 @@ "properties": {}, "conditions": [] }, - { - "action": "plugin::content-manager.explorer.publish", - "subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage", - "properties": {}, - "conditions": [] - }, { "action": "plugin::content-manager.explorer.read", "subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage", "properties": { - "fields": [ - "Video.titre", - "Video.transcription", - "Video.url" - ] + "fields": [] }, "conditions": [] }, @@ -1204,11 +1190,7 @@ "action": "plugin::content-manager.explorer.update", "subject": "api::videos-campagne-apprentissage.videos-campagne-apprentissage", "properties": { - "fields": [ - "Video.titre", - "Video.transcription", - "Video.url" - ] + "fields": [] }, "conditions": [] }, diff --git a/config/config-sync/files/core-store.plugin_content_manager_configuration_components##video.video.json b/config/config-sync/files/core-store.plugin_content_manager_configuration_components##video.video.json index f84966c7..2411720f 100644 --- a/config/config-sync/files/core-store.plugin_content_manager_configuration_components##video.video.json +++ b/config/config-sync/files/core-store.plugin_content_manager_configuration_components##video.video.json @@ -16,8 +16,8 @@ "edit": {}, "list": { "label": "id", - "searchable": true, - "sortable": true + "searchable": false, + "sortable": false } }, "titre": { diff --git a/config/config-sync/files/core-store.plugin_content_manager_configuration_content_types##api##videos-campagne-apprentissage.videos-campagne-apprentissage.json b/config/config-sync/files/core-store.plugin_content_manager_configuration_content_types##api##videos-campagne-apprentissage.videos-campagne-apprentissage.json index dba52337..ea888fc7 100644 --- a/config/config-sync/files/core-store.plugin_content_manager_configuration_content_types##api##videos-campagne-apprentissage.videos-campagne-apprentissage.json +++ b/config/config-sync/files/core-store.plugin_content_manager_configuration_content_types##api##videos-campagne-apprentissage.videos-campagne-apprentissage.json @@ -20,16 +20,16 @@ "sortable": true } }, - "Video": { + "videos": { "edit": { - "label": "Video", + "label": "videos", "description": "", "placeholder": "", "visible": true, "editable": true }, "list": { - "label": "Video", + "label": "videos", "searchable": false, "sortable": false } @@ -65,12 +65,12 @@ }, "layouts": { "list": [ - "Video" + "videos" ], "edit": [ [ { - "name": "Video", + "name": "videos", "size": 12 } ] diff --git a/src/api/videos-campagne-apprentissage/content-types/videos-campagne-apprentissage/schema.json b/src/api/videos-campagne-apprentissage/content-types/videos-campagne-apprentissage/schema.json index cd0ed773..6d39f860 100644 --- a/src/api/videos-campagne-apprentissage/content-types/videos-campagne-apprentissage/schema.json +++ b/src/api/videos-campagne-apprentissage/content-types/videos-campagne-apprentissage/schema.json @@ -4,13 +4,14 @@ "info": { "singularName": "videos-campagne-apprentissage", "pluralName": "videos-campagne-apprentissages", - "displayName": "Vidéos Campagne Apprentissage" + "displayName": "Vidéos Campagne Apprentissage", + "description": "" }, "options": { - "draftAndPublish": true + "draftAndPublish": false }, "attributes": { - "Video": { + "videos": { "displayName": "Video", "type": "component", "repeatable": true, diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 7e0f4f12..8718f70c 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "MIT", "url": "https://github.com/DNUM-SocialGouv/1j1s-stage-orchestrateur-transform-load/blob/main/LICENSE" }, - "x-generation-date": "2023-04-19T13:30:55.540Z" + "x-generation-date": "2023-04-19T16:12:11.590Z" }, "x-strapi-config": { "path": "/documentation", @@ -23725,7 +23725,7 @@ "required": [], "type": "object", "properties": { - "Video": { + "videos": { "type": "array", "items": { "$ref": "#/components/schemas/VideoVideoComponent" @@ -23744,7 +23744,7 @@ "attributes": { "type": "object", "properties": { - "Video": { + "videos": { "type": "array", "items": { "$ref": "#/components/schemas/VideoVideoComponent" @@ -23758,10 +23758,6 @@ "type": "string", "format": "date-time" }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, "createdBy": { "type": "object", "properties": { @@ -24060,7 +24056,7 @@ "attributes": { "type": "object", "properties": { - "Video": { + "videos": { "type": "array", "items": { "$ref": "#/components/schemas/VideoVideoComponent" @@ -24074,10 +24070,6 @@ "type": "string", "format": "date-time" }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, "createdBy": { "type": "object", "properties": { @@ -24409,7 +24401,7 @@ "attributes": { "type": "object", "properties": { - "Video": { + "videos": { "type": "array", "items": { "$ref": "#/components/schemas/VideoVideoComponent" @@ -24423,10 +24415,6 @@ "type": "string", "format": "date-time" }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, "createdBy": { "type": "object", "properties": { @@ -24725,7 +24713,7 @@ "attributes": { "type": "object", "properties": { - "Video": { + "videos": { "type": "array", "items": { "$ref": "#/components/schemas/VideoVideoComponent" @@ -24739,10 +24727,6 @@ "type": "string", "format": "date-time" }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, "createdBy": { "type": "object", "properties": {