Skip to content

Commit 9f2eb10

Browse files
Minor upgrades for backend dependencies, scala, sbt, run codespell (#7922)
* Minor upgrades for backend dependencies, run codespell * changelog * bump scala and sbt --------- Co-authored-by: MichaelBuessemeyer <[email protected]>
1 parent 93314fe commit 9f2eb10

File tree

10 files changed

+16
-20
lines changed

10 files changed

+16
-20
lines changed

.codespellrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[codespell]
22
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
3-
skip = *.svg,*.sublime-workspace,*.lock,.codespellrc,./util/target/,./binaryData,./node_modules,./pg,./project/target,./target,./webknossos-datastore/target,./webknossos-jni/target,./webknossos-tracingstore/target,./util/target,./coverage,./public-test,./tools/proxy/node_modules,./docs/publications.md
3+
skip = *.svg,*.sublime-workspace,*.lock,.codespellrc,./util/target/,./binaryData,./node_modules,./pg,./project/target,./target,./webknossos-datastore/target,./webknossos-jni/target,./webknossos-tracingstore/target,./util/target,./coverage,./public-test,./tools/proxy/node_modules,./docs/publications.md,./public/bundle
44
# some names and camelCased variables etc
55
ignore-regex = \b([a-z]+[A-Z][a-zA-Z]*|H Mattern|Manuel|Nat Commun)\b
66
ignore-words-list = lod,nd,ue

CHANGELOG.released.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
1515
- Added the ability to change the unit of the dataset voxel size to any supported unit of the [ome/ngff standard](https://github.com/ome/ngff/blob/39605eec64ceff481bb3a98f0adeaa330ab1ef26/latest/index.bs#L192). This allows users to upload and work with low-resolution datasets with a different base unit than nanometer. [#7783](https://github.com/scalableminds/webknossos/pull/7783)
1616

1717
### Added
18-
- Added that proofreading merge actions reuse custom names of segments. A merge action now combines the potenial existing custom names of both segments and a split-action copies the custom name to the split-off segment. [#7877](https://github.com/scalableminds/webknossos/pull/7877)
18+
- Added that proofreading merge actions reuse custom names of segments. A merge action now combines the potential existing custom names of both segments and a split-action copies the custom name to the split-off segment. [#7877](https://github.com/scalableminds/webknossos/pull/7877)
1919
- Added the option to set a default mapping for a dataset in the dataset view configuration. The default mapping is loaded when the dataset is opened and the user / url does not configure something else. [#7858](https://github.com/scalableminds/webknossos/pull/7858)
2020
- Uploading an annotation into a dataset that it was not created for now also works if the dataset is in a different organization. [#7816](https://github.com/scalableminds/webknossos/pull/7816)
2121
- When downloading + reuploading an annotation that is based on a segmentation layer with active mapping, that mapping is now still selected after the reupload. [#7822](https://github.com/scalableminds/webknossos/pull/7822)
@@ -36,7 +36,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
3636
- Fixed a bug that prevented saving new dataset settings. [#7903](https://github.com/scalableminds/webknossos/pull/7903)
3737
- Fixed that on large screens the login forms were not horizontally centered. [#7909](https://github.com/scalableminds/webknossos/pull/7909)
3838
- Fixed a bug where brushing on a fallback segmentation with active mapping and with segment index file would lead to failed saves. [#7833](https://github.com/scalableminds/webknossos/pull/7833)
39-
- Fixed a bug where the "Hide Meshes" / "Show Meshes" options of the context menu for segment groups were not available although at leas one mesh was set to visible / invisible. [#7890](https://github.com/scalableminds/webknossos/pull/7890)
39+
- Fixed a bug where the "Hide Meshes" / "Show Meshes" options of the context menu for segment groups were not available although at least one mesh was set to visible / invisible. [#7890](https://github.com/scalableminds/webknossos/pull/7890)
4040
- Fixed a bug where sometimes old mismatching javascript code would be served after upgrades. [#7854](https://github.com/scalableminds/webknossos/pull/7854)
4141
- Fixed a bug where dataset uploads of zipped tiff data via the UI would be rejected. [#7856](https://github.com/scalableminds/webknossos/pull/7856)
4242
- Fixed a bug with incorrect validation of layer names in the animation modal. [#7882](https://github.com/scalableminds/webknossos/pull/7882)

CHANGELOG.unreleased.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
1414
- Added the option to move a bounding box via dragging while pressing ctrl / meta. [#7892](https://github.com/scalableminds/webknossos/pull/7892)
1515
- Added route `/import?url=<url_to_datasource>` to automatically import and view remote datasets. [#7844](https://github.com/scalableminds/webknossos/pull/7844)
1616
- The context menu that is opened upon right-clicking a segment in the dataview port now contains the segment's name. [#7920](https://github.com/scalableminds/webknossos/pull/7920)
17+
- Upgraded backend dependencies for improved performance and stability. [#7922](https://github.com/scalableminds/webknossos/pull/7922)
1718

1819
### Changed
1920
- The warning about a mismatch between the scale of a pre-computed mesh and the dataset scale's factor now also considers all supported mags of the active segmentation layer. This reduces the false posive rate regarding this warning. [#7921](https://github.com/scalableminds/webknossos/pull/7921/)

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sbt._
22

33
ThisBuild / version := "wk"
4-
ThisBuild / scalaVersion := "2.13.11"
5-
ThisBuild / scapegoatVersion := "2.1.2"
4+
ThisBuild / scalaVersion := "2.13.14"
5+
ThisBuild / scapegoatVersion := "2.1.6"
66
val failOnWarning = if (sys.props.contains("failOnWarning")) Seq("-Xfatal-warnings") else Seq()
77
ThisBuild / scalacOptions ++= Seq(
88
"-release:11",

frontend/javascripts/navbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ function NotificationIcon({
483483
sendAnalyticsEvent("open_whats_new_view");
484484

485485
if (window.Olvy) {
486-
// Setting the target lazily, to finally let olvy load the whats new modal as it should be shown now.
486+
// Setting the target lazily, to finally let olvy load the “what’s new modal, as it should be shown now.
487487
window.Olvy.config.target = "#unused-olvy-target";
488488
window.Olvy.show();
489489
}

project/Dependencies.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import play.sbt.PlayImport.{filters, _}
22
import sbt._
33

44
object Dependencies {
5-
private val silhouetteVersion = "10.0.0"
5+
private val silhouetteVersion = "10.0.1"
66
private val brotliVersion = "1.16.0"
77
private val scalapbVersion = scalapb.compiler.Version.scalapbVersion
88
private val grpcVersion = scalapb.compiler.Version.grpcJavaVersion
99

1010
val utilDependencies: Seq[ModuleID] = Seq(
1111
// Play Web Framework. import play
12-
"org.playframework" %% "play" % "3.0.3",
12+
"org.playframework" %% "play" % "3.0.4",
1313
// Play’s JSON serialization. import play.api.libs.json
1414
"com.typesafe.play" %% "play-json" % "2.10.5",
1515
// Sending emails. import org.apache.commons.mail
@@ -96,7 +96,7 @@ object Dependencies {
9696
// Makes txw2 write self-closing tags in xml (which we want). Not imported.
9797
"org.codehaus.woodstox" % "wstx-asl" % "4.0.6",
9898
// Json Web Tokens (used for OIDC Auth). import pdi.jwt
99-
"com.github.jwt-scala" %% "jwt-play-json" % "10.0.0",
99+
"com.github.jwt-scala" %% "jwt-play-json" % "10.0.1",
100100
// SQL Queries. import slick
101101
"com.typesafe.slick" %% "slick" % "3.5.0",
102102
// SQL Queries connection pool. not imported.

project/build.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.9.6
1+
sbt.version=1.10.1

util/src/main/scala/com/scalableminds/util/cache/LRUConcurrentCache.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ trait LRUConcurrentCache[K, V] {
77

88
private val cache = new java.util.LinkedHashMap[K, V]() {
99
override def removeEldestEntry(eldest: java.util.Map.Entry[K, V]): Boolean =
10-
if (size > maxEntries) {
10+
if (this.size > maxEntries) {
1111
onElementRemoval(eldest.getKey, eldest.getValue)
1212
true
1313
} else {

util/src/main/scala/com/scalableminds/util/tools/Fox.scala

+4-6
Original file line numberDiff line numberDiff line change
@@ -351,20 +351,18 @@ class Fox[+A](val futureBox: Future[Box[A]])(implicit ec: ExecutionContext) {
351351
}).flatMap(identity)
352352

353353
/**
354-
*
355-
* Awaits the future and opens the box. Do not use this in production code (therefore marked as Deprecated)!
354+
* Awaits the future and opens the box.
356355
*/
357-
@Deprecated
356+
@deprecated(message = "Do not use this in production code", since = "forever")
358357
def get(justification: String, awaitTimeout: FiniteDuration = 10 seconds): A = {
359358
val box = await(justification, awaitTimeout)
360359
box.openOrThrowException(justification)
361360
}
362361

363362
/**
364-
*
365-
* Awaits the future and returns the box. Should not be used in production code (therefore marked as Deprecated).
363+
* Awaits the future and returns the box.
366364
*/
367-
@Deprecated
365+
@deprecated(message = "Do not use this in production code", since = "forever")
368366
def await(justification: String, awaitTimeout: FiniteDuration = 10 seconds): Box[A] =
369367
Await.result(futureBox, awaitTimeout)
370368

webknossos-datastore/app/com/scalableminds/webknossos/datastore/models/datasource/DataSource.scala

-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import com.scalableminds.webknossos.datastore.models.datasource.DatasetViewConfi
55
import com.scalableminds.webknossos.datastore.models.datasource.inbox.GenericInboxDataSource
66
import play.api.libs.json._
77

8-
import scala.annotation.nowarn
9-
108
package object datasource {
119

1210
// here team is not (yet) renamed to organization to avoid migrating all jsons
@@ -54,7 +52,6 @@ package object datasource {
5452
}
5553

5654
object GenericDataSource {
57-
@nowarn // Suppress unused warning. The passed Format[T] is expanded to more than what is really used. It can not be omitted, though.
5855
implicit def dataSourceFormat[T <: DataLayerLike](implicit fmt: Format[T]): Format[GenericDataSource[T]] =
5956
Json.format[GenericDataSource[T]]
6057

0 commit comments

Comments
 (0)