enso/tools/legal-review/engine
Dmitry Bushev df4491de50
Batch insert suggestions (#6189)
close #6080

Changelog
- add: implement `SuggestionsRepo.insertAll` as a batch SQL insert
- update: `search/getSuggestionsDatabase` returns empty suggestions. Currently, the method is only used at startup and returns the empty response anyway because the libs are not loaded at that point.
- update: serialize only global (defined in the module scope) suggestions during the distribution building. There's no sense in storing the local library suggestions.
- update: sqlite dependency
- remove: unused methods from `SuggestionsRepo`
- remove: Arguments table

# Important Notes
Speeds up libraries loading by ~1 second.

![2023-04-03-173423_2086x324_scrot](https://user-images.githubusercontent.com/357683/229597470-19dcc010-2a34-43e1-87be-60af99afd275.png)
![2023-04-03-173514_2083x321_scrot](https://user-images.githubusercontent.com/357683/229597476-bf5b3c33-6321-4ac9-a0ca-2fb57d257857.png)
2023-04-06 07:47:23 +00:00
..
com.beachape.enumeratum_2.13-1.7.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
com.beachape.enumeratum-circe_2.13-1.7.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
com.beachape.enumeratum-macros_2.13-1.6.1 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
com.chuusai.shapeless_2.13-2.3.9 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.chuusai.shapeless_2.13-2.4.0-M1 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
com.fasterxml.jackson.core.jackson-annotations-2.13.3 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.fasterxml.jackson.core.jackson-core-2.13.3 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.fasterxml.jackson.core.jackson-databind-2.13.3 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.fasterxml.jackson.dataformat.jackson-dataformat-cbor-2.13.3 New documentation parser (#5917) 2023-03-15 15:43:51 +00:00
com.fasterxml.jackson.module.jackson-module-scala_2.13-2.13.3 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.github.julien-truffaut.monocle-core_2.13-2.1.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
com.github.julien-truffaut.monocle-macro_2.13-2.1.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
com.google.errorprone.error_prone_annotations-2.11.0 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.google.flatbuffers.flatbuffers-java-1.12.0 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
com.google.guava.failureaccess-1.0.1 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
com.google.guava.guava-31.1-jre Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.google.guava.listenablefuture-9999.0-empty-to-avoid-conflict-with-guava Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
com.google.j2objc.j2objc-annotations-1.3 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
com.googlecode.javaewah.JavaEWAH-1.1.13 Project save backed by git (#3851) 2022-11-14 17:32:39 +00:00
com.ibm.icu.icu4j-71.1 Support pattern matching on constants (#3641) 2022-08-12 13:18:58 +00:00
com.lihaoyi.fansi_2.13-0.3.1 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.lihaoyi.pprint_2.13-0.7.3 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.lihaoyi.sourcecode_2.13-0.2.8 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.monovore.decline_2.13-2.3.0 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.thoughtworks.paranamer.paranamer-2.8 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
com.typesafe.akka.akka-actor_2.13-2.6.19 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-actor-typed_2.13-2.6.19 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-http_2.13-10.2.9 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-http-core_2.13-10.2.9 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-http-spray-json_2.13-10.2.9 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-parsing_2.13-10.2.9 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-protobuf-v3_2.13-2.6.19 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-slf4j_2.13-2.6.19 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.akka.akka-stream_2.13-2.6.19 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.config-1.4.2 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.scala-logging.scala-logging_2.13-3.9.4 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
com.typesafe.slick.slick_2.13-3.4.1 Batch insert suggestions (#6189) 2023-04-06 07:47:23 +00:00
com.typesafe.ssl-config-core_2.13-0.4.3 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
commons-cli.commons-cli-1.5.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
commons-io.commons-io-2.11.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
dev.zio.izumi-reflect_2.13-2.2.5 Update ZIO library (#6072) 2023-03-28 07:58:59 +00:00
dev.zio.izumi-reflect-thirdparty-boopickle-shaded_2.13-2.2.5 Update ZIO library (#6072) 2023-03-28 07:58:59 +00:00
dev.zio.zio_2.13-2.0.10 Update ZIO library (#6072) 2023-03-28 07:58:59 +00:00
dev.zio.zio-internal-macros_2.13-2.0.10 Update ZIO library (#6072) 2023-03-28 07:58:59 +00:00
dev.zio.zio-stacktracer_2.13-2.0.10 Update ZIO library (#6072) 2023-03-28 07:58:59 +00:00
io.circe.circe-core_2.13-0.14.2 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
io.circe.circe-generic_2.13-0.14.2 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
io.circe.circe-generic-extras_2.13-0.14.2 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
io.circe.circe-jawn_2.13-0.14.2 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
io.circe.circe-literal_2.13-0.14.2 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
io.circe.circe-numbers_2.13-0.14.2 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
io.circe.circe-parser_2.13-0.14.2 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
io.circe.circe-yaml_2.13-0.14.1 New documentation parser (#5917) 2023-03-15 15:43:51 +00:00
io.estatico.newtype_2.13-0.4.4 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
io.methvin.directory-watcher-0.9.10 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
io.spray.spray-json_2.13-1.3.6 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
net.java.dev.jna.jna-5.5.0 New documentation parser (#5917) 2023-03-15 15:43:51 +00:00
net.java.dev.jna.jna-5.9.0 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
nl.gn0s1s.bump_2.13-0.1.3 Fix warnings in the legal review (#1743) 2021-05-14 19:20:13 +01:00
org.apache.commons.commons-compress-1.21 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.apache.commons.commons-lang3-3.12.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.apache.tika.tika-core-2.4.1 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.bouncycastle.bcpkix-jdk15on-1.70 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.bouncycastle.bcprov-jdk15on-1.70 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.bouncycastle.bcutil-jdk15on-1.70 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.checkerframework.checker-qual-3.12.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.eclipse.jgit.org.eclipse.jgit-6.3.0.202209071007-r Project save backed by git (#3851) 2022-11-14 17:32:39 +00:00
org.jline.jline-3.21.0 Load the File_Format types via a ServiceLoader (#3813) 2022-10-24 09:55:18 +00:00
org.netbeans.api.org-netbeans-modules-sampler-RELEASE140 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.netbeans.api.org-openide-util-lookup-RELEASE140 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.reactivestreams.reactive-streams-1.0.3 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
org.reactivestreams.reactive-streams-1.0.4 Batch insert suggestions (#6189) 2023-04-06 07:47:23 +00:00
org.scala-lang.modules.scala-collection-compat_2.13-2.8.1 Batch insert suggestions (#6189) 2023-04-06 07:47:23 +00:00
org.scala-lang.modules.scala-java8-compat_2.13-1.0.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.scala-lang.modules.scala-parser-combinators_2.13-1.1.2 Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
org.scala-lang.scala-compiler-2.13.8 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.scala-lang.scala-library-2.13.8 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.scala-lang.scala-reflect-2.13.8 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.slf4j.slf4j-api-1.7.36 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.typelevel.alleycats-core_2.13-2.6.1 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.typelevel.cats-core_2.13-2.8.0 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.typelevel.cats-free_2.13-2.1.1 Fix warnings in the legal review (#1743) 2021-05-14 19:20:13 +01:00
org.typelevel.cats-kernel_2.13-2.8.0 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.typelevel.cats-macros_2.13-2.1.1 Fix warnings in the legal review (#1743) 2021-05-14 19:20:13 +01:00
org.typelevel.jawn-parser_2.13-1.3.2 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
org.typelevel.kittens_2.13-2.3.2 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.typelevel.simulacrum-scalafix-annotations_2.13-0.5.4 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.xerial.sqlite-jdbc-3.41.2.1 Batch insert suggestions (#6189) 2023-04-06 07:47:23 +00:00
org.yaml.snakeyaml-1.28 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
reviewed-licenses Batch insert suggestions (#6189) 2023-04-06 07:47:23 +00:00
report-state Batch insert suggestions (#6189) 2023-04-06 07:47:23 +00:00