get5-web icon indicating copy to clipboard operation
get5-web copied to clipboard

[Feature Request] Scheduling Matches

Open xe1os opened this issue 6 years ago • 5 comments

Hi @PhlexPlexico,

Having a feature of auto starting a match by scheduling it on a certain date and time via web panel.

xe1os avatar Jun 04 '19 06:06 xe1os

That would require a bit of rework for what is currently implemented. Please use the provided template for the feature request by the way, it's easier for me to dissect what's needed :)

As for this request - I think this would be done long down the road, as I'd need to change out matches are setup/stored in the database (server ID cannot be null, for example). At that point, I'd want to rewrite the app from scratch if I had to go back and do that, haha. But I'll keep this here and backlog it so I can reference it later!

PhlexPlexico avatar Jun 04 '19 06:06 PhlexPlexico

This will require complete rework most probably on cronjobs with Docker system.

TandelK avatar Jun 06 '19 06:06 TandelK

I don't think you would need anything external, as that would add more reliance on what a user needs. I would prefer if it was contained within python itself. I probably won't be working on this, but I would imagine you could use an event scheduler somehow. I'm still working more towards tournament use and leagues where admins are currently present with this for now, not looking towards large scale leagues just yet.

PhlexPlexico avatar Jun 06 '19 14:06 PhlexPlexico

Looking through some forks since there's been an uptick of activity on these projects, it seems someone made a wait-timer for cancelling matches if no one joins them and updates the database. Seems like this could be doable by adding a schedule match if someone were to take up a task of doing scheduled matches: https://github.com/nishuo/get5-web/commit/3fa0f3aabee82b05108e335383cc418ac8c69612

PhlexPlexico avatar Apr 15 '20 13:04 PhlexPlexico

yeah i have tested that code before and it was working on splewis verison as i had worked with nishuo on his first deployment .

TandelK avatar Apr 15 '20 20:04 TandelK