Skip to content

feat(peers): prioritize mutual connections in PYMK algorithm - #360

Merged
trtajim merged 4 commits into
mainfrom
feat/improved-pymk-algorithm
Sep 22, 2026
Merged

trtajim merged 4 commits into
mainfrom
feat/improved-pymk-algorithm

Conversation

@trtajim

@trtajim trtajim commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Description

  • Updates the 'You May Know' (relevant discovery) peer algorithm in PeerController to prioritize mutual connections (friends of friends).
  • Uses institution/location matching and recent registrations as fallbacks when no mutual connections exist.
  • Adds feature test in PeerTest.php to verify mutual connections ranking.

Summary by CodeRabbit

  • New Features
    • “You May Know” recommendations now prioritize people with more mutual connections when using the default Relevant sorting.
    • Existing matching factors, including institution and location relevance, continue to influence the remaining results.
    • This ranking improvement applies to signed-in users, while guest recommendations continue using the existing relevance criteria.

@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: hscstack/platform/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 3bb06f70-e933-409d-9ddb-2eaec8921297

📥 Commits

Reviewing files that changed from the base of the PR and between 2eeecf5 and 14122e2.

📒 Files selected for processing (2)
  • app/Http/Controllers/PeerController.php
  • tests/Feature/PeerTest.php
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@trtajim
trtajim merged commit 34b6e4b into main Sep 22, 2026
5 checks passed
@trtajim
trtajim deleted the feat/improved-pymk-algorithm branch September 22, 2026 16:28
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