Skip to content

Handle deleted articles - #378

Open
pedrogaudencio wants to merge 5 commits into
masterfrom
handle-deleted-articles
Open

Handle deleted articles#378
pedrogaudencio wants to merge 5 commits into
masterfrom
handle-deleted-articles

Conversation

@pedrogaudencio

Copy link
Copy Markdown
Collaborator

When an article is deleted, we should follow a “tombstone UX”, particularly when the deleted article has forks:

  • removes the article’s content and disables the normal View mode
  • keeps a record that the article once existed (bubble view)
  • preserves the history and so that existing forks can still be compared (point-of-contention)
  • doesn't expose the deleted content
  • if the article has no forks, then it's deleted completely

Closes #62

AI Disclosure

Co-authored with: Opus 5

* articleCommitLink replaces the invalid /article/{owner}/{subject}/commit/{sha} path in both commit markup processors
* Repository.CommitLink uses ?version= for article URLs and keeps /commit/{sha} for permanent repository URLs (archived articles)
* adds TestArticleCommitLink integration coverage plus unit tests; updates affected renderhelper/markdown expectations
* UpdateIssuesCommit no longer concatenates /commit/{sha} onto the article vanity URL, which had no matching route
* adds TestUpdateIssuesCommitRefCommentLink covering article, special-character subject, and archived-article cases
* trade-off: only new ref comments are fixed; existing stored comment HTML would need a migration
* preserve git data and fork ancestry instead of hard-deleting when forks exist; block web, API, and git transport access.
* add tombstone placeholder page, table badge, delete-modal warning, and locale strings.
* skip the versioned article URL in CommitLink when the repository is archived, so commit references resolve to /{owner}/{repo}/commit/{sha}.
* guard placed before Link() so GetSubject is not invoked on the archived path.
@pedrogaudencio pedrogaudencio self-assigned this Sep 10, 2026
Copilot AI lite review requested due to automatic review settings September 10, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 10, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Come up with strategy for handling deleting articles

2 participants