apache / incubator-answer

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Home Page:https://answer.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linking question similar to GitHub issues

surapuramakhil opened this issue · comments

Is your feature request related to a problem? Please describe

Linking question similar to GitHub issues. Ability for user to link question while posting. Connection/link visibility on both questions

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

I'm interested in developing this feature, can assign me the question?

commented

Hi @fenbox! I was wondering if there have been any updates on this issue? I'm interested in this feature and would love to be assigned to it.

Sorry for the late reply, who of you two is willing to contribute to this issu?

@bangzzzz @sosyz

commented

Sorry for the late reply, who of you two is willing to contribute to this issu?

@bangzzzz @sosyz

If @bangzzzz doesn't have time, I can take it.

commented

Hi @sosyz, I updated some ideas.

When question A references the link of question B, A will be associated as a backlink to B and displayed on the page of question B.

  • Establish link under following conditions:

    • When question A is approved and in normal status
      • The content includes a link to question B (either a question or an answer)
      • OR an approved answer contains a link to question B (either a question or an answer)
    • When question A is closed
      • The closure reason includes a link to question B (either a question or an answer)
  • Remove link under following conditions:

    • When question A is deleted
    • When question A is in normal status
      • The content and answers no longer contain a link to question B (either a question or an answer)
      • OR all answers containing a link to question B are deleted

Other rules:

  • Display up to 5 posts, sorted by question popularity
  • Click "More" to visit "all linked questions" page
  • Do not link the question itself

Design file:

commented

@fenbox Thank you very much! The design diagram has been incredibly helpful for me. Displaying related issues on the sidebar would be a more suitable way for viewing them, I’ll follow the design to implement it.

Currently, I’m working on supporting associations via hashtags (e.g., starting with #) or question links. Do you have any suggestions for this part? Perhaps we need to add some hidden payload to prevent accidental links?

commented

supporting associations via hashtags (e.g., starting with #) or question links

I agree and have no suggestions for now.

Perhaps we need to add some hidden payload to prevent accidental links?

I couldn't find some public information, but I think there may need to be some restrictions to prevent attacks through this feature. For example, if a post contains the IDs of all posts, it may affect the website's performance when published.

commented

Got it~ I will be mindful of this potential risk.