Skip to content

Enhance football match lineups with complete substitution data #16469

Description

@marjisound

Currently, our lineups view only displays when a substitute enters the pitch, omitting which player was replaced. This limitation exists because our current Press Association (PA) LineUps endpoint doesn't include sub-out events. To fix this, we need to integrate PA's LineUpsEnhanced endpoint into our PA Scala client, handling the minor schema differences between the two models in frontend.

Once the client is updated, we will adjust the data model forwarded to DCAR to include the missing sub-out metadata. Finally, we'll update the lineups component UI to display substitution events for both incoming and outgoing players.

In the example below (World Cup match 4532543 between Iran and New Zealand), substitute Mehdi Ghayedi came on in the 46th minute for Aria Yousefi. However, our view currently only displays the substitution detail for Ghayedi, omitting the player who went off.

The intended design for displaying substitutes coming off is in the Figma file covering the redesign.

Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions