incubator-answer
incubator-answer copied to clipboard
Linking question similar to GitHub issues
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?
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
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.
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)
- When question A is approved and in normal status
-
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:
-
-
- path:
/questions/linked/question_id
- title:
Linked Questions - {{ site_name }}
- path:
@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?
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.
Got it~ I will be mindful of this potential risk.