Open ioannakok opened 4 weeks ago
Here's where we've got to so far: https://github.com/guardian/frontend/pull/27464. There is a bug in this code and full name does not show as we would expect. Speak with @rtyley if you have any questions.
To test locally:
We're going to use this game for testing https://www.theguardian.com/sport/cricket/match/2024-09-06/england-cricket-team because Sri Lanka has two bowlers with the same surname, Fernando.
Override frontend configuration as per instructions.
You need to override pa.cricket.api.key=
locally. You can find the value in parameter store. Use the one for prod.
Run sport app
Hit localhost:9000. You need to do this first for the agents to kick off
WAIT. It takes some time for the data you need to be pulled from PA to the agents.
Search the logs locally. Once you see the following log message, you're ready to test:
Go to localhost:9000/sport/cricket/match/2024-09-06/england-cricket-team
If you want to download the real data from PA for this match in XML, you can do it using the cricket troubleshooter. The id of the match we're interested is 39145392-3f2e-8022-35f3-eac0b0654610
Please reply to this thread when fixed: https://groups.google.com/a/guardian.co.uk/g/dotcom.platform/c/47eLqEyj6LM
When there are two players with the same surname bowling for a team, ww want to be able to tell which one of them dismissed which batter on the wickets.
See example below with two Fernandos of the Sri Lanka team.
Game: https://www.theguardian.com/sport/cricket/match/2024-08-23/england-cricket-team
Useful tool to see what data we're receiving from PA API: https://frontend.gutools.co.uk/troubleshoot/cricket