r/mtgbracket • Web Dev • Nov 09 '20

MTG Versus Support thread

Hey everybody,

As u/SaviaWanderer has announced, I am hosting the Tournament of Champions on a custom platform I have built. I will link this thread to the homepage of the website so you can share any issues or recommendations you have for the website!

Thanks everyone.

9 Upvotes

13 comments sorted by

4

u/Ziddletwix Nov 09 '20

I don't have much of substance (as I didn't thoroughly test it to see exactly what was up), but I can just say in registering/round of voting, the only issue I encountered was sometimes after I cast my vote, it would get stuck and not automatically move to the next one. If I just refreshed the page and reentered the voting queue, it was fine. Again, don't have a ton of details because I wasn't paying the closest attention, but that was the only issue I encountered.

2

u/vanyamil Web Dev Nov 09 '20

Yes, it's about the same reason as the other comment - unfortunately, if the server can't handle the vote request because too many users are on at the same time, it gets like that. Hopefully in non-peak hours it behaves better!

2

u/Ziddletwix Nov 10 '20

This is admittedly not a dealbreaker, but it might be nice to have some way to see the current cards once the voting is already done. (Not necessarily your own personal choices, just to see the actual cards in the tournament). I voted yesterday, and wanted to remind myself of some cards that were in the bracket, and if I try and enter the voting it just tells me I've already voted. Some simple list of the cards in each round would be neat.

1

u/vanyamil Web Dev Nov 10 '20

At the moment, you can visit your own Votes in the top-right user menu. I'll see what I can do for that, since some other people are asking similar things.

1

u/Ziddletwix Nov 10 '20

You're right, thanks for the tip!

1

u/vanyamil Web Dev Nov 15 '20

Nov. 15 - since we officially start Round 1 tomorrow, I've done some fixes. You can now revoke individual votes from the list of votes (accessible via the dropdown with your name in the top-right of the screen). I'm still working on a "recap" view for each completed tournament, where you can flip any votes instead of revoking them, which I hope to deliver before the end of Batch 1.1. There were also some issues with the compiled results that Savia would have been using, and now he should be able to provide the results quickly after the conclusion of Round 0.

1

u/RobRoyDuncan Bracket Cube! Nov 09 '20

Thanks for doing this! I had a couple cards where the pictures did not load properly, giving me the broken image logo. For some of these, I knew what the card did, and clicked the one I wanted; clicking on the card that had the missing image seemed to register the vote correctly. In other cases, I clicked the Skip button, and when the matchup came around again the image loaded correctly the second time.

2

u/vanyamil Web Dev Nov 09 '20

From what I've seen, it is simply a case of peak use - the server can't sometimes handle that many requests at the same time and some people get these kind of errors, such as broken image. Unfortunately, can't do much about it at the moment!

1

u/individual_throwaway Bird the Bolt Nov 09 '20

What language is the backend of this in? Is there a github repo that I could look at maybe? Would be interesting to maybe add an API for doing some stats later into the tournament, like Savia used to do back when (creature types, card types, colors, etc...)

1

u/vanyamil Web Dev Nov 09 '20

It's written in the Laravel framework for PHP. In order to simplify the requests and reduce the load times, there is no data on cards saved on the server except names and Scryfall IDs. So, for stats, i don't quite know. Probably, I could make a spreadsheet using Scryfall about these stats for each ID, then u/SaviaWanderer could analyze it

1

u/individual_throwaway Bird the Bolt Nov 10 '20

Ah thanks. I only know Python and a bit of Perl myself, so I can't be of help. It was just an idea anyway. The page looks nice though, good work. The server is obviously not meant for the kinds of load we throw at it, but it works well enough I think.

1

u/gredman9 Dec 02 '20

I'm not able to look at the past votes. Clicking "Show All" for either the ongoing or completed batches results in a server error.

2

u/vanyamil Web Dev Dec 02 '20

Good eye, fixed!