๐ฅ User Management
Combine duplicate player records and re-aggregate stats
๐ Admin Tool-
Total Records
-
Auth Users ๐
-
Linked (users coll)
-
Legacy Profiles
-
Migrated
-
โ ๏ธ Issues
โน๏ธ How to Combine Player Records (e.g., Joe/Joseph)
- Search for player name variants (e.g., "Joe Smith" and "Joseph Smith")
- Select the records to merge as Source (data moves FROM these)
- Select ONE record as the Target (data moves TO this)
- Preview shows actual
playerStatsandpitchingStatsdata - Execute merge moves all season/game docs and deletes source docs
- Run the Aggregator afterward to rebuild career totals!
โ ๏ธ This tool merges at the source level:
playerStats/{source}/seasons/*โplayerStats/{target}/seasons/*playerStats/{source}/games/*โplayerStats/{target}/games/*pitchingStatssubcollections are also moved- Source documents are deleted after copying
aggregatedPlayerStats/{source}is marked as migrated
๐ Find Player Records
๐ Direct playerStats Lookup (for records not in aggregatedPlayerStats)
โก Merge Preview
๐ฅ Source Records (will be merged)
โ
๐ค Target Record (receives all stats)
๐ Combined Career Stats Preview
๐
Seasons to Merge
| Season | Team | G | AB | H | R | AVG | Source |
|---|
๐ Operation Log
Ready. Search for players to begin...