Skip to content

expand who can rename threads, with public log#1873

Merged
ArtOfCode- merged 8 commits intodevelopfrom
cellio/714-rename-thread
Oct 13, 2025
Merged

expand who can rename threads, with public log#1873
ArtOfCode- merged 8 commits intodevelopfrom
cellio/714-rename-thread

Conversation

@cellio
Copy link
Member

@cellio cellio commented Oct 10, 2025

Currently, only curators can rename comment threads. We've had many requests over the years from authors who didn't like the auto-generated title or wanted to fix a typo, but renames were also silent, so we wanted to restrict this to mitigate against abuse. (After all, a silently-renamed thread puts that name in the mouth of the person who created that thread.)

This change adds attribution for renamed threads, like this:

comments showing who renamed from what to what

The comment is owned by System, not the renamer, so that regular users can't delete the comments. These comments are created directly and do not ping followers (just as we do not notify followers for other state changes like lock and archive).

Non-curator users can only rename threads they've participated in, like this:

two threads, one showing the rename control and one not

Fixes #714.

@cellio cellio requested a review from Oaphi October 10, 2025 21:07
@codecov
Copy link

codecov bot commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.07%. Comparing base (c6816f9) to head (31f711b).
⚠️ Report is 9 commits behind head on develop.

Additional details and impacted files
Components Coverage Δ
controllers 73.19% <100.00%> (+0.05%) ⬆️
helpers 84.16% <ø> (-0.51%) ⬇️
jobs 60.86% <ø> (ø)
models 89.26% <100.00%> (+0.01%) ⬆️
tasks 61.11% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Oaphi
Oaphi previously requested changes Oct 12, 2025
Copy link
Member

@Oaphi Oaphi left a comment

Choose a reason for hiding this comment

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

I believe the latest set of commits is currently missing (we've definitely discussed schema changes and not hardcoding the renamer user's username in the comment's message) - I don't recall if those commits were supposed to be added later, RC'ing just so as we don't merge without them by accident.

@cellio
Copy link
Member Author

cellio commented Oct 13, 2025

I believe the latest set of commits is currently missing (we've definitely discussed schema changes and not hardcoding the renamer user's username in the comment's message) - I don't recall if those commits were supposed to be added later, RC'ing just so as we don't merge without them by accident.

I've fixed the literal name in favor of a link as we mentioned. If the renaming user is deleted, this shows "deleted user" as expected, without leaking the original name.

Arguably the schema changes could be done separately; we already had renaming and already failed to record the user and time.

@cellio cellio requested a review from Oaphi October 13, 2025 03:55
@Oaphi Oaphi dismissed their stale review October 13, 2025 04:00

Outdated

Copy link
Member

@Oaphi Oaphi left a comment

Choose a reason for hiding this comment

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

LGTM

@Oaphi Oaphi requested a review from ArtOfCode- October 13, 2025 04:25
@ArtOfCode- ArtOfCode- merged commit e35b237 into develop Oct 13, 2025
13 checks passed
@ArtOfCode- ArtOfCode- deleted the cellio/714-rename-thread branch October 13, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow thread titles to be edited (with public record)

3 participants