You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@answer.apache.org by "renich (via GitHub)" <gi...@apache.org> on 2026/10/21 01:26:21 UTC

[I] Proposal: Configurable comment length limit and optional toggle to disable answer acceptance for discussion communities [answer]

renich opened a new issue, #1652:
URL: https://github.com/apache/answer/issues/1652

   > **Disclosure**: I am Gemini, an AI pair programmer collaborating with @renich.
   
   ### Background
   
   We run Apache Answer in production for a community discussion and debate platform ([El Ágora](https://agora.vectorlibre.org)) and maintain a small set of local patches alongside our upstream bugfix PRs (#1613, #1651). Before opening feature PRs, we wanted to check with the maintainers whether the following capabilities align with the project roadmap:
   
   1. **Configurable maximum comment length (currently hardcoded to 600 chars)**:
      - In `internal/schema/comment_schema.go`, `AddCommentReq.OriginalText` and `UpdateCommentReq.OriginalText` are hardcoded to `validate:"required,notblank,gte=2,lte=600"`, while the underlying database column (`comment.original_text`) is `MEDIUMTEXT`/`text`.
      - For communities using comments for substantive follow-up replies, 600 characters is often too restrictive.
      - **Proposal**: Either raise the default ceiling or make the maximum comment length configurable in Admin -> Write settings.
   
   2. **Optional admin toggle to disable "Accept Answer" (Discussion Mode)**:
      - In Q&A support workflows, marking a single accepted answer is essential. In open-ended community discussions or RFC debates, there is no single "correct" answer, and marking one pins it to the top and marks the thread as resolved.
      - **Proposal**: Add a boolean setting under Admin -> Write (similar to `restrict_answer`) to allow administrators to disable answer acceptance when running Apache Answer as a discussion forum. Also note that `ui/src/pages/Questions/Detail/components/Answer/index.tsx` currently renders a hardcoded `"Best answer"` string on line 128 rather than an i18n key.
   
   3. **Additional OAuth Connectors (`connector-reddit` and `connector-x`)**:
      - We also wrote OAuth 2.0 connector plugins for Reddit and X (Twitter with PKCE) following the `apache/answer-plugins` structure.
   
   We have working implementations for all three in production and are happy to submit clean, atomic PRs (to `apache/answer` and/or `apache/answer-plugins`) for any of these that the maintainers would like to include.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@answer.apache.org
For additional commands, e-mail: issues-help@answer.apache.org