fix(variant): strip pre-release qualifier from pinned label (#612)#613
Conversation
There was a problem hiding this comment.
rainxchzed has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (15)
WalkthroughThis PR fixes incorrect variant text display on repository details screens. It updates ChangesVariant Label Refresh and Pre-release Cleanup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Closes #612. Pinned-variant chip on Details showed stale
beta.NN-arm64-v8afrom older release.Root cause:
AssetVariant.extract()anchors on first dotted-digit segment. Forlegado-3.26.11-beta.24-arm64-v8a.apkit returnsbeta.24-arm64-v8a.beta.24is a qualifier counter, not variant identity — drifts tobeta.29next release but stored label persists.Fix:
AssetVariant.extract()strips leading pre-release qualifier prefixes after the version split (beta.NN,rc.NN,alpha.NN,dev.NN,nightly.NN,m12, etc.). Token-set + glob matchers untouched — they already handled it correctly.Header.ktre-derives display label from currently matchedprimaryAsset.nameviaextract(), so existing pinned rows refresh without DB migration.Test plan
arm64-v8a(no qualifier counter).Summary by CodeRabbit