Skip to content

Implement SQL Repos - #74

Open
rootandroo wants to merge 3 commits into
mainfrom
api-match-repos
Open

Implement SQL Repos#74
rootandroo wants to merge 3 commits into
mainfrom
api-match-repos

Conversation

@rootandroo

Copy link
Copy Markdown
Contributor

No description provided.

rootandroo commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

@rootandroo
rootandroo force-pushed the api-match-repos branch 3 times, most recently from 5470d2c to dbbd19b Compare August 10, 2026 17:31
@rootandroo
rootandroo marked this pull request as ready for review August 10, 2026 17:34
@rootandroo
rootandroo requested a review from a team August 10, 2026 17:34
@graphite-app

graphite-app Bot commented Aug 10, 2026

Copy link
Copy Markdown

Graphite Automations

"Request reviewers once CI passes" took an action on this PR • (08/10/26)

2 reviewers were added to this PR based on Henry Chen's automation.

@rootandroo
rootandroo requested a review from spiffyy99 August 10, 2026 18:54
@spiffyy99

Copy link
Copy Markdown

Code looks good, although I wonder if the match cycle repo could use some per-field update methods like match has.

Also, we planning on writing any tests for these? Not sure if there's another ticket for them

@rootandroo
rootandroo changed the base branch from main to graphite-base/74 August 14, 2026 19:30
@rootandroo
rootandroo changed the base branch from graphite-base/74 to remove-unmatched-ids August 14, 2026 19:30

Copy link
Copy Markdown
Contributor Author

Code looks good, although I wonder if the match cycle repo could use some per-field update methods like match has.

Also, we planning on writing any tests for these? Not sure if there's another ticket for them

​thanks for the feedback il include tests in the next PR. Will update this one with the per field methods

@rootandroo
rootandroo changed the base branch from remove-unmatched-ids to graphite-base/74 August 14, 2026 20:59
@graphite-app
graphite-app Bot changed the base branch from graphite-base/74 to main August 14, 2026 21:00
@sonarqubecloud

Copy link
Copy Markdown

arklian commented Aug 14, 2026

Copy link
Copy Markdown
Member

One other thing is that you're building out everything together layer by layer, which makes sense with how we planned it out and with AI implementing it, but it would be easier to build it out feature by feature once we get it to a little more stable state.

Like having the basics set, and then adding filtering and feedback later down, instead of including it from the start.

.id(rs.getInt("id"))
.period(rs.getString("period"))
.runAt(rs.getObject("run_at", Instant.class))
.totalMembers(rs.getInt("total_members"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Technically, we can calculate this by looking at the match table and then counting the rows right?

One issue with this is that if we have a new pending MatchCycle, then the count could be changing as we add more matches. So then we would have to update this sychronously with adding matches to the match table. Having the same information in two different places is a huge pain to keep synced.

Potentially we can fill these numbers in when we change a MatchCycle from pending to live, so that they're cached, so we don't have to compute them each time. If it's not like read only though, it would still require syncing tho. Like if we edit matches after it goes live.

We should also make a new column for the table that is like: isLive, which we flip when we go send the emails out.

.param("cycle_id", match.getMatchCycleId())
.param("match_score", match.getMatchScore())
.param("status", match.getStatus())
.param("feedback_a", match.getFeedbackA())

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd actually remove feedback from this table as well, and make a table for feedback specifically.

It'd be:
feedback_id
match_id
member_id
...feedback content

feedback content could be like 1-5 stars, text field for written things or whatever else we think of. But that leaves it to be a lot more flexible.

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.

3 participants