fix: align refractor status command with API response schema #122
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#122
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/refractor-status-field-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
/refractor statuscommand was returning "No refractor data found" because the cog used field names that didn't match the actual API response fromGET /api/v2/refractor/cards.data.get("cards")→data.get("items")— API returnsitemskeyformula_value→current_value— correct API field namecard_type→track.card_type— nested insidetrackobjectlimit=500param so the API returns all cards (was defaulting to 10)Also fixes the
apply_close_filterfunction which read the same wrong field name.Test plan
/refractor statusshows cards with correct values and progress bars/refractor status card_type:batterfilters correctly/refractor status progress:closeuses correct value for threshold comparison- data.get("cards") → data.get("items") to match list endpoint response - formula_value → current_value (API field name) - card_type from top-level → track.card_type (nested in track object) - Add limit=500 param so API returns all cards instead of default 10 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>Approved via pd-pr