Apply formatting fixes

This commit is contained in:
eikek 2022-08-07 16:31:09 +02:00
parent 868285a26b
commit b51b782c73
71 changed files with 166 additions and 20 deletions
modules
addonlib/src/main/scala/docspell/addons/out
backend/src/main/scala/docspell/backend
common/src/main/scala/docspell/common
fts-psql/src/main/scala/docspell/ftspsql
joex/src/main/scala/docspell/joex
restserver/src/main/scala/docspell/restserver
scheduler
api/src/main/scala/docspell/scheduler
impl/src/main/scala/docspell/scheduler/impl
store/src

@ -9,10 +9,12 @@ package docspell.addons.out
import cats.effect.Sync
import cats.syntax.all._
import fs2.io.file.{Files, Path}
import docspell.addons.out.NewFile.Meta
import docspell.common.ProcessItemArgs.ProcessMeta
import docspell.common.{CollectiveId, Ident, Language}
import docspell.logging.Logger
import io.circe.Codec
import io.circe.generic.extras.Configuration
import io.circe.generic.extras.semiauto.deriveConfiguredCodec

@ -9,11 +9,12 @@ package docspell.backend
import cats.data.{NonEmptyList => Nel}
import cats.effect.Sync
import cats.syntax.all._
import docspell.backend.BackendCommands.EventContext
import docspell.backend.ops.OCustomFields.SetValue
import docspell.backend.ops._
import docspell.common.bc._
import docspell.common._
import docspell.common.bc._
private[backend] class BackendCommands[F[_]: Sync](
itemOps: OItem[F],

@ -8,6 +8,7 @@ package docspell.backend
import cats.effect._
import cats.implicits._
import docspell.backend.MailAddressCodec
import docspell.backend.task.DownloadZipArgs
import docspell.common._

@ -10,6 +10,7 @@ import cats.data.OptionT
import cats.effect.kernel.Sync
import cats.syntax.all._
import fs2.io.file.{Files, Path}
import docspell.addons._
import docspell.addons.out.{AddonOutput, ItemFile, NewItem}
import docspell.backend.JobFactory

@ -9,6 +9,7 @@ package docspell.backend.joex
import cats.data.{Kleisli, OptionT}
import cats.effect._
import cats.syntax.all._
import docspell.addons.Middleware
import docspell.backend.auth.AuthToken
import docspell.backend.joex.AddonOps.AddonRunConfigRef
@ -17,6 +18,7 @@ import docspell.logging.Logger
import docspell.store.Store
import docspell.store.queries.QLogin
import docspell.store.records.RNode
import scodec.bits.ByteVector
private[joex] class AddonPrepare[F[_]: Sync](store: Store[F]) extends LoggerExtension {

@ -1,3 +1,9 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package docspell.backend.joex
import docspell.common.AccountId

@ -9,6 +9,7 @@ package docspell.backend.ops
import cats.data.NonEmptyList
import cats.effect._
import cats.syntax.all._
import docspell.backend.ops.AddonRunConfigError._
import docspell.backend.ops.OAddons.{AddonRunConfigResult, AddonRunInsert}
import docspell.common.CollectiveId

@ -11,6 +11,7 @@ import cats.effect._
import cats.syntax.all._
import fs2.Stream
import fs2.io.file.Path
import docspell.addons.{AddonMeta, RunnerType}
import docspell.backend.Config
import docspell.backend.ops.AddonValidationError._

@ -10,6 +10,7 @@ import cats.data.{NonEmptyList => Nel, OptionT}
import cats.effect._
import cats.syntax.all._
import fs2.Stream
import docspell.backend.JobFactory
import docspell.common.MakePreviewArgs.StoreMode
import docspell.common._

@ -10,6 +10,7 @@ import cats.data.OptionT
import cats.effect.{Async, Resource}
import cats.implicits._
import fs2.Stream
import docspell.backend.JobFactory
import docspell.backend.PasswordCrypt
import docspell.backend.ops.OCollective._
@ -20,6 +21,7 @@ import docspell.store.UpdateResult
import docspell.store.queries.{QCollective, QUser}
import docspell.store.records._
import docspell.store.{AddResult, Store}
import com.github.eikek.calev._
trait OCollective[F[_]] {

@ -7,10 +7,12 @@
package docspell.backend.ops
import java.security.MessageDigest
import cats.data.OptionT
import cats.effect._
import cats.syntax.all._
import fs2.{Pipe, Stream}
import docspell.backend.JobFactory
import docspell.backend.ops.ODownloadAll.model._
import docspell.backend.ops.OJob.JobCancelResult
@ -24,6 +26,7 @@ import docspell.store.Store
import docspell.store.file.FileMetadata
import docspell.store.queries.{QItem, Query}
import docspell.store.records.{RDownloadQuery, RFileMeta, RJob}
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}
import scodec.bits.ByteVector

@ -9,6 +9,7 @@ package docspell.backend.ops
import cats.data.NonEmptyList
import cats.effect.{Async, Resource}
import cats.implicits._
import docspell.common._
import docspell.store.records.{REquipment, RItem}
import docspell.store.{AddResult, Store}

@ -7,8 +7,9 @@
package docspell.backend.ops
import cats.data.{NonEmptyList => Nel}
import cats.syntax.option._
import cats.effect._
import cats.syntax.option._
import docspell.common._
import docspell.store.queries.QFolder
import docspell.store.records.{RFolder, RUser}

@ -9,6 +9,7 @@ package docspell.backend.ops
import cats.data.{NonEmptyList => Nel, OptionT}
import cats.effect.{Async, Resource}
import cats.implicits._
import docspell.backend.AttachedEvent
import docspell.backend.JobFactory
import docspell.backend.fulltext.CreateIndex
@ -22,6 +23,7 @@ import docspell.scheduler.usertask.UserTaskScope
import docspell.store.queries.{QAttachment, QItem, QMoveAttachment}
import docspell.store.records._
import docspell.store.{AddResult, Store, UpdateResult}
import doobie.implicits._
trait OItem[F[_]] {

@ -9,6 +9,7 @@ package docspell.backend.ops
import cats.data.NonEmptyList
import cats.effect._
import cats.implicits._
import docspell.backend.ops.OItemLink.LinkResult
import docspell.backend.ops.search.OSearch
import docspell.common._

@ -9,6 +9,7 @@ package docspell.backend.ops
import cats.data.OptionT
import cats.effect._
import cats.implicits._
import docspell.backend.ops.OJob.{CollectiveQueueState, JobCancelResult}
import docspell.common._
import docspell.pubsub.api.PubSubT

@ -9,6 +9,7 @@ package docspell.backend.ops
import cats.data.OptionT
import cats.effect._
import cats.implicits._
import docspell.backend.ops.OTotp.{ConfirmResult, InitResult, OtpState}
import docspell.common._
import docspell.store.records.RTotp

@ -11,6 +11,7 @@ import cats.data.{EitherT, OptionT}
import cats.effect._
import cats.implicits._
import fs2.Stream
import docspell.backend.JobFactory
import docspell.common._
import docspell.scheduler.usertask.UserTaskScope

@ -9,10 +9,12 @@ package docspell.backend.signup
import cats.data.OptionT
import cats.effect.{Async, Resource}
import cats.implicits._
import docspell.backend.PasswordCrypt
import docspell.common._
import docspell.store.records.{RCollective, RInvitation, RUser}
import docspell.store.{AddResult, Store}
import doobie.free.connection.ConnectionIO
trait OSignup[F[_]] {

@ -8,6 +8,7 @@ package docspell.backend.task
import docspell.backend.ops.ODownloadAll.model.DownloadRequest
import docspell.common._
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}

@ -1,3 +1,9 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package docspell.common
/** A marker trait for task arguments.

@ -7,6 +7,7 @@
package docspell.ftspsql
import cats.syntax.all._
import docspell.common.{CollectiveId, Ident, Language}
import docspell.ftsclient.TextData

@ -9,6 +9,7 @@ package docspell.joex
import cats.effect._
import cats.implicits._
import fs2.concurrent.SignallingRef
import docspell.backend.MailAddressCodec
import docspell.backend.joex.FindJobOwnerAccount
import docspell.backend.ops._
@ -27,6 +28,7 @@ import docspell.scheduler.impl.{JobStoreModuleBuilder, SchedulerModuleBuilder}
import docspell.scheduler.usertask.{UserTaskScope, UserTaskStore}
import docspell.store.Store
import docspell.store.records.{REmptyTrashSetting, RJobLog}
import emil.javamail._
import org.http4s.client.Client

@ -8,6 +8,7 @@ package docspell.joex.fts
import cats.effect._
import cats.implicits._
import docspell.backend.fulltext.CreateIndex
import docspell.common._
import docspell.ftsclient._

@ -8,8 +8,10 @@ package docspell.joex.learn
import cats.data.NonEmptyList
import cats.implicits._
import docspell.common.CollectiveId
import docspell.store.records.{RClassifierModel, RClassifierSetting}
import doobie._
final class ClassifierName(val name: String) extends AnyVal

@ -11,6 +11,7 @@ import cats.data.OptionT
import cats.effect._
import cats.implicits._
import fs2.Stream
import docspell.backend.JobFactory
import docspell.common._
import docspell.common.util.Zip

@ -9,6 +9,7 @@ package docspell.joex.pagecount
import cats.effect._
import cats.implicits._
import fs2.{Chunk, Stream}
import docspell.backend.JobFactory
import docspell.common._
import docspell.scheduler._

@ -9,6 +9,7 @@ package docspell.joex.pdfconv
import cats.effect._
import cats.implicits._
import fs2.{Chunk, Stream}
import docspell.common._
import docspell.scheduler._
import docspell.scheduler.usertask.UserTaskScope

@ -9,6 +9,7 @@ package docspell.joex.preview
import cats.effect._
import cats.implicits._
import fs2.{Chunk, Stream}
import docspell.backend.JobFactory
import docspell.common.MakePreviewArgs.StoreMode
import docspell.common._

@ -9,11 +9,13 @@ package docspell.joex.updatecheck
import cats.data.OptionT
import cats.effect._
import cats.implicits._
import docspell.common._
import docspell.scheduler.Task
import docspell.scheduler.usertask.UserTask
import docspell.store.Store
import docspell.store.records.{RUser, RUserEmail}
import emil._
object UpdateCheckTask {

@ -9,6 +9,7 @@ package docspell.restserver
import cats.effect._
import fs2.Stream
import fs2.concurrent.Topic
import docspell.backend.BackendApp
import docspell.backend.auth.{AuthToken, ShareToken}
import docspell.backend.joex.FindJobOwnerAccount
@ -28,6 +29,7 @@ import docspell.restserver.webapp.{TemplateRoutes, Templates, WebjarRoutes}
import docspell.restserver.ws.{OutputEvent, WebSocketRoutes}
import docspell.scheduler.impl.JobStoreModuleBuilder
import docspell.store.Store
import emil.javamail.JavaMailEmil
import org.http4s.HttpRoutes
import org.http4s.client.Client

@ -8,6 +8,7 @@ package docspell.restserver.auth
import docspell.backend.auth._
import docspell.common.{AccountInfo, LenientUri}
import org.http4s._
import org.typelevel.ci.CIString

@ -7,6 +7,7 @@
package docspell.restserver.conv
import cats.syntax.all._
import docspell.addons.AddonMeta
import docspell.backend.ops.AddonValidationError
import docspell.backend.ops.OAddons.AddonValidationResult

@ -9,11 +9,13 @@ package docspell.restserver.routes
import cats.data.NonEmptyList
import cats.effect._
import cats.syntax.all._
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.restapi.model._
import docspell.restserver.http4s.ThrowableResponseMapper
import docspell.scheduler.usertask.UserTaskScope
import org.http4s.HttpRoutes
import org.http4s.circe.CirceEntityCodec._
import org.http4s.dsl.Http4sDsl

@ -8,6 +8,7 @@ package docspell.restserver.routes
import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.backend.ops._
@ -18,6 +19,7 @@ import docspell.restserver.conv.Conversions
import docspell.restserver.http4s.BinaryUtil
import docspell.restserver.webapp.Webjars
import docspell.scheduler.usertask.UserTaskScope
import org.http4s._
import org.http4s.circe.CirceEntityDecoder._
import org.http4s.circe.CirceEntityEncoder._

@ -9,12 +9,14 @@ package docspell.restserver.routes
import cats.data.{EitherT, OptionT}
import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.common._
import docspell.restserver.Config
import docspell.restserver.conv.Conversions._
import docspell.restserver.http4s.Responses
import docspell.store.records.{RCollective, RItem}
import org.http4s._
import org.http4s.circe.CirceEntityEncoder._
import org.http4s.dsl.Http4sDsl

@ -8,6 +8,7 @@ package docspell.restserver.routes
import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.backend.ops.OCustomFields.{RemoveValue, SetValue}
@ -17,6 +18,7 @@ import docspell.restserver.Config
import docspell.restserver.conv.{Conversions, MultiIdSupport, NonEmptyListSupport}
import docspell.restserver.http4s.ClientRequestInfo
import docspell.scheduler.usertask.UserTaskScope
import org.http4s.HttpRoutes
import org.http4s.circe.CirceEntityDecoder._
import org.http4s.circe.CirceEntityEncoder._

@ -9,6 +9,7 @@ package docspell.restserver.routes
import cats.data.NonEmptyList
import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.backend.ops.OCustomFields.{RemoveValue, SetValue}
@ -21,6 +22,7 @@ import docspell.restserver.http4s.ClientRequestInfo
import docspell.restserver.http4s.Responses
import docspell.restserver.http4s.{QueryParam => QP}
import docspell.scheduler.usertask.UserTaskScope
import org.http4s.HttpRoutes
import org.http4s.circe.CirceEntityDecoder._
import org.http4s.circe.CirceEntityEncoder._

@ -8,12 +8,14 @@ package docspell.restserver.routes
import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.common.Ident
import docspell.restapi.model.JobPriority
import docspell.restserver.conv.Conversions
import docspell.scheduler.usertask.UserTaskScope
import org.http4s.HttpRoutes
import org.http4s.circe.CirceEntityDecoder._
import org.http4s.circe.CirceEntityEncoder._

@ -8,6 +8,7 @@ package docspell.restserver.routes
import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.backend.ops.OCollective
@ -15,6 +16,7 @@ import docspell.common._
import docspell.restapi.model._
import docspell.restserver.conv.Conversions._
import docspell.store.UpdateResult
import org.http4s.HttpRoutes
import org.http4s.circe.CirceEntityDecoder._
import org.http4s.circe.CirceEntityEncoder._

@ -10,9 +10,11 @@ import cats.effect.Async
import cats.implicits._
import fs2.concurrent.Topic
import fs2.{Pipe, Stream}
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.scheduler.usertask.UserTaskScope
import org.http4s.HttpRoutes
import org.http4s.dsl.Http4sDsl
import org.http4s.server.websocket.WebSocketBuilder2

@ -1,7 +1,14 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package docspell.scheduler
import cats.Applicative
import cats.data.{Kleisli, OptionT}
import docspell.common.AccountInfo
/** Strategy to find the user that submitted the job. This is used to emit events about

@ -8,8 +8,10 @@ package docspell.scheduler
import cats.effect.Sync
import cats.syntax.functor._
import docspell.common._
import docspell.scheduler.usertask.UserTaskScope
import io.circe.Encoder
final case class Job[A](

@ -9,6 +9,7 @@ package docspell.scheduler.impl
import cats.data.OptionT
import cats.effect._
import cats.implicits._
import docspell.common.{Ident, JobState}
import docspell.notification.api.{Event, EventSink}
import docspell.pubsub.api.PubSubT

@ -1,3 +1,9 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package db.migration.common
import emil.MailAddress

@ -1,11 +1,20 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package db.migration.common
import cats.syntax.all._
import cats.effect._
import cats.syntax.all._
import docspell.common._
import docspell.store.records.{RCollective, RJob, RPeriodicTask, RUser}
import doobie._
import doobie.implicits._
import docspell.notification.api.{PeriodicDueItemsArgs, PeriodicQueryArgs}
import docspell.store.qb.DSL._
import docspell.store.qb._
import docspell.store.records._
import db.migration.data.{
AllPreviewsArgs => AllPreviewArgsLegacy,
ConvertAllPdfArgs => ConvertAllPdfArgsLegacy,
@ -21,9 +30,8 @@ import db.migration.data.{
ScanMailboxArgs => ScanMailboxArgsLegacy,
ScheduledAddonTaskArgs => ScheduledAddonTaskArgsLegacy
}
import docspell.notification.api.{PeriodicDueItemsArgs, PeriodicQueryArgs}
import docspell.store.qb._
import docspell.store.qb.DSL._
import doobie._
import doobie.implicits._
import io.circe.{Decoder, Encoder, parser}
import org.flywaydb.core.api.migration.Context

@ -1,13 +1,21 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package db.migration.common
import cats.data.{NonEmptyList, OptionT}
import cats.effect.{IO, Sync}
import cats.implicits._
import docspell.common._
import docspell.common.syntax.StringSyntax._
import docspell.notification.api._
import docspell.store.records._
import docspell.store.qb.DSL._
import docspell.store.records._
import db.migration.data.{
PeriodicDueItemsArgs => PeriodicDueItemsArgsLegacy,
PeriodicQueryArgs => PeriodicQueryArgsLegacy,

@ -1,15 +1,23 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package db.migration.common
import cats.data.{NonEmptyList, OptionT}
import cats.effect.{IO, Sync}
import cats.implicits._
import docspell.common._
import docspell.common.syntax.StringSyntax._
import docspell.notification.api._
import docspell.store.records.{RNotificationChannelMail, RPeriodicTask}
import docspell.store.qb.DSL._
import db.migration.data.{PeriodicDueItemsArgs => PeriodicDueItemsArgsLegacy, _}
import docspell.store.qb.DML
import docspell.store.qb.DSL._
import docspell.store.records.{RNotificationChannelMail, RPeriodicTask}
import db.migration.data.{PeriodicDueItemsArgs => PeriodicDueItemsArgsLegacy, _}
import doobie._
import doobie.implicits._
import emil.MailAddress

@ -1,7 +1,15 @@
/*
* Copyright 2020 Eike K. & Contributors
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
package db.migration.common
import cats.effect.IO
import docspell.logging.Logger
import doobie.util.transactor.{Strategy, Transactor}
import org.flywaydb.core.api.migration.Context

@ -7,6 +7,7 @@
package db.migration.data
import docspell.common._
import io.circe.generic.semiauto._
import io.circe.{Decoder, Encoder}

@ -7,6 +7,7 @@
package db.migration.data
import docspell.common._
import io.circe._
import io.circe.generic.semiauto._

@ -6,11 +6,12 @@
package db.migration.data
import db.migration.data.DownloadZipArgs.DownloadRequest
import docspell.common._
import docspell.query.ItemQuery.Expr.ValidItemStates
import docspell.query.{ItemQuery, ItemQueryParser}
import docspell.store.queries.Query
import db.migration.data.DownloadZipArgs.DownloadRequest
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}

@ -7,12 +7,14 @@
package db.migration.data
import cats.implicits._
import db.migration.data.FileIntegrityCheckArgs.FileKeyPart
import docspell.common.{FileCategory, Ident}
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}
import io.circe.syntax._
import db.migration.data.FileIntegrityCheckArgs.FileKeyPart
import io.circe.DecodingFailure
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.syntax._
import io.circe.{Decoder, Encoder}
/** @deprecated `FileKey` and `FileKeyPart` was replaced to use a `CollectiveId` */
final case class FileIntegrityCheckArgs(pattern: FileKeyPart)

@ -7,6 +7,7 @@
package db.migration.data
import docspell.common._
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}

@ -7,8 +7,10 @@
package db.migration.data
import cats.data.NonEmptyList
import docspell.common._
import docspell.notification.api.ChannelRef
import io.circe.generic.semiauto
import io.circe.{Decoder, Encoder}

@ -7,8 +7,10 @@
package db.migration.data
import cats.data.NonEmptyList
import docspell.common._
import docspell.notification.api.ChannelRef
import io.circe.generic.semiauto
import io.circe.{Decoder, Encoder}

@ -6,10 +6,10 @@
package db.migration.data
import ProcessItemArgs._
import docspell.common.{FileIntegrityCheckArgs => _, _}
import docspell.common.syntax.all._
import docspell.common.{FileIntegrityCheckArgs => _, _}
import db.migration.data.ProcessItemArgs._
import io.circe._
import io.circe.generic.semiauto._

@ -7,6 +7,7 @@
package db.migration.data
import docspell.common._
import io.circe._
import io.circe.generic.semiauto._

@ -7,6 +7,7 @@
package db.migration.data
import docspell.common._
import io.circe.generic.semiauto.{deriveDecoder, deriveEncoder}
import io.circe.{Decoder, Encoder}

@ -7,6 +7,7 @@
package db.migration.h2
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateNotifyTasks
import org.flywaydb.core.api.migration.BaseJavaMigration
import org.flywaydb.core.api.migration.Context

@ -7,6 +7,7 @@
package db.migration.h2
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateDueItemTasks
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context}

@ -7,6 +7,7 @@
package db.migration.h2
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateCollectiveIdTaskArgs
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context}

