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

Linking question similar to GitHub issues #817

Closed
surapuramakhil opened this issue Mar 3, 2024 · 8 comments
Closed

Linking question similar to GitHub issues #817

surapuramakhil opened this issue Mar 3, 2024 · 8 comments
Assignees
Labels
feature New feature request
Milestone

Comments

@surapuramakhil
Copy link
Contributor

surapuramakhil commented Mar 3, 2024

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 surapuramakhil added the feature New feature request label Mar 3, 2024
@bangzzzz
Copy link

bangzzzz commented Aug 7, 2024

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

@sosyz
Copy link
Member

sosyz commented Aug 19, 2024

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.

@shuashuai
Copy link
Member

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

@bangzzzz @sosyz

@sosyz
Copy link
Member

sosyz commented Aug 21, 2024

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 sosyz removed their assignment Aug 27, 2024
@fenbox
Copy link
Member

fenbox commented Sep 9, 2024

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:

@sosyz
Copy link
Member

sosyz commented Sep 9, 2024

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

@fenbox
Copy link
Member

fenbox commented Sep 9, 2024

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.

@sosyz
Copy link
Member

sosyz commented Sep 9, 2024

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

@LinkinStars LinkinStars moved this from Todo to Review in Answer Roadmap Sep 29, 2024
@fenbox fenbox added this to the v1.4.1 milestone Oct 12, 2024
@fenbox fenbox closed this as completed Oct 21, 2024
@github-project-automation github-project-automation bot moved this from Review to Done in Answer Roadmap Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
Archived in project
Development

No branches or pull requests

5 participants