Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1693 api v3 disabled fails validation #2066

Merged
merged 103 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
f1798b2
#1693 API v3: VersionedModel v3 init - VersionedModelControllerV3 bas…
dk1844 Mar 7, 2022
0f62851
#1693 API v3: some basic VersionedModelControllerV3 integration test
dk1844 Mar 7, 2022
c01cfda
#1693 API v3: VersionedModelControllerV3 integration test cont'd - te…
dk1844 Mar 8, 2022
4fd08e2
#1693 API v3: VersionedModelControllerV3 - post to yield location hea…
dk1844 Mar 21, 2022
5c8e005
#1693 API v3: VersionedModelControllerV3 - put to yield no content ->…
dk1844 Mar 23, 2022
458bfed
#1693 API v3: VersionedModelControllerV3 - IT for /ds/export (latest …
dk1844 Mar 23, 2022
a7a6cf9
#1693 API v3: VersionedModelControllerV3 - location header for put/po…
dk1844 Mar 23, 2022
af489b1
#1693 API v3: VersionedModelControllerV3 - location header for post-i…
dk1844 Mar 24, 2022
21f8008
#1693 API v3: VersionedModelControllerV3 -IT for GET datasets/{name},…
dk1844 Mar 24, 2022
6f63117
#1693 API v3: VersionedModelControllerV3 - IT for GET datasets/{name}…
dk1844 Mar 24, 2022
76e87ce
#1693 API v3: VersionedModelControllerV3 - GET /datasets/{name}/{vers…
dk1844 Mar 24, 2022
d62cd90
#1693 API v3: VersionedModelControllerV3 - common implementation of /…
dk1844 Mar 24, 2022
fc4c359
#1693 API v3: VersionedModelControllerV3 - /{name}/{version}/used-in …
dk1844 Mar 24, 2022
e6c8d8c
#1693 API v3: VersionedModelControllerV3 - GET/PUT /{name}/{version}/…
dk1844 Mar 29, 2022
3566df5
#1693 API v3: VersionedModelControllerV3 - GET/PUT /{name}/{version}/…
dk1844 Mar 30, 2022
219360a
#1693 Fix: (v2) VersionedModelController.getLatestVersionNumber(): Fu…
dk1844 Mar 30, 2022
112ac1e
#1693 VersionedModelControllerV3: `/{name}/{version}/validation` impl…
dk1844 Mar 30, 2022
101b37a
#1693 VersionedModelControllerV3 - IT extended for `POST /{name}/{ver…
dk1844 Mar 31, 2022
b934958
#1693 VersionedModelControllerV3 - conformance rule mgmt GET+POST dat…
dk1844 Apr 1, 2022
51ad013
#1693 PR review update - typos etc
dk1844 Apr 6, 2022
ba5edce
#1693 Validation-warnings as payload to caller in V3
dk1844 Apr 6, 2022
662119b
#1693 Validation-warnings as payload to caller in V3 - IT covered
dk1844 Apr 7, 2022
b0fd955
#1693 API v3 impl for MTs, no tests yet
dk1844 Apr 7, 2022
d480445
#1693 import validation check added to IT.
dk1844 Apr 7, 2022
bffbf55
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 Apr 7, 2022
3542a43
Merge branch 'develop-ver-3.0' into feature/1693-api-v3-versioned-model
dk1844 Apr 7, 2022
51d68a8
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 Apr 7, 2022
e1c904e
#1693 api-v3 mapping table specific - IntegTest for GET/POST/PUT .../…
dk1844 Apr 11, 2022
489ae12
#1693 api-v3 mapping table specific - MT now validates if schema exis…
dk1844 Apr 11, 2022
d6ef401
#1693 schema validation for DSs + IntegTest update
dk1844 Apr 11, 2022
a75ab85
#1693 Mt existence check for DS rules + reflecting in integTest
dk1844 Apr 11, 2022
6a16696
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 Apr 11, 2022
65b9f21
#1693 Mt existence check for DS rules + reflecting in integTest 2
dk1844 Apr 12, 2022
4426ff7
#1693 schema controller v3 - todo IT (original IT v2 works)
dk1844 Apr 14, 2022
fe6246c
#1693 schema controller v3 - partial IT - POST, .../json, .../origina…
dk1844 Apr 14, 2022
9241eb1
Merge branch 'develop-ver-3.0' into feature/1693-api-v3-versioned-model
dk1844 Apr 14, 2022
373bf1d
#1693 PropertyDefinitionControllerV3 - impl + IT for create;
dk1844 Apr 20, 2022
73bb8fd
#1693 admin rights required in VersionedModelControllerV3 -> reflecte…
dk1844 Apr 20, 2022
a2c5f40
#1693 admin rights required in VersionedModelControllerV3 -> ITs with…
dk1844 Apr 20, 2022
4d9f623
#1693 schema api v3: GET ... /json 400 with validation errors on empt…
dk1844 Apr 22, 2022
f410702
#1693 dataset v2 delete IT asserted to make sure there are regression…
dk1844 Apr 25, 2022
27b2e62
#1693 VersionedModelControllerV3 disable (DELETE .../{name}) + enable…
dk1844 Apr 25, 2022
1787692
#1693 Dataset V3 API enable/disable ITs + impl fix
dk1844 Apr 26, 2022
e4559b1
#1693 Schema V3 API enable/disable simple cases - no usedIn checks, yet
dk1844 Apr 26, 2022
cdbe7ae
#1693 VersionedModelControllerV3 - 2 levels of .../used-in exist ( /{…
dk1844 Apr 27, 2022
be02b5d
#1693 usedIn + delete for propertyDefinitions ref'd in Datasets + ITs…
dk1844 Apr 28, 2022
09c326e
#1693 PR review update 1
dk1844 Apr 28, 2022
5df526d
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 Apr 28, 2022
fd87e11
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 Apr 28, 2022
8baf2d3
#1693 PR review update: SchemaService(V3) update/create behavior is e…
dk1844 Apr 29, 2022
0677bef
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 Apr 29, 2022
a474054
#1693 cleanup
dk1844 Apr 29, 2022
c50a024
#1693 MT in MCR check - usedIn fix (originally from JS). IT test-case…
dk1844 Apr 29, 2022
32e48d0
#1693 UsedIn - empty/nonEmpty normalization + UnitTest. V2 alternated…
dk1844 Apr 29, 2022
1c241d1
#1693 DatasetService.updateProperties[V3] -> split between DatasetSer…
dk1844 May 3, 2022
bf15425
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 May 3, 2022
06e5c5f
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 3, 2022
7fe2a93
#1693 PR review update: VersionedModelControllerV3 - GET /{name}/expo…
dk1844 May 4, 2022
56a9f0c
#1693 VersionedMongoRepository - unused method `getAllVersionsValues`…
dk1844 May 4, 2022
a4aac70
#1693 for V3 API: VersionedSummary -> NamedLatestVersion: impl + IT
dk1844 May 4, 2022
5d24819
#1693 PR review update: VersionedModelControllerV3 - GET /{name}/expo…
dk1844 May 4, 2022
7040694
#1693 VersionedMongoRepository - unused method `getAllVersionsValues`…
dk1844 May 4, 2022
e0fda73
#1693 for V3 API: VersionedSummary -> NamedLatestVersion: impl + IT
dk1844 May 4, 2022
2bfd751
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 May 4, 2022
a401024
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 4, 2022
1da8e8c
#1693 PR review updates: renamings, comments, removed unused, formatt…
dk1844 May 5, 2022
7ae4acb
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 5, 2022
9c3f663
#1693 PR review updates: `@PreAuthorize("@authConstants.hasAdminRole(…
dk1844 May 5, 2022
c72e559
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 5, 2022
99ee67b
#1693 mergefix: admin-auth for PropDefs only.
dk1844 May 5, 2022
a80d9ac
#1693 Swagger differs in paths based on `spring.profiles.active` bein…
dk1844 May 6, 2022
f851bce
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 May 6, 2022
9679d56
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 6, 2022
562da60
#1693 Swagger API: dev-profile: full v2+v3 API, non-dev: full v3 API
dk1844 May 9, 2022
fb0dd93
Merge branch 'feature/1693-api-v3-versioned-model' into feature/1693-…
dk1844 May 9, 2022
1a9c18b
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 9, 2022
eac77dd
#1693 unused import cleanup
dk1844 May 9, 2022
db1227b
#1693 `NamedLatestVersion` generalized into a multipurpose `NamedVers…
dk1844 May 9, 2022
56ba9ed
#1693 PRReview `/{name}/{version}/defaults` processing generalization…
dk1844 May 9, 2022
28c7334
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 9, 2022
619da37
Merge branch 'develop-ver-3.0' into feature/1693-api-v3-schema-etc
dk1844 May 9, 2022
67f163e
Merge branch 'feature/1693-api-v3-schema-etc' into feature/1693-api-v…
dk1844 May 9, 2022
9769f8d
Merge branch 'develop-ver-3.0' into feature/1693-api-v3-delete-recreate
dk1844 May 10, 2022
0ff6851
#1692 Review update: API v3 summary (NamedVersion) now contains `disa…
dk1844 May 12, 2022
4574b09
#1692 Review update: UsedIn.{isEmpty|nonEmpty} omitted from serializa…
dk1844 May 12, 2022
fe56a6c
#1693 VersionedModelService divided into V2/V3 - these are now traits.
dk1844 May 16, 2022
10c45db
#1693 todo references added
dk1844 May 16, 2022
5e1b4cd
#1693 As `disabled` flag cases to fail validation:
dk1844 May 16, 2022
982e813
Merge branch 'develop-ver-3.0' into feature/1693-api-v3-delete-recreate
dk1844 May 16, 2022
dcdeb34
Merge branch 'feature/1693-api-v3-delete-recreate' into feature/1693-…
dk1844 May 16, 2022
006feb0
#1693 VersionedSummaryV2 Bson support fix
dk1844 May 17, 2022
7e889e9
Merge branch 'feature/1693-api-v3-delete-recreate' into feature/1693-…
dk1844 May 17, 2022
1cb15ce
#1693 VersionedSummaryV2 support fix - tests & impl
dk1844 May 17, 2022
2905892
#1693 VersionedSummaryV2 support fix - tests & impl
dk1844 May 17, 2022
e593df1
#1693 disable fail due to nonEmpty used in now carries a wrapper with…
dk1844 May 17, 2022
432ea61
Merge branch 'feature/1693-api-v3-delete-recreate' into feature/1693-…
dk1844 May 17, 2022
34292c4
#1693 `Future {throw x}` replaced with `Future.failed(x)` in rest_api…
dk1844 May 18, 2022
698086d
Merge branch 'feature/1693-api-v3-delete-recreate' into feature/1693-…
dk1844 May 18, 2022
7b8acd8
Merge branch 'develop-ver-3.0' into feature/1693-api-v3-disabled-fail…
dk1844 May 24, 2022
6bf7302
#1693 V2 /importItem integTest added
dk1844 May 24, 2022
243f9e2
#1693 bugfix: V3 API now correctly checks `metadata":{"exportVersion"…
dk1844 May 24, 2022
cab3ae0
#1693 PropertyDefinitionControllerV3IntegrationSuite - metadata impor…
dk1844 May 27, 2022
b3ffe43
#1693 Incorrectly merged SchemaControllerV3IntegrationSuite fixed.
dk1844 May 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ class RestExceptionHandler {
ResponseEntity.status(HttpStatus.I_AM_A_TEAPOT).build[Any]() // Could change for LOCKED but I like this more
}

