Skip to content

Matching algo: Design doc and implementation of a random pairing algorithm. - #134

Open
Allimonae wants to merge 1 commit into
mock-matches-dbfrom
match-random
Open

Allimonae wants to merge 1 commit into
mock-matches-dbfrom
match-random

Conversation

@Allimonae

Copy link
Copy Markdown
Member

Summary

Summarize your change here. What problem does this solve or what feature does this add?

Testing

How did you test your change?

UI Changes

If your change includes a significant UI component, please attach a screenshot or video of the functionality below.

Allimonae commented Oct 9, 2026 •

Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment thread docs/matching-algo/design.md
MATCH_PREF("match-pref"),
INDUSTRY("industry");

private final String cliName;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does cliName mean?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh literally CLI. well this is probably not a great name, should be matchingAlgoName or something that better reflects its nature

}
}

List<Member> members = MatchingMockData.activeMembers();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we modify this so that we could actually use it on a real CSV? right now it's hardcoded to this

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in general this file needs cleanup to use it for a real pairing cycle, but it's a good start and i could definitely see us using this

System.out.println("MATCHING RUN");
System.out.println(" Layers " + String.join(" -> ", layerNames));
System.out.println(" Seed " + seed);
System.out.println(" Members " + memberCount + " active");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would also be nice to write to a CSV

@spiffyy99

Copy link
Copy Markdown
Contributor

In general, I think this is fine to merge, even though the CLI file is unpolished. You can keep working on it to make it usable for actual matches.

We also want to have some of the code you wrote in the CLI file usable when we actually do matches in the UI. Try to structure the code more so that both CLI and web flows can reuse it

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c955a20b-09c8-4c9d-9a26-fa0c816d3e1a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@sonarqubecloud

Copy link
Copy Markdown

@Allimonae
Allimonae marked this pull request as ready for review October 26, 2026 19:06
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.

2 participants