OpenUnited / platform

Other
41 stars 66 forks source link

Cast vote for idea #258

Closed sachintom999 closed 4 months ago

sachintom999 commented 4 months ago

Changes

Testing

Case : logged in user

13may

Case: user without authentication

image

@adrianmcphee , I will raise a separate PR for unit tests for the above functionality

adrianmcphee commented 4 months ago

@endalkh should we perhaps merge this as is, or are your suggestions important enough that they should be addressed?

sachintom999 commented 4 months ago

@endalkh should we perhaps merge this as is, or are your suggestions important enough that they should be addressed?

@endalkh - Thanks for the review comments.

@adrianmcphee, As per our discussion, though adding the field voted_users is simpler, on further reading, your idea of adding a new model (called IdeaVote ) is more robust and prevents data corruption in certain cases. I am implementing that approach. All the comments above will be addressed when I push the latest changes. I will do that in some time.

sachintom999 commented 4 months ago

@adrianmcphee @endalkh , the pipeline is failing because of conflicting migrations image

I tried pulling the latest main branch and merging into this feature branch and for me , it says No conflicts detected to merge.

Could you please try at your end and help me here. Thanks

endalkh commented 4 months ago

@sachintom999 can you please pull the last changes and run migration merge

'python manage-py nakemigrations --merge'

sachintom999 commented 4 months ago

@endalkh I already did that , but it says No conflicts detected to merge

sachintom999 commented 4 months ago

@endalkh , sorry. My fork was not upto date. Hence the above issues. Fixed all issues now.