Betarena / scores

We are building the first open-source live results and statistics platform with community involvement features for data insertion. The project includes a blockchain component that will allow participants to receive rewards based on their participation and also to stake the future Token of the platform.
GNU General Public License v3.0
18 stars 6 forks source link

Champions League and all tournaments missing the new season #1435

Closed jonsnowpt closed 1 year ago

jonsnowpt commented 1 year ago

It seems that none of the tournaments have the new season included.

https://scores.betarena.com/football/europe/champions-league

migbash commented 1 year ago

NOTES

Correct number of seasons (total): 10,944 - Sportmonks (total) = 10,944


Fixture-Odds [widget]

Cache appears to be lagging behind. However, using direct fallback Hasura data shows correct data.

Premier League

League Id: 8 NEW Season Id: 21646

📌 Reason for CACHE inconsistency No fixtures played yet [?]

***********************************
✅ - Direct Hasura (Fallback) Data
***********************************
{
  "league_id": 8,
  "seasons": [
    {
   ✅ "season_id": 21646,
      "fixtures": [ __380_items__ ],
      "weeks": [ __34_items__ ],
      "rounds": [ __38_items__ ]
     }
   ]
}

***********************************
❌ - Cache
***********************************
{
  "league_id": 8,
  "seasons": [
    {
   ❌ "season_id": 19734,
      "fixtures": [ __380_items__ ],
 ❗️❓  "weeks": [ __0_items__ ],
      "rounds": [ __38_items__ ]
     }
   ]
}

Champions League

League Id: 2 NEW Season Id: 21638

📌 Reason for CACHE inconsistency New Season Fixtures have already played, and cache correctly injected new data. However, the surgical data was injected into the existing cache, as a NEW Season object. This is incorrect, as cache should only hold 1 season object - the current-season data.

🟩 SOLUTION Check for data in cache as being outdated, and re-generate data for the entire NEW season.

***********************************
✅ - Direct Hasura (Fallback) Data
***********************************
{
  "league_id": 2,
  "seasons": [
    {
  ✅ "season_id": 21638,
      "fixtures": [ __57_items__ ],
      "weeks": [ __5_items__ ],
      "rounds": [ __4_items__ ]
     }
   ]
}

***********************************
🟠 - Cache
***********************************
{
  "league_id": 2,
  "seasons": [
    {
   ❌ "season_id": 19699,
      "fixtures": [ __214_items__ ],
  ❗️❓ "weeks": [ __0_items__ ],
  ❗️❓ "rounds": [ __0_items__ ]
     },
     {
   ✅ "season_id": 21638,
      "fixtures": [ __3_items__ ],
      "weeks": [ __1_items__ ],
      "rounds": [ __1_items__ ]
     }
   ]
}

Standings [widget]

Cache appears to be lagging behind. However, using direct fallback Hasura data shows correct data.

Premier League

League Id: 8 NEW Season Id: 21646

📌 Reason for data inconsistency Invalid standings (current) + standings (historic) data on Hasura. The now past (current) season 22/23 is using the historic standings, and now (official) current season 23/24, is using the past (current) season 22/23 data. FIX => ?

***********************************
🟠 - Direct Hasura (Fallback) Data
***********************************
{
  "league_id": 8,
  "seasons": [
    ... __16_other_items__ ,
   {
 ✅ "season_id": 19734,
    "standings": 
    [ 
       {
          "stage_name": "Regular Season",
          "group_based": false,
          ❌ "total": 
          [
             {
                "team_logo": "https://cdn.sportmonks.com/images/soccer/teams/19/19.png",
                "team_name": "Arsenal",
                "color_code": "#8DD890",
                "points": 54,
                "position": 1,
                "games_played": 23,
                "won": 17,
                ...
              },
              ... __19_other_items__ ,
          ],
          ❌ "home": [...],
          ❌ "away": [...],
       }
    ],
   },
    {
   ✅ "season_id": 21646,
      "standings": 
      [ 
         {
            "stage_name": "Regular Season",
            "group_based": false,
            ❌ "total": 
            [
               {
                  "team_logo": "https://cdn.sportmonks.com/images/soccer/teams/9/9.png",
                  "team_name": "Manchester City",
                  "color_code": "#8DD890",
                  "points": 89,
                  "position": 1,
                  "games_played": 38,
                  "won": 28,
                  ...
                },
                ... __19_other_items__ ,
            ],
            ❌ "home": [...],
            ❌ "away": [...],
         }
      ],
     }
   ]
}

***********************************
❌ - Cache
***********************************
(same issue as Fallback)

Champions League

League Id: 2 NEW Season Id: 21638

📌 Reason for CACHE inconsistency Same reason as for Premier League (previous)


Top-Players [widget] // TODO:


jonsnowpt commented 1 year ago

@migbash

https://betarena-scores-platform.herokuapp.com/football/indonesia/liga-1

Missing data also on current season top players and data about the season:

Image

jonsnowpt commented 1 year ago

@migbash

Also, live are not shown on the fixtures:

Image

This was features that worked in the past.

migbash commented 1 year ago

NOTES

This -> https://github.com/Betarena/scores/issues/1435#issuecomment-1625654280, has been updated, fixed and deployed to DEV. Requires PROD PR.


This -> https://github.com/Betarena/scores/issues/1435#issuecomment-1625345162 (the indonesian league) has been updated.

jonsnowpt commented 1 year ago

@migbash

Considering that the season is yet to start, there should not be stats available.

Image

===

The provider does not have available for example the number of teams playing in the tournament?

https://betarena-scores-platform.herokuapp.com/football/england/premier-league

Image

jonsnowpt commented 1 year ago

@migbash

Also top players is missing from almost every tournament:

https://betarena-scores-platform.herokuapp.com/football/republic-of-ireland/premier-division

https://betarena-scores-platform.herokuapp.com/football/estonia/meistriliiga

https://betarena-scores-platform.herokuapp.com/football/iceland/pepsideild

https://betarena-scores-platform.herokuapp.com/football/norway/eliteserien

https://betarena-scores-platform.herokuapp.com/football/argentina/superliga

https://betarena-scores-platform.herokuapp.com/football/brazil/serie-b

jonsnowpt commented 1 year ago

@migbash

Ignore this one. Suppose its missing data.

jonsnowpt commented 1 year ago

@migbash

Standings are not updating at this time. Is it because of the data updating that's happening?

Example:

https://scores.betarena.com/football/brazil/serie-b

Botafogo should have 16 played games, not 15.

This is happening on all tournament standings.