battlecode / galaxy

MIT License
10 stars 3 forks source link

Upgrade to use Challonge API v2.1 #723

Open n8kim1 opened 6 months ago

n8kim1 commented 6 months ago

weird, good catches — thanks I did test already and all those worked, so don’t know if docs are incomplete or just extra compatible or maybe i missed smth.

i can try porting over those calls too, anyways, if it’s helpful

On Sat, Jan 20, 2024 at 4:08 PM Serena Li @.***> wrote:

@.**** commented on this pull request.

Have we tested bulk add teams endpoint? specifically the payload data.type being "Participant" instead of "Participants" like in the challonge docs image.png (view on web) https://github.com/battlecode/galaxy/assets/40174697/fde20934-9868-4d0b-8777-481d7f7831f7

https://api.challonge.com/v2/api_docs/single_swagger_doc#!/Participant/bulkCreateParticipant

Also start_tournament()'s payload.data.type being "TournamentState" and payload.data.attributes.state don't seem to exist in challonge's docs

Is this just their documentation being incomplete / have you tested these functions?

— Reply to this email directly, view it on GitHub https://github.com/battlecode/galaxy/pull/723#pullrequestreview-1834731186, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADK4FJAT44XIVGIQPSL3NDTYPQW5DAVCNFSM6AAAAABB3XGK6CVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZUG4ZTCMJYGY . You are receiving this because you authored the thread.Message ID: @.***>

n8kim1 commented 6 months ago

also seems better to be up to date with whatever docs declare anyways

On Sat, Jan 20, 2024 at 4:24 PM Nathan Kim @.***> wrote:

weird, good catches — thanks I did test already and all those worked, so don’t know if docs are incomplete or just extra compatible or maybe i missed smth.

i can try porting over those calls too, anyways, if it’s helpful

On Sat, Jan 20, 2024 at 4:08 PM Serena Li @.***> wrote:

@.**** commented on this pull request.

Have we tested bulk add teams endpoint? specifically the payload data.type being "Participant" instead of "Participants" like in the challonge docs image.png (view on web) https://github.com/battlecode/galaxy/assets/40174697/fde20934-9868-4d0b-8777-481d7f7831f7

https://api.challonge.com/v2/api_docs/single_swagger_doc#!/Participant/bulkCreateParticipant

Also start_tournament()'s payload.data.type being "TournamentState" and payload.data.attributes.state don't seem to exist in challonge's docs

Is this just their documentation being incomplete / have you tested these functions?

— Reply to this email directly, view it on GitHub https://github.com/battlecode/galaxy/pull/723#pullrequestreview-1834731186, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADK4FJAT44XIVGIQPSL3NDTYPQW5DAVCNFSM6AAAAABB3XGK6CVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZUG4ZTCMJYGY . You are receiving this because you authored the thread.Message ID: @.***>

acrantel commented 6 months ago

lgtm then if all is tested

On Sat, Jan 20, 2024, 3:25 PM Nathaniel Kim @.***> wrote:

also seems better to be up to date with whatever docs declare anyways

On Sat, Jan 20, 2024 at 4:24 PM Nathan Kim @.***> wrote:

weird, good catches — thanks I did test already and all those worked, so don’t know if docs are incomplete or just extra compatible or maybe i missed smth.

i can try porting over those calls too, anyways, if it’s helpful

On Sat, Jan 20, 2024 at 4:08 PM Serena Li @.***> wrote:

@.**** commented on this pull request.

Have we tested bulk add teams endpoint? specifically the payload data.type being "Participant" instead of "Participants" like in the challonge docs image.png (view on web) < https://github.com/battlecode/galaxy/assets/40174697/fde20934-9868-4d0b-8777-481d7f7831f7>

https://api.challonge.com/v2/api_docs/single_swagger_doc#!/Participant/bulkCreateParticipant

Also start_tournament()'s payload.data.type being "TournamentState" and payload.data.attributes.state don't seem to exist in challonge's docs

Is this just their documentation being incomplete / have you tested these functions?

— Reply to this email directly, view it on GitHub < https://github.com/battlecode/galaxy/pull/723#pullrequestreview-1834731186>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/ADK4FJAT44XIVGIQPSL3NDTYPQW5DAVCNFSM6AAAAABB3XGK6CVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMZUG4ZTCMJYGY>

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/battlecode/galaxy/pull/723#issuecomment-1902268542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSQI2I3OYRSFPFVH6T6R3TYPQY5JAVCNFSM6AAAAABB3XGK6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGI3DQNJUGI . You are receiving this because your review was requested.Message ID: @.***>

n8kim1 commented 2 months ago

yes its summer and yes nathan is still working on this, sorry... I'm just cleaning up some easy and quick loose ends

https://github.com/battlecode/galaxy/pull/723#pullrequestreview-1834731186 Bulk add endpoint is fixed! Thanks for the catch, idk how it slipped testing Tournament state is in the docs (although kinda hard to spot) -- testing that and it works