-
Notifications
You must be signed in to change notification settings - Fork 554
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
Scala 2.12 Upgrade #18218
Scala 2.12 Upgrade #18218
Conversation
project/Dependencies.scala
Outdated
@@ -3,15 +3,16 @@ package com.gu | |||
import sbt._ | |||
|
|||
object Dependencies { | |||
val identityLibVersion = "3.83" | |||
val identityLibVersion = "3.85-SNAPSHOT" |
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.
TODO: release identity lib and update this
@@ -1,42 +1,43 @@ | |||
package cricket.feed |
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.
I've rewritten the throttled task since Throttled actor is deprecated. I will cherry-pick this into 2.11 and release separately
PRbuilds results: Screenshots 💚 Exceptions 💚 A11y validation Apache Benchmark Load Testing 💚 Microdata Validation --automated message |
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.
LGTM let's test as much as possible on CODE
Thank you for doing this
Great! Thanks so much for doing this @QuarpT ! |
Seen on PROD (merged by @QuarpT 19 minutes and 32 seconds ago)
|
In the course of upgrading the Frontend codebase to Scala 2.13 (see #25190) we came across the `implicits.Collections` class, and had trouble upgrading it: #25190 (comment) It turns out that we will be able to _delete_ this class with the Scala 2.13 upgrade, rather than have to update it, which is nice! To reduce the size of the Scala 2.13 upgrade PR, we're removing superfluous use of the `implicits.Collections` class in this pre-upgrade PR. `implicits.Collections` is currently used to add two additional methods to standard Scala collections: * `distinctBy()` - introduced November 2012 with #263. Perhaps surprisingly, Scala 2.13 has a new built-in method that is called the same thing and is called the same way! So the Frontend implementation can be deleted when the Scala 2.13 upgrade occurs. https://www.scala-lang.org/api/2.13.x/scala/collection/Seq.html#distinctBy[B](f:A=%3EB):C * `safeDropWhile()` - introduced January 2015 with #7706 to handle a problem with the Scala 2.11 compiler: scala/bug#7529 The issue is no longer present in Scala 2.12, so the method could have been removed when the upgrade to Scala 2.12 was performed in November 2017 with #18218 This pre-upgrade PR deletes the unnecessary `safeDropWhile()` method, and removes several unnecessary references to `implicits.Collections`.
In the course of upgrading the Frontend codebase to Scala 2.13 (see #25190) we came across the `implicits.Collections` class, and had trouble upgrading it: #25190 (comment) It turns out that we will be able to _delete_ this class with the Scala 2.13 upgrade, rather than have to update it, which is nice! To reduce the size of the Scala 2.13 upgrade PR, we're removing superfluous use of the `implicits.Collections` class in this pre-upgrade PR. `implicits.Collections` is currently used to add two additional methods to standard Scala collections: * `distinctBy()` - introduced November 2012 with #263. Perhaps surprisingly, Scala 2.13 has a new built-in method that is called the same thing and is called the same way! So the Frontend implementation can be deleted when the Scala 2.13 upgrade occurs. https://www.scala-lang.org/api/2.13.x/scala/collection/Seq.html#distinctBy[B](f:A=%3EB):C * `safeDropWhile()` - introduced January 2015 with #7706 to handle a problem with the Scala 2.11 compiler: scala/bug#7529 The issue is no longer present in Scala 2.12, so the method could have been removed when the upgrade to Scala 2.12 was performed in November 2017 with #18218 This pre-upgrade PR deletes the unnecessary `safeDropWhile()` method, and removes several unnecessary references to `implicits.Collections`.
TODO: still need to update identity dependencies - currently relies on local snapshots. Can still review in the meantime.
What does this change?
Scala version, 2.11 to 2.12
What is the value of this and can you measure success?
Continued support for libraries
Screenshots
Tested in CODE?
We will need to smoke test this thoroughly