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

Restrict: users can only write one answer to the same question #644

Closed
fenbox opened this issue Nov 21, 2023 · 7 comments
Closed

Restrict: users can only write one answer to the same question #644

fenbox opened this issue Nov 21, 2023 · 7 comments
Assignees
Labels
enhancement Enhancement request
Milestone

Comments

@fenbox
Copy link
Member

fenbox commented Nov 21, 2023

Is your feature request related to a problem? Please describe.

Answer is a Q&A platform, not a forum. Some users mistake the answer section for a discussion area. Despite receiving prompts to edit their original answers, they keep adding new answers, breaking down the answer into several separate responses, making it difficult to accept the correct answer.

image

Describe the solution you'd like

By default, users can only write one answer to the same question.

  1. Add switch option in admin -> settings -> write, default is "On".

    image

  2. When the user has answered the current question (excluding deleted ones):

    • Show “Edit my existing answer” which takes the user to the page where they can edit their answer.
    • When allowing multiple answers from the same user, display another button “Add another answer”. Clicking on it will prompt a dialog box as before.

    image

Design files: Answer, Settings

@fenbox fenbox added the enhancement Enhancement request label Nov 21, 2023
@fenbox fenbox added this to the v1.2.1 milestone Nov 22, 2023
@fenbox fenbox moved this to Todo in Answer Roadmap Nov 22, 2023
@hgaol
Copy link
Member

hgaol commented Nov 26, 2023

Hi, I'd like to try this task. thx~

@fenbox
Copy link
Member Author

fenbox commented Nov 27, 2023

Hi @hgaol, I improved the description. You can give it a try.

@fenbox fenbox moved this from Todo to In Progress in Answer Roadmap Nov 27, 2023
@fenbox fenbox changed the title Limit: users can only write one answer to the same question Restrict: users can only write one answer to the same question Nov 27, 2023
@hgaol
Copy link
Member

hgaol commented Nov 27, 2023

Thanks @fenbox . I've thought it was more about backend.. I'm not so familiar with frontend but can have a try. If it's urgent, you can re-assign it to another guy. Or I'll take some time to ramp up. :)

@b4s36t4
Copy link

b4s36t4 commented Nov 27, 2023

Would love to take this up for a try :)

@fenbox
Copy link
Member Author

fenbox commented Nov 28, 2023

@hgaol Maybe you can write the backend first, and then we'll see if anyone can help write the frontend if we don't have enough time.

@hgaol
Copy link
Member

hgaol commented Dec 8, 2023

Hi @fenbox , sorry for late reply. For 'edit existing answer', what should we do if there're already more than one answers from same person? Should we show a model to let user select or just randomly select one to edit?

@fenbox
Copy link
Member Author

fenbox commented Dec 10, 2023

Hi @hg, in order to reduce complexity, I think it would be more appropriate to edit the one that was first posted.

@fenbox fenbox moved this from In Progress to Review in Answer Roadmap Dec 13, 2023
@fenbox fenbox moved this from Review to Done in Answer Roadmap Dec 14, 2023
@fenbox fenbox closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement request
Projects
Archived in project
Development

No branches or pull requests

3 participants