Skip to content

Conversation

@Aditya8369
Copy link
Contributor

All normalizer functions now follow consistent patterns:

  • Input: Standardized { username, data } format with validation
  • Output: Common fields (platform, username, rating, totalSolved, rank) + platform-specific fields
  • Structure: Class-based inheritance from BaseNormalizer for maintainability

The inconsistent parameter handling and return structures have been resolved, making the codebase more robust and easier to extend for new platforms.

Changed files

Created 1 file, modified 5 files

  • backend\scripts\testScrapers.js
  • backend\src\services\platform.service.js
  • backend\src\services\normalization\leetcode.normalizer.js
  • backend\src\services\normalization\codechef.normalizer.js
  • backend\src\services\normalization\codeforces.normalizer.js
  • backend\src\services\normalization\common.normaliser.js

fixes #254

@Aditya8369
Copy link
Contributor Author

@Yugenjr assign under ecwoc

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.

Inconsistent Normalizer Function Signatures

1 participant