Skip to content

Implement Match & Match Cycle Repos + Implement Match Cycle CRUD - #74

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

Implement Match & Match Cycle Repos + Implement Match Cycle CRUD#74
rootandroo wants to merge 6 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

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

@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

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.

Comment thread src/main/java/org/patinanetwork/patchats/api/match/db/repos/MatchSqlRepo.java Outdated
@rootandroo
rootandroo changed the base branch from main to graphite-base/74 August 17, 2026 17:30
@rootandroo
rootandroo force-pushed the api-match-repos branch 2 times, most recently from 7fe64eb to fd90b93 Compare August 24, 2026 17:05
@rootandroo
rootandroo changed the base branch from alter-match-schema to graphite-base/74 August 31, 2026 16:24
@graphite-app
graphite-app Bot changed the base branch from graphite-base/74 to main August 31, 2026 16:26
@rootandroo
rootandroo force-pushed the api-match-repos branch 2 times, most recently from 5eedf76 to 2a21363 Compare August 31, 2026 18:44
Comment on lines +26 to +29
.matchScore(
rs.getObject("match_score", Float.class) == null
? null
: rs.getObject("match_score", Float.class).doubleValue())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The code calls rs.getObject("match_score", Float.class) twice - once for the null check and once for the conversion. This is inefficient and could cause issues with certain JDBC drivers. Store the result in a variable first.

Float scoreFloat = rs.getObject("match_score", Float.class);
.matchScore(scoreFloat == null ? null : scoreFloat.doubleValue())

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Comment thread src/main/java/org/patinanetwork/patchats/api/match/MatchCycleService.java Outdated
Comment thread :w Outdated
- Row mappers: Instant→OffsetDateTime.toInstant() for timestamptz columns
- Row mapper: Float.class for REAL match_score (was Double.class, unsupported)
- setMatchScore: Integer→Double to match model type
- Remove @Builder.Default isDraft=true to prevent silent flip on update
@rootandroo
rootandroo force-pushed the api-match-repos branch 2 times, most recently from a696f35 to d2d7604 Compare September 11, 2026 20:11
@sonarqubecloud

Copy link
Copy Markdown

@rootandroo rootandroo changed the title Implement match and match cycle repos Implement Match & Match Cycle Repos Sep 11, 2026
@rootandroo rootandroo changed the title Implement Match & Match Cycle Repos Implement Match & Match Cycle Repos + Implement Match Cycle CRUD Sep 11, 2026
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