Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a TTL to the events #8

Closed
ahmadbky opened this issue Apr 22, 2024 · 0 comments
Closed

Add a TTL to the events #8

ahmadbky opened this issue Apr 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ahmadbky
Copy link
Member

We need to add a TTL (time-to-live) to the events of the new event system. This TTL can be null (or infinite) so the players can play an event forever ; but it remains useful especially for the Lol-Cup, because it marks an end to the event.

The behavior of this should be to provide a new boolean field for the event edition's information, like expired, that tells if this edition is still playable or not. If the edition has expired, it is not shown on the website's dropdown. However, the pages at /event/XX/YY should remain visitable. If the event has expired, the next update field should be null. When the time comes where events would be integrated in the TP, the event would still be displayed but as expired and thus not playable. Any post to routes related to this event would result to an error. However, everything related to this edition should remain stored. This means that the related MX mappack in Redis should remain persistent, and the next edition ID would follow it.

@ahmadbky ahmadbky self-assigned this Apr 22, 2024
@ahmadbky ahmadbky added the enhancement New feature or request label Apr 22, 2024
ahmadbky added a commit that referenced this issue Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant