Skip to content

Commit

Permalink
Merge branch 'master' into feature/chart-clenup
Browse files Browse the repository at this point in the history
  • Loading branch information
acies312 authored Feb 19, 2024
2 parents 4a15bc3 + 68cc5f0 commit cea6f7b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import org.springframework.context.annotation.Import
* An entrypoint for spring for save-backend
*/
@SpringBootApplication(scanBasePackages = [
"com.saveourtool.save.configs",
"com.saveourtool.save.backend",
"com.saveourtool.save.service",
"com.saveourtool.save.storage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package com.saveourtool.save.backend

import com.saveourtool.save.backend.configs.ConfigProperties
import com.saveourtool.save.authservice.config.NoopWebSecurityConfig
import com.saveourtool.save.backend.configs.WebConfig
import com.saveourtool.save.backend.controllers.DownloadFilesController
import com.saveourtool.save.backend.controllers.FileController
import com.saveourtool.save.backend.controllers.internal.FileInternalController
import com.saveourtool.save.backend.service.*
import com.saveourtool.save.backend.storage.*
import com.saveourtool.save.backend.utils.mutateMockedUser
import com.saveourtool.save.configs.WebConfig
import com.saveourtool.save.core.result.DebugInfo
import com.saveourtool.save.core.result.Pass
import com.saveourtool.save.domain.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.saveourtool.save.backend.controller

import com.saveourtool.save.authservice.config.NoopWebSecurityConfig
import com.saveourtool.save.backend.configs.WebConfig
import com.saveourtool.save.backend.controllers.OrganizationController
import com.saveourtool.save.backend.repository.*
import com.saveourtool.save.backend.service.*
import com.saveourtool.save.backend.S11nTestConfig
import com.saveourtool.save.backend.storage.TestsSourceSnapshotStorage
import com.saveourtool.save.backend.utils.mutateMockedUser
import com.saveourtool.save.configs.WebConfig
import com.saveourtool.save.domain.Role
import com.saveourtool.save.entities.*
import com.saveourtool.save.repository.*
Expand Down
1 change: 1 addition & 0 deletions save-cloud-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ kotlin {
implementation(libs.spring.web)
implementation(libs.spring.webflux)
implementation(libs.spring.boot)
implementation(libs.spring.boot.starter.quartz)
implementation(libs.spring.data.jpa)
implementation(libs.jackson.module.kotlin)
implementation(libs.hibernate.core)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"MISSING_KDOC_ON_FUNCTION",
)

package com.saveourtool.save.backend.configs
package com.saveourtool.save.configs

import com.saveourtool.save.domain.supportTestStatus
import com.saveourtool.save.test.analysis.metrics.supportTestMetrics
Expand All @@ -24,9 +24,9 @@ import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
import org.springframework.web.reactive.config.WebFluxConfigurer

@Configuration
class WebConfig {
open class WebConfig {
@Bean
fun jackson2ObjectMapperBuilderCustomizer() = Jackson2ObjectMapperBuilderCustomizer { builder: Jackson2ObjectMapperBuilder ->
open fun jackson2ObjectMapperBuilderCustomizer() = Jackson2ObjectMapperBuilderCustomizer { builder: Jackson2ObjectMapperBuilder ->
builder
.supportTestStatus()
.supportKLocalDateTime()
Expand All @@ -35,13 +35,13 @@ class WebConfig {
}

@Bean
fun jackson2JsonEncoder(mapper: ObjectMapper) = Jackson2JsonEncoder(mapper)
open fun jackson2JsonEncoder(mapper: ObjectMapper) = Jackson2JsonEncoder(mapper)

@Bean
fun jackson2JsonDecoder(mapper: ObjectMapper) = Jackson2JsonDecoder(mapper)
open fun jackson2JsonDecoder(mapper: ObjectMapper) = Jackson2JsonDecoder(mapper)

@Bean
fun webFluxConfigurer(encoder: Jackson2JsonEncoder, decoder: Jackson2JsonDecoder) =
open fun webFluxConfigurer(encoder: Jackson2JsonEncoder, decoder: Jackson2JsonDecoder) =
object : WebFluxConfigurer {
override fun configureHttpMessageCodecs(configurer: ServerCodecConfigurer) {
configurer.defaultCodecs().jackson2JsonEncoder(encoder)
Expand All @@ -50,7 +50,7 @@ class WebConfig {
}

@Bean
fun jackson2WebClientCustomizer(jackson2JsonEncoder: Jackson2JsonEncoder, jackson2JsonDecoder: Jackson2JsonDecoder): WebClientCustomizer = WebClientCustomizer { builder ->
open fun jackson2WebClientCustomizer(jackson2JsonEncoder: Jackson2JsonEncoder, jackson2JsonDecoder: Jackson2JsonDecoder): WebClientCustomizer = WebClientCustomizer { builder ->
builder.codecs {
it.defaultCodecs().jackson2JsonEncoder(jackson2JsonEncoder)
it.defaultCodecs().jackson2JsonDecoder(jackson2JsonDecoder)
Expand Down

This file was deleted.

0 comments on commit cea6f7b

Please sign in to comment.