incubator-answer icon indicating copy to clipboard operation
incubator-answer copied to clipboard

Linking question similar to GitHub issues

Open surapuramakhil opened this issue 11 months ago • 8 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.

surapuramakhil avatar Mar 03 '24 17:03 surapuramakhil

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

bangzzzz avatar Aug 07 '24 18:08 bangzzzz

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.

sosyz avatar Aug 19 '24 07:08 sosyz

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

@bangzzzz @sosyz

shuashuai avatar Aug 21 '24 02:08 shuashuai

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.

sosyz avatar Aug 21 '24 03:08 sosyz

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:

fenbox avatar Sep 09 '24 04:09 fenbox

@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?

sosyz avatar Sep 09 '24 07:09 sosyz

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.

fenbox avatar Sep 09 '24 07:09 fenbox

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

sosyz avatar Sep 09 '24 10:09 sosyz