BIOS-25037: Add iOS-specific ordering for "Data from app" fields#23
Conversation
📝 WalkthroughWalkthroughAdds package-internal logic in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 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 unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@submit.go`:
- Around line 131-165: Move "network_type" into the high-priority section of the
iosDataFromAppPreferredKeys slice so it appears near the top of reported fields
(e.g., place it immediately after "device" or within the first group of keys);
edit the iosDataFromAppPreferredKeys variable to reorder the entries accordingly
so "network_type" surfaces early in iOS reports.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
submit.go
🔇 Additional comments (3)
submit.go (3)
1045-1045: Nice: data keys now flow through the iOS‑aware ordering.This cleanly centralizes the ordering logic and keeps non‑iOS behavior deterministic.
1098-1125: Ordering logic is deterministic and stable.Good separation of preferred keys vs. tail sort.
1127-1130: No action needed. The function correctly identifies all iOS apps in the system. The actual app names in theappToTeamIDmap are"beeper-ios"and"beeper-a8c-ios", both of which end with"-ios". No variants like"-ios-beta"or"-ios-dev"exist in the codebase, so theHasSuffixcheck is appropriate for the actual requirements.Likely an incorrect or invalid review comment.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
|
Should we be doing this in rageshake? O rshould we just rename keys on the client so that they sort the way we want? Adding app specific things here feels odd |
@adamvy Unless I missed something, I did that in client but the order was not respected. We are calling a default |
|
I feel like it would be really nice to make this more generic, but I don't think this is necessarily the time we need to do that. |
Order iOS
Data from appfields in rageshake for easier triagebuildReportBodygathersdataKeysfromp.Data.orderDataFromAppKeys(p.AppName, dataKeys).appends with-ios): emit keys fromiosDataFromAppPreferredKeysfirst, then sort and append remaining keys.printDataKeysprints in that final order.