Skip to content

Commit

Permalink
Bumped version to 2.6.33
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmpp committed Apr 19, 2024
1 parent 089518e commit 7e44cd9
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 229 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ val buildSettings = Seq(
scalariformPreferences := scalariformPreferences.value
.setPreference(DanglingCloseParenthesis, Force)
.setPreference(AlignSingleLineCaseStatements, true),
version := "2.6.32",
version := "2.6.33",
scalaVersion := "2.13.13",
crossScalaVersions := Seq("2.13.8", "2.13.13"),
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
Expand Down
2 changes: 1 addition & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ applications:
instances: 1
host: openolitortest
domain: applicationcloud.io
path: target/universal/openolitor-server-2.6.32.zip
path: target/universal/openolitor-server-2.6.33.zip
buildpack: https://github.com/cloudfoundry/java-buildpack.git
stack: cflinuxfs2
env:
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ openolitor {
slick {
profile = "slick.jdbc.MySQLProfile$"
db {
url = "jdbc:mysql://localhost:3307/try?cachePrepStmts=true&cacheCallableStmts=true&cacheServerConfiguration=true&useLocalSessionState=true&elideSetAutoCommits=true&alwaysSendSetIsolation=false&enableQueryTimeouts=false&connectionAttributes=none&verifyServerCertificate=false&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&useLegacyDatetimeCode=false&serverTimezone=UTC&rewriteBatchedStatements=true"
user = "super"
password = "thedefaultdbpasswordneedstobechanged"
url = "jdbc:mysql://localhost:3306/csa1?cachePrepStmts=true&cacheCallableStmts=true&cacheServerConfiguration=true&useLocalSessionState=true&elideSetAutoCommits=true&alwaysSendSetIsolation=false&enableQueryTimeouts=false&connectionAttributes=none&verifyServerCertificate=false&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&useLegacyDatetimeCode=false&serverTimezone=UTC&rewriteBatchedStatements=true"
user = "user_csa1"
password = "changeThisPasswrod"
driver = "com.mysql.cj.jdbc.Driver"
connectionPool = HikariCP
numThreads = 5
Expand All @@ -320,10 +320,10 @@ openolitor {
# Mandant specific db settings
db: {
default: {
url = "jdbc:mysql://localhost:3307/try"
url = "jdbc:mysql://localhost:3306/csa1"
driver = "com.mysql.cj.jdbc.Driver"
user = "super"
password = "thedefaultdbpasswordneedstobechanged"
user = "user_csa1"
password = "changeThisPasswrod"
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</logger>

<!-- TO SEE SQL QUERY LOG-OUTPUT SWITCH THIS LEVEL TO DEBUG-->
<logger name="scalikejdbc" level="INFO" additivity="false">
<logger name="scalikejdbc" level="DEBUG" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>

Expand Down
25 changes: 10 additions & 15 deletions src/main/scala/ch/openolitor/core/mailservice/MailService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ package ch.openolitor.core.mailservice
import java.util.UUID
import akka.actor._
import akka.persistence.SnapshotMetadata
import ch.openolitor.core.domain.{AggregateRoot, _}
import ch.openolitor.core.domain.{ AggregateRoot, _ }
import ch.openolitor.core.models.PersonId
import ch.openolitor.core.db.ConnectionPoolContextAware
import ch.openolitor.core.{JSONSerializable, SystemConfig}
import ch.openolitor.core.{ JSONSerializable, SystemConfig }
import ch.openolitor.core.filestore._
import ch.openolitor.util.ConfigUtil._
import courier._
Expand All @@ -41,7 +41,7 @@ import scala.collection.compat.immutable.ArraySeq
import scala.collection.immutable.TreeSet
import scala.concurrent.duration._
import scala.concurrent.Await
import scala.util.{Failure, Success}
import scala.util.{ Failure, Success }

object MailService {

Expand All @@ -50,24 +50,19 @@ object MailService {

case class MailServiceState(startTime: DateTime, mailQueue: TreeSet[MailEnqueued]) extends State

case class SendMailCommandWithCallback[M <: AnyRef](originator: PersonId, entity: Mail, retryDuration: Option[Duration], commandMeta: M)(implicit
p: Persister[M,
_]) extends
UserCommand
case class SendMailCommandWithCallback[M <: AnyRef](originator: PersonId, entity: Mail, retryDuration: Option[Duration], commandMeta: M)(implicit p: Persister[M, _]) extends UserCommand

case class SendMailCommand(originator: PersonId, entity: Mail, retryDuration: Option[Duration]) extends UserCommand

//events raised by this aggregateroot
case class MailServiceInitialized(meta: EventMetadata) extends PersistentEvent

// resulting send mail event
case class SendMailEvent(meta: EventMetadata, uid: String, mail: Mail, expires: DateTime, commandMeta: Option[AnyRef]) extends PersistentEvent with
JSONSerializable
case class SendMailEvent(meta: EventMetadata, uid: String, mail: Mail, expires: DateTime, commandMeta: Option[AnyRef]) extends PersistentEvent with JSONSerializable

case class MailSentEvent(meta: EventMetadata, uid: String, commandMeta: Option[AnyRef]) extends PersistentEvent with JSONSerializable

case class SendMailFailedEvent(meta: EventMetadata, uid: String, numberOfRetries: Int, commandMeta: Option[AnyRef]) extends PersistentEvent with
JSONSerializable
case class SendMailFailedEvent(meta: EventMetadata, uid: String, numberOfRetries: Int, commandMeta: Option[AnyRef]) extends PersistentEvent with JSONSerializable

def props(dbEvolutionActor: ActorRef, fileStore: FileStore)(implicit sysConfig: SystemConfig): Props = Props(classOf[DefaultMailService], sysConfig,
dbEvolutionActor, fileStore)
Expand Down Expand Up @@ -198,7 +193,7 @@ trait MailService extends AggregateRoot
val result = envelope match {
case Right(e) => Await.ready(mailer(e), 20 seconds).value match {
case Some(e) => Right(e)
case None => Left("Error sending the email")
case None => Left("Error sending the email")
}
case Left(e) => Left(e)
}
Expand Down Expand Up @@ -262,10 +257,10 @@ trait MailService extends AggregateRoot
override def restoreFromSnapshot(metadata: SnapshotMetadata, state: State): Unit = {
log.debug(s"restoreFromSnapshot:$state")
state match {
case Removed => context become removed
case Created => context become uninitialized
case Removed => context become removed
case Created => context become uninitialized
case s: MailServiceState => this.state = s
case other: Any => log.error(s"Received unsupported state:$other")
case other: Any => log.error(s"Received unsupported state:$other")
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/ch/openolitor/core/security/LoginService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
\* */
package ch.openolitor.core.security

import akka.http.caching.scaladsl.{Cache, CachingSettings}
import akka.http.caching.scaladsl.{ Cache, CachingSettings }
import akka.http.caching.LfuCache
import akka.pattern.ask
import akka.util.Timeout
import ch.openolitor.core.{ActorReferences, ExecutionContextAware, SystemConfigReference}
import ch.openolitor.core.{ ActorReferences, ExecutionContextAware, SystemConfigReference }
import ch.openolitor.core.Macros.copyTo
import ch.openolitor.core.db.AsyncConnectionPoolContextAware
import ch.openolitor.core.domain.SystemEvents
import ch.openolitor.core.mailservice.Mail
import ch.openolitor.core.mailservice.MailService.{MailServiceState, SendMailCommand, SendMailEvent}
import ch.openolitor.core.mailservice.MailService.{ MailServiceState, SendMailCommand, SendMailEvent }
import ch.openolitor.core.models.PersonId
import ch.openolitor.stammdaten.StammdatenCommandHandler.{PasswortGewechseltEvent, PasswortResetCommand, PasswortResetGesendetEvent, PasswortWechselCommand}
import ch.openolitor.stammdaten.StammdatenCommandHandler.{ PasswortGewechseltEvent, PasswortResetCommand, PasswortResetGesendetEvent, PasswortWechselCommand }
import ch.openolitor.stammdaten.models._
import ch.openolitor.stammdaten.repositories.StammdatenReadRepositoryAsyncComponent
import ch.openolitor.util.ConfigUtil._
Expand Down
Loading

0 comments on commit 7e44cd9

Please sign in to comment.