@ExceptionHandler(value = Array(classOf[EntityDisabledException]))
def handleEntityDisabled(exception: EntityDisabledException): ResponseEntity[EntityDisabledException] = {
ResponseEntity.status(HttpStatus.BAD_REQUEST).body(exception)
}

@ExceptionHandler(value = Array(classOf[SchemaParsingException]))
def handleBadRequestException(exception: SchemaParsingException): ResponseEntity[Any] = {
val response = RestResponse(exception.message, Option(SchemaParsingError.fromException(exception)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ abstract class VersionedModelController[C <: VersionedModel with Product with Au
@ResponseStatus(HttpStatus.CREATED)
def importSingleEntity(@AuthenticationPrincipal principal: UserDetails,
@RequestBody importObject: ExportableObject[C]): CompletableFuture[C] = {
versionedModelService.importSingleItemV2(importObject.item, principal.getUsername, importObject.metadata).map {
case Some(entity) => entity
versionedModelService.importSingleItem(importObject.item, principal.getUsername, importObject.metadata).map {
case Some((entity, validation)) => entity // validation is disregarded for V2, import-v2 has its own
case None => throw notFound()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

package za.co.absa.enceladus.rest_api.controllers.v3

import com.mongodb.client.result.UpdateResult
import org.springframework.http.{HttpStatus, ResponseEntity}
import org.springframework.security.core.annotation.AuthenticationPrincipal
import org.springframework.security.core.userdetails.UserDetails
Expand All @@ -26,9 +25,9 @@ import za.co.absa.enceladus.model.versionedModel._
import za.co.absa.enceladus.model.{ExportableObject, UsedIn, Validation}
import za.co.absa.enceladus.rest_api.controllers.BaseController
import za.co.absa.enceladus.rest_api.controllers.v3.VersionedModelControllerV3.LatestVersionKey
import za.co.absa.enceladus.rest_api.exceptions.{EntityDisabledException, NotFoundException, ValidationException}
import za.co.absa.enceladus.rest_api.exceptions.NotFoundException
import za.co.absa.enceladus.rest_api.models.rest.DisabledPayload
import za.co.absa.enceladus.rest_api.services.VersionedModelService
import za.co.absa.enceladus.rest_api.services.v3.VersionedModelServiceV3

import java.net.URI
import java.util.Optional
Expand All @@ -42,7 +41,7 @@ object VersionedModelControllerV3 {
}

abstract class VersionedModelControllerV3[C <: VersionedModel with Product
with Auditable[C]](versionedModelService: VersionedModelService[C]) extends BaseController {
with Auditable[C]](versionedModelService: VersionedModelServiceV3[C]) extends BaseController {

import za.co.absa.enceladus.rest_api.utils.implicits._

Expand Down Expand Up @@ -110,7 +109,7 @@ abstract class VersionedModelControllerV3[C <: VersionedModel with Product
if (name != importObject.item.name) {
Future.failed(new IllegalArgumentException(s"URL and payload entity name mismatch: '$name' != '${importObject.item.name}'"))
} else {
versionedModelService.importSingleItemV3(importObject.item, principal.getUsername, importObject.metadata).map {
versionedModelService.importSingleItem(importObject.item, principal.getUsername, importObject.metadata).map {
case Some((entity, validation)) =>
// stripping two last segments, instead of /api-v3/dastasets/dsName/import + /dsName/dsVersion we want /api-v3/dastasets + /dsName/dsVersion
createdWithNameVersionLocationBuilder(entity.name, entity.version, request, stripLastSegments = 2).body(validation)
Expand All @@ -131,13 +130,10 @@ abstract class VersionedModelControllerV3[C <: VersionedModel with Product
def create(@AuthenticationPrincipal principal: UserDetails,
@RequestBody item: C,
request: HttpServletRequest): CompletableFuture[ResponseEntity[Validation]] = {
versionedModelService.isDisabled(item.name).flatMap { isDisabled =>
if (isDisabled) {
Future.failed(EntityDisabledException(s"Entity ${item.name} is disabled. Enable it first (PUT) to push new versions (PUT)."))
} else {

// enabled check is part of the validation
versionedModelService.create(item, principal.getUsername)
}
}.map {
.map {
case Some((entity, validation)) => createdWithNameVersionLocationBuilder(entity.name, entity.version, request).body(validation)
case None => throw notFound()
}
Expand All @@ -156,16 +152,11 @@ abstract class VersionedModelControllerV3[C <: VersionedModel with Product
} else if (version != item.version) {
Future.failed(new IllegalArgumentException(s"URL and payload version mismatch: ${version} != ${item.version}"))
} else {
versionedModelService.isDisabled(item.name).flatMap { isDisabled =>
if (isDisabled) {
throw EntityDisabledException(s"Entity ${item.name} is disabled. Enable it first to create new versions.")
} else {
versionedModelService.update(user.getUsername, item).map {
case Some((updatedEntity, validation)) =>
createdWithNameVersionLocationBuilder(updatedEntity.name, updatedEntity.version, request, stripLastSegments = 2).body(validation)
case None => throw notFound()
}
}
// disable check is already part of V3 validation
versionedModelService.update(user.getUsername, item).map {
case Some((updatedEntity, validation)) =>
createdWithNameVersionLocationBuilder(updatedEntity.name, updatedEntity.version, request, stripLastSegments = 2).body(validation)
case None => throw notFound()
}
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ import scala.concurrent.Future
import za.co.absa.enceladus.rest_api.exceptions.NotFoundException

@Service
class AttachmentService @Autowired()(attachmentMongoRepository: AttachmentMongoRepository,
class AttachmentService @Autowired()(val mongoRepository: AttachmentMongoRepository,
schemaMongoRepository: SchemaMongoRepository,
datasetMongoRepository: DatasetMongoRepository,
mappingTableMongoRepository: MappingTableMongoRepository)
extends ModelService(attachmentMongoRepository) {
extends ModelService[MenasAttachment] {

protected val attachmentMongoRepository: AttachmentMongoRepository = mongoRepository // alias

import scala.concurrent.ExecutionContext.Implicits.global

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ import scala.util.{Failure, Success}


@Service
class DatasetService @Autowired()(datasetMongoRepository: DatasetMongoRepository,
class DatasetService @Autowired()(val mongoRepository: DatasetMongoRepository,
oozieRepository: OozieRepository,
propertyDefinitionService: PropertyDefinitionService)
extends VersionedModelService(datasetMongoRepository) {
extends VersionedModelService[Dataset] {

protected val datasetMongoRepository: DatasetMongoRepository = mongoRepository // alias

import scala.concurrent.ExecutionContext.Implicits.global

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ import za.co.absa.enceladus.rest_api.repositories.{DatasetMongoRepository, Mappi
import scala.concurrent.Future

@Service
class MappingTableService @Autowired() (mappingTableMongoRepository: MappingTableMongoRepository,
datasetMongoRepository: DatasetMongoRepository) extends VersionedModelService(mappingTableMongoRepository) {
class MappingTableService @Autowired() (val mongoRepository: MappingTableMongoRepository,
datasetMongoRepository: DatasetMongoRepository) extends VersionedModelService[MappingTable] {

protected val mappingTableMongoRepository: MappingTableMongoRepository = mongoRepository // alias

import scala.concurrent.ExecutionContext.Implicits.global

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import za.co.absa.enceladus.rest_api.repositories.MongoRepository

import scala.concurrent.Future

abstract class ModelService[C](mongoRepository: MongoRepository[C]) {
trait ModelService[C] {

def mongoRepository: MongoRepository[C]

import scala.concurrent.ExecutionContext.Implicits.global

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ package za.co.absa.enceladus.rest_api.services

import org.springframework.beans.factory.annotation.{Autowired, Value}
import org.springframework.stereotype.Service
import za.co.absa.enceladus.model.Run
import za.co.absa.enceladus.rest_api.repositories.MonitoringMongoRepository

import scala.concurrent.Future

@Service
class MonitoringService @Autowired()(monitoringMongoRepository: MonitoringMongoRepository)
extends ModelService(monitoringMongoRepository) {
class MonitoringService @Autowired()(val mongoRepository: MonitoringMongoRepository)
extends ModelService[Run] {

import scala.concurrent.ExecutionContext.Implicits.global

def getMonitoringDataPoints(datasetName: String, startDate: String, endDate: String): Future[String] = {
monitoringMongoRepository.getMonitoringDataPoints(datasetName, startDate, endDate).map(_.mkString("[", ",", "]"))
mongoRepository.getMonitoringDataPoints(datasetName, startDate, endDate).map(_.mkString("[", ",", "]"))
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import za.co.absa.enceladus.model.properties.PropertyDefinition
import scala.concurrent.Future

@Service("propertyDefinitionService") // by-name qualifier: V2 implementations use the base implementation, not v3
class PropertyDefinitionService @Autowired()(propertyDefMongoRepository: PropertyDefinitionMongoRepository)
extends VersionedModelService(propertyDefMongoRepository) {
class PropertyDefinitionService @Autowired()(val mongoRepository: PropertyDefinitionMongoRepository)
extends VersionedModelService[PropertyDefinition] {

protected val propertyDefMongoRepository: PropertyDefinitionMongoRepository = mongoRepository // alias
import scala.concurrent.ExecutionContext.Implicits.global

override def getUsedIn(name: String, version: Option[Int]): Future[UsedIn] = {
Expand All @@ -44,7 +45,7 @@ class PropertyDefinitionService @Autowired()(propertyDefMongoRepository: Propert
}

def getDistinctCount(): Future[Int] = {
propertyDefMongoRepository.distinctCount()
mongoRepository.distinctCount()
}

override def create(newPropertyDef: PropertyDefinition, username: String): Future[Option[(PropertyDefinition, Validation)]] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ import scala.concurrent.Future
import scala.util.{Failure, Success, Try}

@Service
class RunService @Autowired()(runMongoRepository: RunMongoRepository)
extends ModelService(runMongoRepository) {
class RunService @Autowired()(val mongoRepository: RunMongoRepository)
extends ModelService[Run] {

protected val runMongoRepository: RunMongoRepository = mongoRepository // alias
Zejnilovic marked this conversation as resolved.
Show resolved Hide resolved

def getRunSummariesPerDatasetName(): Future[Seq[RunDatasetNameGroupedSummary]] = {
runMongoRepository.getRunSummariesPerDatasetName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ import za.co.absa.enceladus.rest_api.utils.converters.SparkMenasSchemaConvertor
import scala.concurrent.Future

@Service
class SchemaService @Autowired() (schemaMongoRepository: SchemaMongoRepository,
class SchemaService @Autowired() (val mongoRepository: SchemaMongoRepository,
mappingTableMongoRepository: MappingTableMongoRepository,
datasetMongoRepository: DatasetMongoRepository,
sparkMenasConvertor: SparkMenasSchemaConvertor) extends VersionedModelService(schemaMongoRepository) {
sparkMenasConvertor: SparkMenasSchemaConvertor) extends VersionedModelService[Schema] {

protected val schemaMongoRepository: SchemaMongoRepository = mongoRepository // alias

import scala.concurrent.ExecutionContext.Implicits.global

Expand Down
Loading