@ -7,6 +7,7 @@
package db.migration.mariadb
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateNotifyTasks
import org.flywaydb.core.api.migration.BaseJavaMigration
import org.flywaydb.core.api.migration.Context

@ -7,6 +7,7 @@
package db.migration.mariadb
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateDueItemTasks
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context}

@ -7,6 +7,7 @@
package db.migration.mariadb
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateCollectiveIdTaskArgs
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context}

@ -7,6 +7,7 @@
package db.migration.postgresql
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateNotifyTasks
import org.flywaydb.core.api.migration.BaseJavaMigration
import org.flywaydb.core.api.migration.Context

@ -7,6 +7,7 @@
package db.migration.postgresql
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateDueItemTasks
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context}

@ -7,6 +7,7 @@
package db.migration.postgresql
import cats.effect.unsafe.implicits._
import db.migration.common.MigrateCollectiveIdTaskArgs
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context}

@ -9,9 +9,11 @@ package docspell.store.records
import cats.data.NonEmptyList
import cats.effect._
import cats.implicits._
import docspell.common._
import docspell.store.qb.DSL._
import docspell.store.qb._
import com.github.eikek.calev.CalEvent
import doobie._
import doobie.implicits._

@ -7,10 +7,12 @@
package docspell.store.fts
import java.time.{Instant, LocalDate}
import cats.effect.IO
import cats.syntax.option._
import cats.syntax.traverse._
import fs2.Stream
import docspell.common._
import docspell.ftsclient.FtsResult
import docspell.ftsclient.FtsResult.{AttachmentData, ItemMatch}
@ -19,6 +21,7 @@ import docspell.store.qb.DSL._
import docspell.store.qb._
import docspell.store.queries.{QItem, QLogin, Query}
import docspell.store.records.{RCollective, RItem, RUser}
import doobie._
class TempFtsOpsTest extends DatabaseTest {

@ -7,7 +7,9 @@
package docspell.store.migrate
import cats.effect._
import docspell.store.{DatabaseTest, SchemaMigrateConfig, StoreFixture}
import org.flywaydb.core.api.output.MigrateResult
class MigrateTest extends DatabaseTest {