-
-
Notifications
You must be signed in to change notification settings - Fork 202
Implement ID-Based Rename Handling for DevIndex #9137
Copy link
Copy link
Closed
Labels
Description
Currently, when a user changes their GitHub username, the DevIndex Updater fails with a 404 (Not Found) because it queries by the old login. This results in the user being moved to the Penalty Box and eventually deleted, while the new username might be rediscovered as a fresh user, losing history continuity.
The Solution: ID-Based Rename Recovery
- Trigger: When
fetchUserData(login)returns a 404/Not Found. - Lookup: Retrieve the immutable
github_id(fieldi) from our localusers.jsonlrecord for that login. - Recovery: Query the GitHub API using the ID (
node(id: "...")oruser(id: ...)) to find the current login. - Resolution:
- If Found (New Login):
- Update
tracker.json: Remove old key, add new key (preserve timestamp or reset). - Update
users.jsonl: Updatel(login) andn(name) fields. - Log the rename event.
- Update
- If Not Found: Confirm it is a deletion/suspension. Move to Penalty Box (as per existing logic).
- If Found (New Login):
This ensures we track the human, not just the handle.
Reactions are currently unavailable