From 53b595bc511225273d3ed7e2937ce34861054dbf Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Mon, 23 Sep 2024 10:56:12 +0200 Subject: [PATCH] [qa] fix resolution setting for entities --- src/store/api/assets.js | 7 ------- src/store/api/edits.js | 10 ++-------- src/store/api/shots.js | 12 ------------ 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/src/store/api/assets.js b/src/store/api/assets.js index e070af29e..5ca4663fb 100644 --- a/src/store/api/assets.js +++ b/src/store/api/assets.js @@ -46,10 +46,6 @@ export default { if (asset.source_id !== 'null') { data.episode_id = asset.source_id } - if (asset.data.resolution) { - data.data.resolution = asset.data.resolution - } - const path = `/api/data/projects/${asset.project_id}/asset-types/` + `${asset.entity_type_id}/assets/new` @@ -72,9 +68,6 @@ export default { if (asset.source_id === 'null' || asset.source_id) { data.source_id = asset.source_id } - if (asset.data.resolution) { - data.data.resolution = asset.data.resolution - } return client.pput(`/api/data/entities/${asset.id}`, data) }, diff --git a/src/store/api/edits.js b/src/store/api/edits.js index 953e9fb9f..38f6834ea 100644 --- a/src/store/api/edits.js +++ b/src/store/api/edits.js @@ -29,10 +29,7 @@ export default { const data = { name: edit.name, description: edit.description, - data: {} - } - if (edit.data.resolution) { - data.data.resolution = edit.resolution + data: edit.data } if (edit.parent_id !== 'null') { data.episode_id = edit.parent_id @@ -44,10 +41,7 @@ export default { const data = { name: edit.name, description: edit.description, - data: edit.data || {} - } - if (edit.data.resolution) { - data.data.resolution = edit.data.resolution + data: edit.data } if (edit.parent_id === 'null' || edit.parent_id) { data.parent_id = edit.parent_id diff --git a/src/store/api/shots.js b/src/store/api/shots.js index 94fe01619..8df2926f3 100644 --- a/src/store/api/shots.js +++ b/src/store/api/shots.js @@ -62,9 +62,6 @@ export default { description: sequence.description, data: sequence.data } - if (sequence.data.resolution) { - data.data.resolution = sequence.data.resolution - } const path = `/api/data/projects/${sequence.project_id}/sequences` return client.ppost(path, data) }, @@ -76,9 +73,6 @@ export default { status: episode.status || 'running', data: episode.data || {} } - if (episode.data.resolution) { - data.data.resolution = episode.data.resolution - } const path = `/api/data/projects/${episode.project_id}/episodes` return client.ppost(path, data) }, @@ -125,9 +119,6 @@ export default { description: sequence.description, data: sequence.data } - if (sequence.data.resolution) { - data.data.resolution = sequence.data.resolution - } return client.pput(`/api/data/entities/${sequence.id}`, data) }, @@ -138,9 +129,6 @@ export default { status: episode.status, data: episode.data } - if (episode.data.resolution) { - data.data.resolution = episode.data.resolution - } if (episode.is_casting_standby !== undefined) { data.is_casting_standby = Boolean(episode.is_casting_standby) }