Skip to content

Add support for removing users' names upon request - #58

Closed
jhpratt wants to merge 1 commit into
rust-lang:masterfrom
jhpratt:remove-user
Closed

Add support for removing users' names upon request#58
jhpratt wants to merge 1 commit into
rust-lang:masterfrom
jhpratt:remove-user

Conversation

@jhpratt

@jhpratt jhpratt commented Sep 9, 2023

Copy link
Copy Markdown
Member

cc rust-lang/team#1071

I did not do anything about this user having four instances, as that's completely up to the .mailmap, which is not included in this repository.

What this PR does is maintains a list of name-email pairs that have been requested to be removed. If it matches, "[removed]" is output instead of the person's name. Per the user's request, that seems to be sufficient. I'm not sure what else could be done, as the history does exist in git.

Note that this does not remove the entry altogether; it merely removes the name from being displayed.

@jonas-schievink

Copy link
Copy Markdown

It might be better to map them to a single invalid user via the .mailmap, like in rust-lang/rust#115702

@jhpratt

jhpratt commented Sep 9, 2023

Copy link
Copy Markdown
Member Author

I kept them separate so that if there are others in the future, they're not incorrectly merged into a single person. This maintains the positions and numbers more accurately.

I'll update this when I get a chance to factor in the mailmap update from you.

Comment thread src/removed.rs
use mailmap::Author;

lazy_static::lazy_static! {
static ref REMOVED: HashSet<mailmap::Author> = HashSet::from_iter([

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: probably add a comment linking to the teams repo PR so this can be found again when someone inevitably asks what this is for in a couple years

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oddly enough I intended to do this and totally forgot.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 11, 2023
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Sep 11, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 11, 2023
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Sep 11, 2023
Rollup merge of rust-lang#115702 - jonas-schievink:update-mailmap, r=oli-obk

Update mailmap

rust-lang/team#1071 / rust-lang/thanks#58
@jhpratt

jhpratt commented Sep 17, 2023

Copy link
Copy Markdown
Member Author

Given that updating the mailmap seems to handle this in an identical manner, I am closing this.

@jhpratt jhpratt closed this Sep 17, 2023
@jhpratt
jhpratt deleted the remove-user branch September 17, 2023 21:02
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.

3 participants