Bug #1909
User Story #1897: API endpoints to add new cases
Updating Questionnaire: Only adding image is not working
Start date:
15 Sep 2020
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
When I add an image to a techology (formerly uploaded) by adding the following the list of picture under qg_photos:
"qg_photos": [ { ... (already existing images) }, { "image":"6777f9bd-e536-488a-8681-921b7e08d603", "image_date": "07/06/2009", "image_caption": { "en": "The photo shows some funny test image", "th": "The photo shows some funny test image" }, "image_location": { "en": "Lake Nakuru National Park, Kenya", "th": "Lake Nakuru National Park, Kenya" }, "image_photographer": { "en": "xy", "th": "xy" } } ]
When sending this update with POST , the response says:
"No changes detected" and the image is not appended.
When I change some description text somewhere else, it resonds 'successfull' and the image is added.
When I try to remove an image by removing an image from qg_photos, it answers again:
" No changes detected"
I'm wondering, what it is testing to detect changes. I think, it should rather use something like a 'hash comparison' so that each change, even if it is only a space in text string, should be recoginzed as change.