Skip to content

[maimaidx] Update to CiRCLE#1417

Merged
zkldi merged 19 commits intozkldi:mainfrom
beerpsi-forks:feat/maimaidx/circle
Feb 6, 2026
Merged

[maimaidx] Update to CiRCLE#1417
zkldi merged 19 commits intozkldi:mainfrom
beerpsi-forks:feat/maimaidx/circle

Conversation

@beer-psi
Copy link
Contributor

Needs zkldi/rg-stats#19 merged for the rating changes.

@tachi-repo-bot
Copy link

A commit has changed the seeds. View the diff here.

@beer-psi beer-psi marked this pull request as draft January 21, 2026 16:21
@beer-psi
Copy link
Contributor Author

+bot diff

@zkldi
Copy link
Owner

zkldi commented Jan 26, 2026

Rg stats merged

@beer-psi
Copy link
Contributor Author

Nice. Should I wait for a npm release or do I just pin it to a Git revision?

@beer-psi
Copy link
Contributor Author

Nice. Should I wait for a npm release or do I just pin it to a Git revision?

oh right specifying a Git URL doesn't work anyways because the library's in a subfolder.

@zkldi
Copy link
Owner

zkldi commented Jan 27, 2026

Uh I should do an npm release for you, sorry mb.

This reverts commit 518ba0f.

I forgot that modifying imported score data is a brittle and multi-step
process. I think we're kinda just screwed here.
@beer-psi
Copy link
Contributor Author

Sorry but I have to bother you for a patch release on rg-stats: zkldi/rg-stats#20

There are also outright invalid scores on Tachi that would make rg-stats throw. For example, in the dataset, there's a 100.18% FAILED score, when the clear threshold is 80%. The "proper" solution is to fix those lamps, but that affects the score ID, and that requires a lengthy and horrible DB migration. Alternatively, we could do a hack and only provide the lamp on AP/AP+ (since only those lamps have rating bonuses) so that rg-stats doesn't throw:

scoreCalcs: {
    rate: (scoreData, chart) =>
        MaimaiDXRate.calculate(
            scoreData.percent,
            chart.levelNum,
            scoreData.lamp === "ALL PERFECT" || scoreData.lamp === "ALL PERFECT+"
                ? scoreData.lamp
                : undefined
        ),
},

@beer-psi
Copy link
Contributor Author

beer-psi commented Feb 6, 2026

Went for fixing the invalid scores (there were about ~1k of them in the dataset) and adding more validation rules to prevent this from happening again.

@beer-psi beer-psi marked this pull request as ready for review February 6, 2026 04:00
@beer-psi
Copy link
Contributor Author

beer-psi commented Feb 6, 2026

Should be ready for review now. Apologies for all the bother.

@zkldi
Copy link
Owner

zkldi commented Feb 6, 2026

I'm scared of merging migrations just yet. Will possibly do this after work. Postgres migration is 100% happening this march. Not putting it off any longer.

@zkldi zkldi merged commit 009a8bd into zkldi:main Feb 6, 2026
8 checks passed
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