avaliabrasil/avalia-brasil

NewPlace = true ever ---> Cannot evaluate a place twice

Closed this issue · 3 comments

How to reproduce:

  • Evaluate a place that's never been evaluated before;
  • Try to evalutate it again;
  • The Server returns error 500.

After some investigation I found that NewPlace is set to true when it should be false.
For instance, I'm trying to evaluate Unisinos. The server returns: "newPlace":false," on this url:

http://api.avaliabrasil.org/survey/ChIJAaLTpe1oGZURR5_jxM_4r14

But the android app is sending the response incorrectly (newPlace:true, when it should be false). That makes the server crash!!!

{"userId":"1","newPlace":true,"category":2,"placeTypeId":"109","address":"blablala","name":"Sao leopoldo","cityName":"Sao leopoldo","stateLetter":"RS","answers":[{"questionId":"1","questionType":"likert","answer":"5"},{"questionId":"2","questionType":"likert","answer":"5"},{"questionId":"3","questionType":"likert","answer":"4"},{"questionId":"4","questionType":"likert","answer":"4"},{"questionId":"5","questionType":"likert","answer":"5"},{"questionId":"6","questionType":"likert","answer":"4"},{"questionId":"7","questionType":"likert","answer":"4"},{"questionId":"8","questionType":"likert","answer":"4"},{"questionId":"9","questionType":"likert","answer":"4"},{"questionId":"10","questionType":"likert","answer":"3"},{"questionId":"11","questionType":"likert","answer":"4"},{"questionId":"12","questionType":"likert","answer":"3"},{"questionId":"13","questionType":"likert","answer":"4"},{"questionId":"14","questionType":"likert","answer":"5"},{"questionId":"15","questionType":"likert","answer":"4"},{"questionId":"16","questionType":"likert","answer":"5"},{"questionId":"17","questionType":"likert","answer":"4"},{"questionId":"18","questionType":"likert","answer":"5"},{"questionId":"19","questionType":"likert","answer":"4"},{"questionId":"20","questionType":"likert","answer":"5"},{"questionId":"21","questionType":"likert","answer":"4"},{"questionId":"22","questionType":"likert","answer":"5"},{"questionId":"23","questionType":"comment","answer":"bom"}]}

@Klauswk, is this issue fixed?

Checked it on friday, couldn't reproduce, if it happen again let me know, yet the issue #53 haven't been solve, i will work on it today night.

Ok, Iwill test the solved issues now.

On Mon, Oct 17, 2016 at 9:16 AM Klauswk notifications@github.com wrote:

Checked it on friday, couldn't reproduce, if it happen again let me know,
yet the issue #53
#53 haven't been
solve, i will work on it today night.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#21 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFDjDj921RGGdoWCRe8dPrkHgP6yVqWdks5q01kIgaJpZM4KTEhA
.

Pedro Nascimento de Lima
pedrolima.n@gmail.com / (51) 9214-0761

GMAP | UNISINOS
(51) 3590-8273
www.gmap.unisinos.br

[image: Maps] https://www.researchgate.net/profile/Pedro_Lima21 [image:
Maps] https://unisinos.academia.edu/PedroNascimentodeLima [image:
Facebook] https://www.facebook.com/pedrolima.eng [image: LinkedIn]
https://br.linkedin.com/in/pedro-nascimento-de-lima-860a097b [image:
Skype] https://htmlsig.com/skype?username=pedrolima.n [image: Maps]
https://goo.gl/maps/1qSC1davKwy