Closed YannickB closed 9 years ago
Looking at it
Ok the votes are correctly loaded when I create a new reply, but I still can make the whole workflow work. Especially I have a question, how can you modify an existing proposition?
Here is my test workflow : -Click on make a reply -Fill the proposition and submit (at this point, indic/feedback fields must be hidden, base your domain on invisible -> already_accepted = False) -Navigate through workflow. We must be able to modify the fields at any times. -When you are at waiting_vote state, stay log as replier and fill the indic/feedback field. Did you understood that indic/feedback fields correspond to the vote.vote of the current user? Depending of the user you are log in, the value of theses fields are not the same. -Then log as the announcer, go to the proposition and fill his own indic/feedback fields to create his vote.vote. If the both vote.vote for the replier and the announcer are correctly filled, both vote.vote will automatically have is_complete = True and the proposition will automatically go to the paid state.
Also I have a strange bug, when I click on make a reply it load the last proposition of my current user instead of creating a new one.
1 Could you please describe where should be displayed votes from both announcer and proposer on the same page, for now design allows to display vote from one person per reply 2 >> Also I have a strange bug, when I click on make a reply it load the last proposition of my current user instead of creating a new one. it can be in case when user has already posted reply on this announcement and now it's available to edit until already_accepted = True. Mb it is also an answer to your question "Especially I have a question, how can you modify an existing proposition?"
Ok tested and approved. I think with this everything is done. Thank you for your hard work.
In proposition, hide indic/rate and feedback when already_accepted is false
The list of indic/rate shall be got from the category, the user shall directly have the list and shall not be able to modify it (remove the + button), he shall just be able to change the rate value. To get the list of indic, see https://github.com/YannickB/community-management/blob/master/__unreviewed__/vote/vote.py line 244