Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Mar 22, 2022

Handle deleted github users gracefully when retrieving ACKs by replacing their name with [deleted] in the sanitization function.
Tested with bitcoin/bitcoin#15423.

Handle deleted github users gracefully when retrieving ACKs by replacing their name with `[deleted]` in the sanitization function.
Tested with bitcoin/bitcoin#15423.
@maflcko
Copy link
Contributor

maflcko commented Mar 22, 2022

cr ACK 8b7b630

@fanquake fanquake merged commit 7647ace into main Mar 22, 2022
@fanquake fanquake deleted the 2022-03-handle-deleted-users branch March 22, 2022 11:05
Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK 8b7b630, I have reviewed the code and it looks OK, I agree it can be merged.

Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

posthumous review ACK 8b7b630

essential change is adding these three lines, and usual rec['user'] value for the login is of format "login": "octocat" so this appears correct

+    if rec['user'] is None: # User deleted account
+        rec['user'] = {'login': '[deleted]'}
+    else:

@katesalazar

This comment was marked as off-topic.

hacker-smith-ts570pol added a commit to hacker-smith-ts570pol/bitcoin-maintainer-tools that referenced this pull request Sep 27, 2025
… deleted users gracefully

8b7b630ea902482ac0cd081abdb1af24f03712cd github-merge: Handle deleted users gracefully (laanwj)

Pull request description:

  Handle deleted github users gracefully when retrieving ACKs by replacing their name with `[deleted]` in the sanitization function.
  Tested with bitcoin/bitcoin#15423.

ACKs for top commit:
  MarcoFalke:
    cr ACK 8b7b630ea902482ac0cd081abdb1af24f03712cd

Tree-SHA512: 21aa715e4d3196bcde6a8523892afd415c8aae4a440e9ea413a5459ce8c0c978747289a3300e4ff28647cb6af8aded59fd749a06d48b5c2b09896e3eee48d6c1
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.

7 participants