Skip to content
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

Merged
merged 18 commits into from
Nov 16, 2017
Merged

Scala 2.12 Upgrade #18218

merged 18 commits into from
Nov 16, 2017

Conversation

QuarpT
Copy link
Contributor

@QuarpT QuarpT commented Nov 10, 2017

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

@QuarpT QuarpT changed the title Pcolley/scala 2.12 Scala 2.12 Upgrade Nov 10, 2017
@@ -3,15 +3,16 @@ package com.gu
import sbt._

object Dependencies {
val identityLibVersion = "3.83"
val identityLibVersion = "3.85-SNAPSHOT"
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link

PRBuilds commented Nov 10, 2017

PRbuilds results:

Screenshots
desktop.pngtablet.pngmobile.pngwide.png

💚 Exceptions
thrown-exceptions.js

💚 A11y validation
a11y-report.txt

Apache Benchmark Load Testing
loadtesting.txt

💚 Microdata Validation
microdata.txt

--automated message

Copy link
Contributor

@TBonnin TBonnin left a 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

@NataliaLKB
Copy link
Contributor

Great! Thanks so much for doing this @QuarpT !

@prout-bot
Copy link
Collaborator

Seen on PROD (merged by @QuarpT 19 minutes and 32 seconds ago)

@QuarpT QuarpT deleted the pcolley/scala-2.12 branch November 17, 2017 16:10
rtyley added a commit that referenced this pull request Jul 12, 2022
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`.
rtyley added a commit that referenced this pull request Jul 13, 2022
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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants