-
Notifications
You must be signed in to change notification settings - Fork 555
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
Cricket Players Unique Name #27464
Cricket Players Unique Name #27464
Conversation
b5a1aac
to
fed1bf9
Compare
We need to be able to distinguish between bowlers and catchers that have the same surname. This is a first step to be able to know their unique name. Co-authored-by: Roberto Tyley <[email protected]>
3c6d6f6
to
c2531e2
Compare
import org.scalatest.matchers.should.Matchers | ||
import test.{ConfiguredTestSuite, WithMaterializer, WithTestApplicationContext, WithTestExecutionContext, WithTestWsClient} | ||
|
||
@DoNotDiscover class CricketPaDeserialisationTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is WIP so I added @DoNotDiscover
to keep the build green. At the moment it's failing with error:
cricket.feed.CricketPaDeserialisationTest *** ABORTED ***
[info] java.lang.NullPointerException:
[info] at test.WithMaterializer.materializer(package.scala:121)
[info] at test.WithMaterializer.materializer$(package.scala:121)
[info] at cricket.feed.CricketPaDeserialisationTest.materializer$lzycompute(CricketPaDeserialisationTest.scala:11)
[info] at cricket.feed.CricketPaDeserialisationTest.materializer(CricketPaDeserialisationTest.scala:11)
[info] at test.WithTestWsClient.$anonfun$lazyWsClient$1(package.scala:127)
[info] at common.Lazy.get(Lazy.scala:16)
[info] at common.Lazy$.conversionLazy(Lazy.scala:7)
[info] at test.WithTestWsClient.wsClient(package.scala:128)
[info] at test.WithTestWsClient.wsClient$(package.scala:128)
[info] at cricket.feed.CricketPaDeserialisationTest.wsClient$lzycompute(CricketPaDeserialisationTest.scala:11)
We will probably want to change the test anyway and use test data instead of hitting the PA API.
Examples of xml sports test data in the codebase:
https://github.com/guardian/frontend/tree/main/admin/test/football/testdata
https://github.com/guardian/frontend/blob/main/sport/test/resources/rugby/feed/live-scores.xml
c2531e2
to
19c1bbf
Compare
We would like to be able to use the full name of a bowler or a catcher if two players in the same team share the same surname. We also want to leave the description as it is if there is no need for subsitution, e.g. when dismissal type is "Run Out" Co-authored-by: Roberto Tyley <[email protected]>
19c1bbf
to
c694556
Compare
"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days" |
This PR was closed because it has been stalled for 3 days with no activity. |
Closes #27442
We need to be able to distinguish between bowlers and catchers that have the same surname. This is a first step to be able to know their unique name.
What is the value of this and can you measure success?
What does this change?
Screenshots
Checklist