From b04932904d5780981d584fc3e5c1f5fbea7d5fa9 Mon Sep 17 00:00:00 2001 From: Nicho Date: Sun, 20 Aug 2017 21:00:52 +0200 Subject: [PATCH] Renaming #11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed „s_id“ to „scenario_uuid“ - Renamed „l_id“ to „location_uuid“ - Renamed „v_id“ to „video_uuid“ - Renamed „o_id“ to „overlay_uuid“ - Template improvements --- controllers/locations/post.js | 10 +++++----- controllers/locations/put.js | 10 +++++----- controllers/overlays/post.js | 10 +++++----- controllers/overlays/put.js | 10 +++++----- controllers/scenarios/post.js | 10 +++++----- controllers/scenarios/put.js | 10 +++++----- controllers/videos/post.js | 10 +++++----- controllers/videos/put.js | 10 +++++----- data/belongs_to_locations.csv | 2 +- data/belongs_to_overlays.csv | 2 +- data/belongs_to_videos.csv | 2 +- data/connected_to.csv | 2 +- data/embedded_in.csv | 2 +- data/has_parent_location.csv | 2 +- data/locations.csv | 2 +- data/overlays.csv | 2 +- data/recorded_at.csv | 2 +- data/scenarios.csv | 2 +- data/videos.csv | 2 +- postman/IVE (local).postman_collection_v1.json | 16 ++++++++-------- postman/IVE (local).postman_collection_v2.json | 16 ++++++++-------- .../js/controllers/video/createController.js | 2 +- public/backend/js/filters/previewVideo.js | 2 +- public/backend/js/filters/thumbnail.js | 2 +- public/backend/templates/location/details.html | 4 ++-- public/backend/templates/location/list.html | 4 ++-- public/backend/templates/overlay/details.html | 4 ++-- public/backend/templates/overlay/list.html | 4 ++-- public/backend/templates/relationship/list.html | 4 ++-- .../backend/templates/relationship/select.html | 2 +- public/backend/templates/scenario/details.html | 4 ++-- public/backend/templates/scenario/list.html | 2 +- public/backend/templates/video/create.html | 13 ++++++++++++- public/backend/templates/video/details.html | 6 +++--- public/backend/templates/video/edit.html | 13 ++++++++++++- public/backend/templates/video/list.html | 2 +- public/translations/en_US.js | 11 ++++++++++- queries/locations/create.cypher | 4 ++-- queries/locations/edit.cypher | 4 ++-- queries/locations/get.cypher | 2 +- queries/locations/list.cypher | 2 +- queries/locations/list_by_location.cypher | 2 +- ..._by_location_filtered_by_location_type.cypher | 2 +- queries/locations/list_by_scenario.cypher | 2 +- ..._by_scenario_filtered_by_location_type.cypher | 2 +- .../list_filtered_by_location_type.cypher | 2 +- queries/locations/search.cypher | 6 +++--- queries/locations/search_by_location.cypher | 6 +++--- ..._by_location_filtered_by_location_type.cypher | 6 +++--- queries/locations/search_by_scenario.cypher | 6 +++--- ..._by_scenario_filtered_by_location_type.cypher | 6 +++--- .../search_filtered_by_location_type.cypher | 6 +++--- queries/overlays/create.cypher | 4 ++-- queries/overlays/edit.cypher | 4 ++-- queries/overlays/get.cypher | 2 +- queries/overlays/list.cypher | 2 +- queries/overlays/list_by_scenario.cypher | 2 +- .../list_by_scenario_filtered_by_category.cypher | 2 +- queries/overlays/list_by_video.cypher | 2 +- .../list_by_video_filtered_by_category.cypher | 2 +- .../overlays/list_filtered_by_category.cypher | 2 +- queries/overlays/search.cypher | 6 +++--- queries/overlays/search_by_scenario.cypher | 6 +++--- ...earch_by_scenario_filtered_by_category.cypher | 6 +++--- queries/overlays/search_by_video.cypher | 6 +++--- .../search_by_video_filtered_by_category.cypher | 6 +++--- .../overlays/search_filtered_by_category.cypher | 6 +++--- .../create/belongs_to_location.cypher | 4 ++-- .../create/belongs_to_overlay.cypher | 4 ++-- .../relationships/create/belongs_to_video.cypher | 4 ++-- queries/relationships/create/connected_to.cypher | 4 ++-- queries/relationships/create/embedded_in.cypher | 4 ++-- .../create/has_parent_location.cypher | 4 ++-- queries/relationships/create/recorded_at.cypher | 4 ++-- .../edit/belongs_to_location.cypher | 4 ++-- .../relationships/edit/belongs_to_overlay.cypher | 4 ++-- .../relationships/edit/belongs_to_video.cypher | 4 ++-- queries/relationships/edit/connected_to.cypher | 4 ++-- queries/relationships/edit/embedded_in.cypher | 4 ++-- .../edit/has_parent_location.cypher | 4 ++-- queries/relationships/edit/recorded_at.cypher | 4 ++-- .../relationships/get/belongs_to_location.cypher | 4 ++-- .../relationships/get/belongs_to_overlay.cypher | 4 ++-- .../relationships/get/belongs_to_video.cypher | 4 ++-- queries/relationships/get/connected_to.cypher | 4 ++-- queries/relationships/get/embedded_in.cypher | 4 ++-- .../relationships/get/has_parent_location.cypher | 4 ++-- queries/relationships/get/recorded_at.cypher | 4 ++-- .../list/list_belongs_to_location.cypher | 4 ++-- .../list/list_belongs_to_overlay.cypher | 4 ++-- .../list/list_belongs_to_video.cypher | 4 ++-- .../relationships/list/list_connected_to.cypher | 4 ++-- .../relationships/list/list_embedded_in.cypher | 4 ++-- .../list/list_has_parent_location.cypher | 4 ++-- .../relationships/list/list_recorded_at.cypher | 4 ++-- .../list/search_belongs_to_location.cypher | 12 ++++++------ .../list/search_belongs_to_overlay.cypher | 12 ++++++------ .../list/search_belongs_to_video.cypher | 12 ++++++------ .../list/search_connected_to.cypher | 12 ++++++------ .../relationships/list/search_embedded_in.cypher | 12 ++++++------ .../list/search_has_parent_location.cypher | 12 ++++++------ .../relationships/list/search_recorded_at.cypher | 12 ++++++------ queries/scenarios/create.cypher | 4 ++-- queries/scenarios/edit.cypher | 4 ++-- queries/scenarios/get.cypher | 2 +- queries/scenarios/list.cypher | 2 +- queries/scenarios/search.cypher | 6 +++--- queries/setup/create_constraint_locations.cypher | 2 +- queries/setup/create_constraint_overlays.cypher | 2 +- queries/setup/create_constraint_scenarios.cypher | 2 +- queries/setup/create_constraint_videos.cypher | 2 +- queries/setup/import_belongs_to_locations.cypher | 4 ++-- queries/setup/import_belongs_to_overlays.cypher | 4 ++-- queries/setup/import_belongs_to_videos.cypher | 4 ++-- queries/setup/import_connected_to.cypher | 4 ++-- queries/setup/import_embedded_in.cypher | 4 ++-- queries/setup/import_has_parent_location.cypher | 4 ++-- queries/setup/import_locations.cypher | 2 +- queries/setup/import_overlays.cypher | 2 +- queries/setup/import_recorded_at.cypher | 4 ++-- queries/setup/import_scenarios.cypher | 2 +- queries/setup/import_videos.cypher | 2 +- queries/videos/create.cypher | 4 ++-- queries/videos/edit.cypher | 4 ++-- queries/videos/get.cypher | 2 +- queries/videos/list.cypher | 2 +- queries/videos/list_by_location.cypher | 2 +- queries/videos/list_by_scenario.cypher | 2 +- queries/videos/search.cypher | 6 +++--- queries/videos/search_by_location.cypher | 6 +++--- queries/videos/search_by_scenario.cypher | 6 +++--- 131 files changed, 326 insertions(+), 295 deletions(-) diff --git a/controllers/locations/post.js b/controllers/locations/post.js index 7b56a99..ce7f66c 100644 --- a/controllers/locations/post.js +++ b/controllers/locations/post.js @@ -18,16 +18,16 @@ exports.request = function(req, res) { async.waterfall([ function(callback){ // Parameter validation - // Check l_id - var l_id = uuid.v1(); - if(req.body.l_id && req.body.l_id !== ""){ - l_id = req.body.l_id; + // Check location_uuid + var location_uuid = uuid.v1(); + if(req.body.location_uuid && req.body.location_uuid !== ""){ + location_uuid = req.body.location_uuid; } // TODO: Validate all attributes of req.body var params = { - l_id: l_id, + location_uuid: location_uuid, name: req.body.name, description: req.body.description, lat: req.body.lat, diff --git a/controllers/locations/put.js b/controllers/locations/put.js index f9b8ab0..974766f 100644 --- a/controllers/locations/put.js +++ b/controllers/locations/put.js @@ -36,17 +36,17 @@ exports.request = function(req, res) { }, function(callback){ // Parameter validation - // Check l_id - var l_id = uuid.v1(); - if(req.body.l_id && req.body.l_id !== ""){ - l_id = req.body.l_id; + // Check location_uuid + var location_uuid = uuid.v1(); + if(req.body.location_uuid && req.body.location_uuid !== ""){ + location_uuid = req.body.location_uuid; } // TODO: Validate all attributes of req.body var params = { location_id: req.params.location_id, - l_id: l_id, + location_uuid: location_uuid, name: req.body.name, description: req.body.description, lat: req.body.lat, diff --git a/controllers/overlays/post.js b/controllers/overlays/post.js index 4482930..f8d8a79 100644 --- a/controllers/overlays/post.js +++ b/controllers/overlays/post.js @@ -18,16 +18,16 @@ exports.request = function(req, res) { async.waterfall([ function(callback){ // Parameter validation - // Check o_id - var o_id = uuid.v1(); - if(req.body.o_id && req.body.o_id !== ""){ - o_id = req.body.o_id; + // Check overlay_uuid + var overlay_uuid = uuid.v1(); + if(req.body.overlay_uuid && req.body.overlay_uuid !== ""){ + overlay_uuid = req.body.overlay_uuid; } // TODO: Validate all attributes of req.body var params = { - o_id: o_id, + overlay_uuid: overlay_uuid, name: req.body.name, description: req.body.description, category: req.body.category, diff --git a/controllers/overlays/put.js b/controllers/overlays/put.js index 994ff1d..91c7592 100644 --- a/controllers/overlays/put.js +++ b/controllers/overlays/put.js @@ -36,17 +36,17 @@ exports.request = function(req, res) { }, function(callback){ // Parameter validation - // Check o_id - var o_id = uuid.v1(); - if(req.body.o_id && req.body.o_id !== ""){ - o_id = req.body.o_id; + // Check overlay_uuid + var overlay_uuid = uuid.v1(); + if(req.body.overlay_uuid && req.body.overlay_uuid !== ""){ + overlay_uuid = req.body.overlay_uuid; } // TODO: Validate all attributes of req.body var params = { overlay_id: req.params.overlay_id, - o_id: o_id, + overlay_uuid: overlay_uuid, name: req.body.name, description: req.body.description, category: req.body.category, diff --git a/controllers/scenarios/post.js b/controllers/scenarios/post.js index 797abb3..0c8246e 100644 --- a/controllers/scenarios/post.js +++ b/controllers/scenarios/post.js @@ -18,16 +18,16 @@ exports.request = function(req, res) { async.waterfall([ function(callback){ // Parameter validation - // Check s_id - var s_id = uuid.v1(); - if(req.body.s_id && req.body.s_id !== ""){ - s_id = req.body.s_id; + // Check scenario_uuid + var scenario_uuid = uuid.v1(); + if(req.body.scenario_uuid && req.body.scenario_uuid !== ""){ + scenario_uuid = req.body.scenario_uuid; } // TODO: Validate all attributes of req.body var params = { - s_id: s_id, + scenario_uuid: scenario_uuid, name: req.body.name, description: req.body.description }; diff --git a/controllers/scenarios/put.js b/controllers/scenarios/put.js index 272c804..a725fc1 100644 --- a/controllers/scenarios/put.js +++ b/controllers/scenarios/put.js @@ -36,17 +36,17 @@ exports.request = function(req, res) { }, function(callback){ // Parameter validation - // Check s_id - var s_id = uuid.v1(); - if(req.body.s_id && req.body.s_id !== ""){ - s_id = req.body.s_id; + // Check scenario_uuid + var scenario_uuid = uuid.v1(); + if(req.body.scenario_uuid && req.body.scenario_uuid !== ""){ + scenario_uuid = req.body.scenario_uuid; } // TODO: Validate all attributes of req.body var params = { scenario_id: req.params.scenario_id, - s_id: s_id, + scenario_uuid: scenario_uuid, name: req.body.name, description: req.body.description }; diff --git a/controllers/videos/post.js b/controllers/videos/post.js index bf15475..c601a71 100644 --- a/controllers/videos/post.js +++ b/controllers/videos/post.js @@ -19,16 +19,16 @@ exports.request = function(req, res) { async.waterfall([ function(callback){ // Parameter validation - // Check v_id - var v_id = uuid.v1(); - if(req.body.v_id && req.body.v_id !== ""){ - v_id = req.body.v_id; + // Check video_uuid + var video_uuid = uuid.v1(); + if(req.body.video_uuid && req.body.video_uuid !== ""){ + video_uuid = req.body.video_uuid; } // TODO: Validate all attributes of req.body var params = { - v_id: v_id, + video_uuid: video_uuid, name: req.body.name, description: req.body.description, url: req.body.url, diff --git a/controllers/videos/put.js b/controllers/videos/put.js index 2174112..fb9b0e8 100644 --- a/controllers/videos/put.js +++ b/controllers/videos/put.js @@ -37,17 +37,17 @@ exports.request = function(req, res) { }, function(callback){ // Parameter validation - // Check v_id - var v_id = uuid.v1(); - if(req.body.v_id && req.body.v_id !== ""){ - v_id = req.body.v_id; + // Check video_uuid + var video_uuid = uuid.v1(); + if(req.body.video_uuid && req.body.video_uuid !== ""){ + video_uuid = req.body.video_uuid; } // TODO: Validate all attributes of req.body var params = { video_id: req.params.video_id, - v_id: v_id, + video_uuid: video_uuid, name: req.body.name, description: req.body.description, url: req.body.url, diff --git a/data/belongs_to_locations.csv b/data/belongs_to_locations.csv index 48491aa..cc4bf58 100644 --- a/data/belongs_to_locations.csv +++ b/data/belongs_to_locations.csv @@ -1,4 +1,4 @@ -l_id,s_id +location_uuid,scenario_uuid l_01,s_01 l_02,s_01 l_03,s_01 diff --git a/data/belongs_to_overlays.csv b/data/belongs_to_overlays.csv index 737ae2e..a7e9435 100644 --- a/data/belongs_to_overlays.csv +++ b/data/belongs_to_overlays.csv @@ -1,4 +1,4 @@ -o_id,s_id +overlay_uuid,scenario_uuid o_01,s_02 o_02,s_02 o_03,s_01 diff --git a/data/belongs_to_videos.csv b/data/belongs_to_videos.csv index 01d1d59..4222040 100644 --- a/data/belongs_to_videos.csv +++ b/data/belongs_to_videos.csv @@ -1,4 +1,4 @@ -v_id,s_id +video_uuid,scenario_uuid v_01,s_01 v_02,s_01 v_03,s_01 diff --git a/data/connected_to.csv b/data/connected_to.csv index ab674c4..90f57a6 100644 --- a/data/connected_to.csv +++ b/data/connected_to.csv @@ -1,4 +1,4 @@ -start_id,end_id +start_location_uuid,end_location_uuid l_01,l_02 l_01,l_04 l_02,l_01 diff --git a/data/embedded_in.csv b/data/embedded_in.csv index 3874148..ec6f5da 100644 --- a/data/embedded_in.csv +++ b/data/embedded_in.csv @@ -1,4 +1,4 @@ -o_id,v_id,description,w,h,x,y,z,d,rx,ry,rz,display +overlay_uuid,video_uuid,description,w,h,x,y,z,d,rx,ry,rz,display o_01,v_12,,1417,873,561.9906416454288,299.3003351341884,-646.8748621420448,0,0,0,0,1 o_02,v_10,,357,500,305.33880760560027,94.87683266519059,69,0,0,0.17576139977127267,0,1 o_03,v_07,,700,575,547.6430973457741,323.2137010950475,-228.65846681625413,0,0,0,0,1 diff --git a/data/has_parent_location.csv b/data/has_parent_location.csv index 1ca3853..124967c 100644 --- a/data/has_parent_location.csv +++ b/data/has_parent_location.csv @@ -1,4 +1,4 @@ -child_id,parent_id +child_location_uuid,parent_location_uuid l_10_01,l_10 l_20_01,l_20 l_20_02,l_20 diff --git a/data/locations.csv b/data/locations.csv index bcc3d6d..dc88caa 100644 --- a/data/locations.csv +++ b/data/locations.csv @@ -1,4 +1,4 @@ -l_id,name,lat,lng,description,location_type +location_uuid,name,lat,lng,description,location_type l_01,Schlossplatz,51.96344,7.617753,The Schlossplatz is a large place in the front of the castle,outdoor l_02,Frauenstraße [1],51.963453,7.618718,A little street in the direct environment of the castle,outdoor l_03,Frauenstraße [2],51.963572,7.620655,Intersection of Frauenstraße and Krummer Timpen overlooking the ULB,outdoor diff --git a/data/overlays.csv b/data/overlays.csv index 6cd9199..021071c 100644 --- a/data/overlays.csv +++ b/data/overlays.csv @@ -1,4 +1,4 @@ -o_id,name,description,category,url +overlay_uuid,name,description,category,url o_01,Münster Marketing & Stadwerke,Brand advertisement,picture,/media/images/display1.gif o_02,Movie advertisement,Movie advertisement (Looper),picture,/media/images/display_looper.gif o_03,News,Uni Muenster Homepage,website,http://www.uni-muenster.de/de/ diff --git a/data/recorded_at.csv b/data/recorded_at.csv index c5d8f9a..2a18b5e 100644 --- a/data/recorded_at.csv +++ b/data/recorded_at.csv @@ -1,4 +1,4 @@ -v_id,l_id,description,preferred +video_uuid,location_uuid,description,preferred v_01,l_01,,1 v_02,l_02,,1 v_03,l_03,,1 diff --git a/data/scenarios.csv b/data/scenarios.csv index da52719..d217e7c 100644 --- a/data/scenarios.csv +++ b/data/scenarios.csv @@ -1,4 +1,4 @@ -s_id,name,description +scenario_uuid,name,description s_01,Münster (city center),City center s_02,Münster (main station),Main station s_03,GEO-1,Nichos thesis diff --git a/data/videos.csv b/data/videos.csv index b9cbacc..0158788 100644 --- a/data/videos.csv +++ b/data/videos.csv @@ -1,4 +1,4 @@ -v_id,name,url,description,description_german,recorded,thumbnails +video_uuid,name,url,description,description_german,recorded,thumbnails v_01,Schlossplatz,/muenster-city-center/task01,Schlossplatz,Schlossplatz,2014-04-03 11:56:00,312 v_02,Frauenstraße [1],/muenster-city-center/task02,Frauenstraße [1],Frauenstraße [1],2014-04-03 12:43:00,294 v_03,Frauenstraße [2],/muenster-city-center/task03,Frauenstraße [2],Frauenstraße [2],2014-04-03 13:25:00,307 diff --git a/postman/IVE (local).postman_collection_v1.json b/postman/IVE (local).postman_collection_v1.json index 7bccc31..c25b183 100644 --- a/postman/IVE (local).postman_collection_v1.json +++ b/postman/IVE (local).postman_collection_v1.json @@ -114,7 +114,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n\"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" + "rawModeData": "{\n\"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" }, { "id": "0dbaec6a-e426-6d38-4aa8-5487ec786951", @@ -285,7 +285,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n \"scenario_id\": 891,\n \"created\": 1481908792639,\n \"updated\": 1481908792639,\n \"s_id\": \"test-1234567890\",\n \"name\": \"test-1234567890\",\n \"description\": \"test-1234567890\"\n}" + "rawModeData": "{\n \"scenario_id\": 891,\n \"created\": 1481908792639,\n \"updated\": 1481908792639,\n \"scenario_uuid\": \"test-1234567890\",\n \"name\": \"test-1234567890\",\n \"description\": \"test-1234567890\"\n}" }, { "id": "446cdb32-1e8b-71ed-2f3c-fa64b62bdca0", @@ -343,7 +343,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n\t\"v_id\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" + "rawModeData": "{\n\t\"video_uuid\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" }, { "id": "6481842e-0f96-83cd-70a8-925fafaa8dcc", @@ -384,7 +384,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n\t\"v_id\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" + "rawModeData": "{\n\t\"video_uuid\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" }, { "id": "67ec0746-3657-0c92-3891-9c02381c1901", @@ -502,7 +502,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n\"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" + "rawModeData": "{\n\"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" }, { "id": "8408d073-0a28-666c-95cf-b762b73af9d6", @@ -734,7 +734,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n\t\"v_id\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" + "rawModeData": "{\n\t\"video_uuid\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" }, { "id": "f372c0f6-65ae-61ed-15e4-fda45c918a7f", @@ -754,7 +754,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n\"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" + "rawModeData": "{\n\"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" }, { "id": "f4ce63c4-531d-e172-1a8a-468a86068704", @@ -773,7 +773,7 @@ "description": "", "collectionId": "b932361e-e0e2-ab05-830e-592bae84c035", "responses": [], - "rawModeData": "{\n \"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.6330,\n \"location_type\": \"indoor\"\n }" + "rawModeData": "{\n \"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.6330,\n \"location_type\": \"indoor\"\n }" } ] } \ No newline at end of file diff --git a/postman/IVE (local).postman_collection_v2.json b/postman/IVE (local).postman_collection_v2.json index e15e52a..0876495 100644 --- a/postman/IVE (local).postman_collection_v2.json +++ b/postman/IVE (local).postman_collection_v2.json @@ -108,7 +108,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" + "raw": "{\n\"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" }, "description": "" }, @@ -133,7 +133,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.6330,\n \"location_type\": \"indoor\"\n }" + "raw": "{\n \"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.6330,\n \"location_type\": \"indoor\"\n }" }, "description": "" }, @@ -169,7 +169,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" + "raw": "{\n\"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" }, "description": "" }, @@ -189,7 +189,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\"l_id\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" + "raw": "{\n\"location_uuid\": \"test\",\n \"name\": \"Test\",\n \"description\": \"Test\",\n \"lat\": 51.957,\n \"lng\": 7.633,\n \"location_type\": \"indoor\"\n}" }, "description": "" }, @@ -429,7 +429,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"scenario_id\": 891,\n \"created\": 1481908792639,\n \"updated\": 1481908792639,\n \"s_id\": \"test-1234567890\",\n \"name\": \"test-1234567890\",\n \"description\": \"test-1234567890\"\n}" + "raw": "{\n \"scenario_id\": 891,\n \"created\": 1481908792639,\n \"updated\": 1481908792639,\n \"scenario_uuid\": \"test-1234567890\",\n \"name\": \"test-1234567890\",\n \"description\": \"test-1234567890\"\n}" }, "description": "" }, @@ -530,7 +530,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"v_id\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" + "raw": "{\n\t\"video_uuid\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" }, "description": "" }, @@ -566,7 +566,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"v_id\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" + "raw": "{\n\t\"video_uuid\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" }, "description": "" }, @@ -586,7 +586,7 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"v_id\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" + "raw": "{\n\t\"video_uuid\": \"test\",\n \"name\": \"Test-2\",\n \"description\": \"Test-2\",\n \"url\": \"http://example.org\",\n \"recorded\": null\n}\n" }, "description": "" }, diff --git a/public/backend/js/controllers/video/createController.js b/public/backend/js/controllers/video/createController.js index 4633538..b45714b 100644 --- a/public/backend/js/controllers/video/createController.js +++ b/public/backend/js/controllers/video/createController.js @@ -35,7 +35,7 @@ app.controller("videoCreateController", function($scope, $rootScope, $routeParam $videoService.create($scope.video) .then(function onSuccess(response) { $scope.video = response.data; - $window.prompt($filter('translate')('NEW_VIDEO_CREATED'), $scope.video.v_id); + $window.prompt($filter('translate')('NEW_VIDEO_CREATED'), $scope.video.video_uuid); $scope.redirect("/videos/" + $scope.video.video_id); }) .catch(function onError(response) { diff --git a/public/backend/js/filters/previewVideo.js b/public/backend/js/filters/previewVideo.js index 76903be..2a36e69 100644 --- a/public/backend/js/filters/previewVideo.js +++ b/public/backend/js/filters/previewVideo.js @@ -4,6 +4,6 @@ var app = angular.module("ive"); // Preview video filter app.filter('previewVideo', function(config) { return function(video, fileName) { - return config.thumbnailFolder + "/" + video.v_id + "/poster.jpg"; + return config.thumbnailFolder + "/" + video.video_uuid + "/poster.jpg"; }; }); diff --git a/public/backend/js/filters/thumbnail.js b/public/backend/js/filters/thumbnail.js index 0af494f..b082f6b 100644 --- a/public/backend/js/filters/thumbnail.js +++ b/public/backend/js/filters/thumbnail.js @@ -4,6 +4,6 @@ var app = angular.module("ive"); // Thumbnail filter app.filter('thumbnail', function(config) { return function(video, fileName, relationship_label) { - return config.thumbnailFolder + "/" + video.v_id + "/" + fileName + ".jpg"; + return config.thumbnailFolder + "/" + video.video_uuid + "/" + fileName + ".jpg"; }; }); diff --git a/public/backend/templates/location/details.html b/public/backend/templates/location/details.html index 049f947..1478b24 100644 --- a/public/backend/templates/location/details.html +++ b/public/backend/templates/location/details.html @@ -48,8 +48,8 @@
{{ 'PROPERTIES' | translate }}
{{ 'UUID' | translate }} - - {{location.l_id}} + + {{location.location_uuid}} diff --git a/public/backend/templates/location/list.html b/public/backend/templates/location/list.html index c3a66a6..0233272 100644 --- a/public/backend/templates/location/list.html +++ b/public/backend/templates/location/list.html @@ -31,7 +31,7 @@
- + @@ -47,7 +47,7 @@
- + diff --git a/public/backend/templates/relationship/list.html b/public/backend/templates/relationship/list.html index 01d176a..df23337 100644 --- a/public/backend/templates/relationship/list.html +++ b/public/backend/templates/relationship/list.html @@ -38,7 +38,7 @@
- +