Bootcamp: bug in vote model

Created on 29 Jan 2019  ·  6Comments  ·  Source: vitorfs/bootcamp

selection_008
In this step, I was testing first upvote then if I immediately do downvote, the vote numbers will change but symbol will not change.
selection_009
In this I refresh page and I was having a downvote and I do upvote then the number will change but the symbol will but remain to downvote and new upvote also come
selection_010
and same happen here

Good first issue bug

Most helpful comment

As you said @Shekharnunia the vote UI is not working in the way it was intended. But the bug is not in the model, apparently is in the JS block responsible for doing the animation with the Ajax call, I'll spare some time to check it.

Sorry to be a pain about the search results, that is a new issue to raise, but in a nutshell: no, that's not how it should work, I was able to replicate the results and I have to check it.

All 6 comments

I see the behavior. To be honest I haven't found this, but perhaps some untested changes on Bootstrap are affecting it. I'll check. Thanks for letting me know @Shekharnunia

I thought you was aware of it, because I noticed it a month ago but didn't put an issue, that's why yesterday first I ask you about this thing

I don't think this is a issue. Please try reloading the pages after you have voted up and down. Possibly even without cache. CTRL + F5.
I think it's related to the django channels. Did you configure Redis correctly?

I don't know if you guys are aware of this but when I search something example
selection_013
let suppose I post this question and then when I type shekhar in search box I get
selection_011
selection_012
and this is the same question again and again.
Did you guys make it such a way to work like this?

As you said @Shekharnunia the vote UI is not working in the way it was intended. But the bug is not in the model, apparently is in the JS block responsible for doing the animation with the Ajax call, I'll spare some time to check it.

Sorry to be a pain about the search results, that is a new issue to raise, but in a nutshell: no, that's not how it should work, I was able to replicate the results and I have to check it.

Sorry to be a pain about the search results, that is a new issue to raise, but in a nutshell: no, that's not how it should work, I was able to replicate the results and I have to check it.

actually I was just checking the search app and when I used .distinct() or with example
context["articles_list"] = Article.objects.filter(Q( title__icontains=query) | Q(content__icontains=query) | Q( tags__name__icontains=query), status="P").distinct()

then I'm getting unique results.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shekharnunia picture Shekharnunia  ·  10Comments

Allan-Nava picture Allan-Nava  ·  14Comments

ssahilsahil798 picture ssahilsahil798  ·  5Comments

sebastian-code picture sebastian-code  ·  11Comments

sebastian-code picture sebastian-code  ·  11Comments