Skip to content

Match Predictors Ranking

This document provides an overview of match predictors rankings.

Basic information

The ranking is created in the CMS and requires publication to be visible in the mobile application or on the client's website. A ranking can be created by specifying time constraints (date_from and date_to) or by selecting one of the tournament bracket phases. Available phases are: Round, Group, Stage, CompetitionSeason.

Logic

During the creation or update of a ranking, as well as when a match-ending incident occurs, a background job is triggered. This job checks ended matches and performs an upsert of match results for every user who made a prediction for any match included in the ranking scope. These results are then returned as a list.

Example of a single ranking result:

{
    "id": "1",
        "type": "match_predictor_user_result",
        "attributes": {
            "points": 5,
            "form": "1,0,0,1,1"
        },
        "relationships": {
            "user": {}
        }
}