Skip to content

Conversation

@HollywoodTonight
Copy link

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

@HollywoodTonight HollywoodTonight requested a review from a team November 4, 2025 11:28
HollywoodTonight and others added 5 commits November 14, 2025 15:14
- Add rank and traffic fields to AuditUrl schema (optional, nullable)
- Implement sortAuditUrls static method for sorting by multiple fields
- Add allBySiteIdSorted and allBySiteIdAndSourceSorted methods
- Update allBySiteIdAndAuditType to support sorting
- Add TypeScript definitions for new fields and methods
- Add 20 comprehensive unit tests for sorting functionality
- All tests passing (1147 total)
- Code coverage: 98.01% for audit-url module
- Add NODE_OPTIONS with --max-old-space-size=4096 to prevent heap out of memory errors
- Fixes FATAL ERROR: JavaScript heap out of memory in CI pipeline
Add platformType field to AuditUrl schema to categorize URLs as primary-site
or offsite platforms (Wikipedia, YouTube, social media, etc.).

Changes:
- Add platformType attribute with 11 supported platform types
- Add GSI for efficient querying by siteId and platformType
- Add collection methods: allBySiteIdAndPlatform(), allOffsiteUrls()
- Add model helper methods: isOffsitePlatform(), isPlatformType()
- Export PLATFORM_TYPES constant
- Update TypeScript definitions
- Add 33 comprehensive unit tests

Platform types supported:
primary-site, wikipedia, youtube-channel, reddit-community,
facebook-page, twitter-profile, linkedin-company, instagram-account,
tiktok-account, github-org, medium-publication

All methods support sorting and pagination.
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.

1 participant