RightToAskOrg / righttoask-app

GNU General Public License v3.0
3 stars 2 forks source link

HowAnswered not set correctly in downloaded questions #148

Open vteague opened 1 year ago

vteague commented 1 year ago

The QuestionDetailPage should show the 'who should raise the question' info if HowAnsweredOptions is 'InParliament'. This works fine when generating a new question. However, when looking at the details of a question downloaded from the server, the 'who should raise question' info is not shown.

Current behavior: HowAnsweredOptions are always set to DontKnow for downloaded questions, which does not cause the 'who should raise' info to display.

Expected behavior: either (1) display the 'who should raise' info if HowAnsweredOptions is DontKnow, or (2) when downloading a question, set HowAnsweredOptions to InParliament if there is anyone set to raise it (and InApp if there's an answerer but not a raiser, and DontKnow if there's none).

These have slightly different effects: (1) gives us a lot more display of blanks, which might be good if you want to add to it but might also be confusing. (2) is more minimalist, but might mean that people miss out on a chance to add someone to raise it. Since we don't currently have an option to add people, (1) might be best for now.