bracket icon indicating copy to clipboard operation
bracket copied to clipboard

Discrepancies between API interface StageItemWithRounds and frontend's StageItemWithRounds

Open robigan opened this issue 1 year ago • 2 comments

The frontend defines StageItemWithRounds as https://github.com/evroon/bracket/blob/48ba51a3e72be7868d2b327d2393c6fb4812b7cd/frontend/src/interfaces/stage_item.tsx#L4-L15 but the API defines it as image

Note the discrepancies in fields ournament_id/stage_id and the additional field is_active. Is this correct? As I see that in https://github.com/evroon/bracket/blob/48ba51a3e72be7868d2b327d2393c6fb4812b7cd/frontend/src/pages/tournaments/%5Bid%5D/swiss/%5Bstage_item_id%5D.tsx#L80 stage_id is utilized, but TypeScript complains that this property doesn't exist on the interface defined. So I'm opening this issue to confirm you meant stage_id and not tournament_id.

robigan avatar Jul 14 '24 08:07 robigan

this bug would be addressed in #530

robigan avatar Jul 16 '24 09:07 robigan

This issue is stale because it has been open for 60 days with no activity. What is the action to take here?

github-actions[bot] avatar Sep 15 '24 08:09 github-actions[bot]

Thanks! I have fixed it now

evroon avatar Nov 07 '24 14:11 evroon