Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions page Comment and Answer numbers not changing correctly #4034

Closed
kevinzluo opened this issue Nov 23, 2018 · 8 comments
Closed

Questions page Comment and Answer numbers not changing correctly #4034

kevinzluo opened this issue Nov 23, 2018 · 8 comments
Labels
add-code-links bug the issue is regarding one of our programs which faces problems when a certain task is executed

Comments

@kevinzluo
Copy link
Collaborator

Please describe the problem (or idea)

What did you expect to see that you didn't?

Deleting a comment to an answer decreases the answer count:
errordeletingcommenttoanswer


Posting a new comment increases answer count.
errorinpostingcomments


Adding an answer doesn't increase answer count, but deleting one does.
errorinpostingdeletinganswers

Please show us where to look

https://publiclab.org/questions

What's your PublicLab.org username?

This can help us diagnose the issue:

kevinz_qu

Browser, version, and operating system

Many bugs are related to these -- please help us track it down and reproduce what you're seeing!

Chrome, Ubuntu


Thank you!

Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.

To learn how to write really great issues, which increases the chances they'll be resolved, see:

https://publiclab.org/wiki/developers#Contributing+for+non-coders

The problems I mentioned all go away when the page is refreshed.

I would like to try working on this issue.

@grvsachdeva grvsachdeva added bug the issue is regarding one of our programs which faces problems when a certain task is executed add-code-links labels Nov 24, 2018
@conkytom
Copy link
Contributor

I'd like to take a look at this.

@kevinzluo
Copy link
Collaborator Author

Hi @conkytom
I actually started working on this already. Maybe we can assist each other 😄.

@conkytom
Copy link
Contributor

Hey @kevinzluo, I haven't pinned down the source of the problem. I only just started comparing the code from comments in Notes to comments in questions. I was going to look at it more closely and try different approaches tomorrow. If you've got any insights or want another set of eyes on it let me know.

@kevinzluo
Copy link
Collaborator Author

I think we should try moving everything to use notes/comments. It seems like questions/comments has become deprecated and lacks the "Promote comment to answer" button after #3195. I'll let you know if I can find anything else.
Thanks!

@jywarren
Copy link
Member

jywarren commented Nov 26, 2018 via email

@conkytom
Copy link
Contributor

Been working on updating the question views using notes as the template, but I'm still getting weird numbers when entering comments of deleting answers. Often entering one comment will create 4 duplicates at the same time, however refreshing the page removes the duplicates and fixes any counting discrepancies.

Here's what I've changed so far, if it's not too disruptive to what you've been working on it might be useful to you. conkytom@e0b29ad

@kevinzluo
Copy link
Collaborator Author

Hi sorry for the delay, I've been busy studying for my exam which is tomorrow. After, I take it I will return to working.

Sorry!

@jywarren
Copy link
Member

jywarren commented Oct 5, 2019

Closing as we've merged comments and answers now! Thanks!

@jywarren jywarren closed this as completed Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add-code-links bug the issue is regarding one of our programs which faces problems when a certain task is executed
Projects
None yet
Development

No branches or pull requests

4 participants