geosolutions-it / sciadro-backend

https://waffle.io/geosolutions-it/sciadro-backend
1 stars 3 forks source link

Various problems on mission creation and video #50

Closed MV88 closed 5 years ago

MV88 commented 5 years ago

Testing the POST for missions I found something to fix

the response returned from a correct post request has some missing data /assets/872a244d-ec78-4ec4-a7b2-30b709302f69/missions/

this is the full response without all the points in the geometry for being short:

{
    "created": {
        "id": "4f22393d-fd7e-4d34-baa0-c05b7c3585e7",
        "created": "2019-05-30T15:16:58.567263Z",
        "name": "Mission_2019-05-30 15:16:58.465845",
        "description": null,
        "note": null,
        "geometry": {
            "type": "LineString",
            "coordinates": [
                [
                    10.4374221,
                    43.6524748
                ], // omitting other points
            ]
        },
        "asset": "872a244d-ec78-4ec4-a7b2-30b709302f69",
        "mission_video": {
            "width": 1024,
            "height": 768,
            "video_file": "data/6fb07cff-ce54-470b-afb4-22423f7a7125/Colibri_lun_nov_5_15_38_48_2018_GMT.avi",
            "fps": null,
            "mime_type": "video/mp4"
        },
        "modified": "2019-05-30T15:16:58.983711Z"
    },
    "task": {
        "type": "CONVERSION",
        "task_uuid": "b0a611e8-5e6e-4531-8b9f-b9d477783a2f"
    }
}
{
    "id": "3739c40e-d6ba-4e3e-96f7-4c2dad6f5c95",
    "created": "2019-05-30T14:29:31.025412Z",
    "name": "Mission_2019-05-30 14:29:30.975814",
    "description": null,
    "note": null,
    "geometry": {
        "type": "LineString",
        "coordinates": ......
    },
    "asset": "872a244d-ec78-4ec4-a7b2-30b709302f69",
    "mission_video": {
        "width": 1024,
        "height": 768,
        "video_file": "http://164.132.80.75:8081/assets/872a244d-ec78-4ec4-a7b2-30b709302f69/missions/3739c40e-d6ba-4e3e-96f7-4c2dad6f5c95/data/6f2822a2-f830-4666-a12a-c82ad1d250c7/Colibri_lun_nov_5_15_38_48_2018_GMT_Tg9z3AE.mp4",
        "fps": 35.0,
        "mime_type": "video/mp4"
    },
    "modified": "2019-05-30T14:29:31.426995Z"
}

image

it seems that /data endpoint does not exist... /assets/872a244d-ec78-4ec4-a7b2-30b709302f69/missions/3739c40e-d6ba-4e3e-96f7-4c2dad6f5c95/data

other related error handling

petrus7 commented 5 years ago

1) in mission_video the fps is null - is null after ingestion, we can obtain this values in post processing. it will be exposed again in mission detail endpoint. ill hide all values which are not instantly obtained they are only reachable trough detail endpoint 2)it seems that /data endpoint does not exist... yes this endpoint does not exist