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/1692 api v3 runs #2073

Merged
merged 191 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
d109b73
Init of Enceladus 3.0.0 develop branch
benedeki Mar 13, 2021
0d265e5
#1612 Separating Menas UI and API (#1620)
AdrianOlosutean Apr 12, 2021
1c7d8a9
MANIFEST.MFs LF commit
dk1844 Apr 14, 2021
836bbec
Merge branch 'develop' into develop-ver-3.0
dk1844 Apr 14, 2021
07d4888
[develop-ver3.0] mergefix
dk1844 Apr 14, 2021
8a1c171
changes in Dockerfile - added new ARGs and in menas new ENV with defa…
dvagapov Apr 19, 2021
952e52a
chnaged docker.properties.template and one more ENV for dockerfile
dvagapov Apr 19, 2021
2b0f371
spark master and password as before
AdrianOlosutean Apr 19, 2021
43a2740
Merge remote-tracking branch 'origin/develop' into feature/merging-de…
AdrianOlosutean Apr 19, 2021
90188dc
integration
AdrianOlosutean Apr 19, 2021
5d3f4e0
Merge branch 'develop' into feature/merging-develop-ver.30
dk1844 Apr 20, 2021
5e90cbd
SPLINE_URLTEMPLATE moved from docker.prop to Dockerfile
dvagapov Apr 20, 2021
42df938
Merge branch 'develop' into feature/merging-develop-ver.30
dk1844 Apr 20, 2021
da03de0
Merge pull request #1752 from AbsaOSS/feature/merging-develop-ver.30
dk1844 Apr 20, 2021
027f695
#1774 test fix, the main is unchanged. (#1775)
dk1844 Apr 26, 2021
d3b57a0
Feature/601 swagger api docs (#1762)
AdrianOlosutean May 5, 2021
fa2bbd5
#417 SparkXML-related unit test added first (regression guard), Spark…
dk1844 May 14, 2021
88fabeb
#1769 Rename Menas to rest-api (#1781)
AdrianOlosutean May 14, 2021
70999f5
Feautre/1733 lineage dumper - 2nd edition (#1766)
dk1844 May 25, 2021
c4dcd92
1770 Rename menas web to menas (#1786)
AdrianOlosutean May 26, 2021
03f24ba
Merge branch 'develop' into develop-ver-3.0
dk1844 Jun 1, 2021
7f2d6e5
1732 Spline 0.6 integration (#1739)
AdrianOlosutean Jun 2, 2021
f6f0e52
Merge branch 'develop' into develop-ver-3.0
dk1844 Jun 7, 2021
1404bb3
[merging develop->develop-ver-3.0] buildfix
dk1844 Jun 7, 2021
e52c9ff
Merge branch 'develop' into develop-ver-3.0
dk1844 Jun 7, 2021
6eea153
[merging develop->develop-ver-3.0] mergefix
dk1844 Jun 7, 2021
5fa0909
[merging develop->develop-ver-3.0] mergefix2 (authorizeRequests now r…
dk1844 Jun 8, 2021
c461d22
Merge branch 'master' into merge/release-2.23.-0-into-develop-ver-3
benedeki Aug 22, 2021
d87e7c3
Merge branch 'master' into merge/release-2.23.-0-into-develop-ver-3
benedeki Sep 18, 2021
bd39018
Merge pull request #1890 from AbsaOSS/merge/release-2.23.-0-into-deve…
benedeki Sep 20, 2021
facb46a
Merge/release 2.24 into develop ver 3 (#1928)
AdrianOlosutean Oct 21, 2021
10213a2
Merge/merging release 2.25 into develop ver 3 (#1963)
dk1844 Nov 4, 2021
d9a72fc
Merge/merging release 2.26.X into develop ver3 (#1997)
Adrian-Olosutean Jan 10, 2022
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
55696a0
#2022 spark-commons (#2023)
Adrian-Olosutean Mar 9, 2022
a10e6b5
#2027: Ensures TimezoneNormalizer is used in tests (#2030)
benedeki Mar 15, 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
7e3d599
#2050: Unifying project space with GitHub defaults (#2051)
benedeki 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
a3fdde4
Feature/1693 api v3 versioned model - Dataset v3 implementation (#2046)
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
0576893
Feature/1693 api v3 schema etc (#2052)
dk1844 May 10, 2022
9769f8d
Merge branch 'develop-ver-3.0' into feature/1693-api-v3-delete-recreate
dk1844 May 10, 2022
352691a
#1692 APIv3 for runs: .getByUniqueId added on all sub-levels (repo, s…
dk1844 May 11, 2022
74ef264
#1692 APIv3 for runs: .updateRunStatus(dsName, dsVersion, runId, newR…
dk1844 May 11, 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
bf09a2f
2031 spark partition sizing (#2033)
Adrian-Olosutean May 13, 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
1b089ac
Merge branch 'feature/1693-api-v3-disabled-fails-validation' into fea…
dk1844 May 18, 2022
1ea08eb
#1692 Runs V3 API (no pagination, yet) - in progress
dk1844 May 19, 2022
186115d
#1692 notes added
dk1844 May 20, 2022
0c9bf73
Feature/1693 api v3 delete recreate (#2055)
dk1844 May 24, 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
b1ae51d
#1692 runs serialization based on Atum 3.8.1 and `ObjectMapper.setSer…
dk1844 May 24, 2022
a9e8809
Merge branch 'feature/1693-api-v3-disabled-fails-validation' into fea…
dk1844 May 24, 2022
d49a141
#1692 RunMongoRepository with new implementation started + IT start
dk1844 May 25, 2022
79ba7a9
#1692 RunMongoRepository - test cases cont'd
dk1844 May 26, 2022
cf4c515
#1692 Atum version updated to v3.8.1
dk1844 May 26, 2022
cab3ae0
#1693 PropertyDefinitionControllerV3IntegrationSuite - metadata impor…
dk1844 May 27, 2022
f124e3e
#1692 RunMongoRepositoryV3.getLatestOfEachRunSummary now offers to fi…
dk1844 May 27, 2022
56b33cd
#1692 import cleanup
dk1844 May 27, 2022
b3ffe43
#1693 Incorrectly merged SchemaControllerV3IntegrationSuite fixed.
dk1844 May 27, 2022
c9259af
#1692 RunControllerV3 @ RunServiceV3 @ RunMongoRepositoryV3.
dk1844 May 27, 2022
168d9b7
Merge branch 'feature/1693-api-v3-disabled-fails-validation' into fea…
dk1844 May 27, 2022
9350533
#1692 RunControllerV3IntegrationSuite - testcases added
dk1844 May 30, 2022
3bac171
#1692 RunMongoRepositoryV3.getRunSummaries + IT
dk1844 May 30, 2022
73856b3
#1692 RunMongoRepositoryV3.getRunSummaries + IT - @GetMapping(Array("…
dk1844 May 30, 2022
b30646e
#1692 RunControllerV3IntegrationSuite: POST $apiUrl/{datasetName}/{da…
dk1844 May 30, 2022
4d39116
#1692 RunServiceV3 has custom validation - it checks the reference'd …
dk1844 May 30, 2022
e819630
#1692 serialization reverted to original state -> new issue #2074
dk1844 May 31, 2022
cee9a8b
#1692 autowiring fix for (run)mongoRepository: RunMongoRepository
dk1844 May 31, 2022
9cf521e
Feature/1693 api v3 disabled fails validation (#2066)
dk1844 May 31, 2022
ba9c447
Merge branch 'develop-ver-3.0' into feature/1692-api-v3-runs
dk1844 May 31, 2022
c8141be
#1692 GET $apiUrl/{datasetName}/{datasetVersion}/{runId} IT - but wit…
dk1844 May 31, 2022
8bca3a6
#1692 GET $apiUrl/{datasetName}/{datasetVersion}/{runId} IT - no enum…
dk1844 May 31, 2022
3bf4262
#2075 validation fixed for combination of disabled+another failed val…
dk1844 Jun 1, 2022
e6f93cd
#1692 update run status - impl + test cases
dk1844 Jun 2, 2022
2c398ad
#1692 RunControllerV3.create now yields a ResponseEntity with `Locati…
dk1844 Jun 2, 2022
a289966
#1692 RunControllerV3 API .../checkpoints IT + cleanup
dk1844 Jun 2, 2022
830637c
#1692 RunControllerV3 API .../checkpoints/{cpName} + IT + cleanup
dk1844 Jun 2, 2022
507aa26
#1692 RunControllerV3 API .../metadata IT
dk1844 Jun 2, 2022
ebb793e
#1692 RunControllerV3 API: `POST .../checkpoints` IT, ResponseEntitie…
dk1844 Jun 3, 2022
7d9df2b
#1692 RunControllerV3 API: `POST .../checkpoints` IT now check for CP…
dk1844 Jun 3, 2022
a0680de
Merge branch 'develop' into bugfix/2075-validation-order
dk1844 Jun 6, 2022
0f75144
Merge branch 'bugfix/2075-validation-order' into feature/1692-api-v3-…
dk1844 Jun 6, 2022
c752cab
#1692 post-merge cleanup
dk1844 Jun 6, 2022
cadeda6
#1692 post-merge cleanup
dk1844 Jun 6, 2022
2e47400
#1692 jackson.version unified to 2.10.4
dk1844 Jun 6, 2022
b22c5da
#1692 jackson.version unified to 2.10.4 (exclusion for spark-sql, too)
dk1844 Jun 6, 2022
a5c3822
#1692 JsonSerializerSuite fix - enumClass-impl dropped.
dk1844 Jun 6, 2022
043d090
#1692 jackson annotations exclusions to use 2.40.4
dk1844 Jun 7, 2022
15af297
Merge branch 'develop' into feature/1692-api-v3-runs
dk1844 Jun 7, 2022
fc37b04
#1692 PR updates
dk1844 Jun 15, 2022
4571415
#1692 PR updates - routine for combining opt Bson filters
dk1844 Jun 15, 2022
b252ecf
#1692 filtering runs from `startDate` fixed - using LocalDate/ISODate…
dk1844 Jun 15, 2022
3db75dd
#1692 `GET $apiUrl/{datasetName}` and s"GET $apiUrl/{datasetName}/{da…
dk1844 Jun 20, 2022
fcb42d6
#1692 @PutMapping(Array("/{datasetName}/{datasetVersion}/{runId} retu…
dk1844 Jun 20, 2022
976191d
Merge branch 'develop' into feature/1692-api-v3-runs
dk1844 Jun 21, 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 @@ -16,8 +16,8 @@
package za.co.absa.enceladus.dao

import org.apache.spark.sql.types.StructType
import za.co.absa.atum.model.{Checkpoint, ControlMeasure, RunStatus}
import za.co.absa.enceladus.model._
import za.co.absa.atum.model._
import za.co.absa.enceladus.utils.validation.ValidationLevel.Constants.DefaultValidationLevel
import za.co.absa.enceladus.utils.validation.ValidationLevel.ValidationLevel

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,7 @@ class JsonSerializerSuite extends BaseTestSuite with VersionedModelMatchers {
| },
| "startDateTime": "04-12-2017 16:19:17 +0200",
| "runStatus": {
| "status": {
| "enumClass": "za.co.absa.atum.model.RunState",
| "value": "allSucceeded"
| },
| "status": "allSucceeded",
| "error": null
| },
| "controlMeasure": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package za.co.absa.enceladus.model

import za.co.absa.atum.model.{ControlMeasure, RunStatus}
import com.typesafe.config.{Config, ConfigFactory}

case class Run
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ object MigrationToV1 extends MigrationBase with CollectionMigration with JsonMig
createIndex("schema", Seq(IndexField("name", ASC), IndexField("version", ASC)), unique = true)
createIndex("mapping_table", Seq(IndexField("name", ASC), IndexField("version", ASC)), unique = true)
createIndex("run", Seq(IndexField("dataset", ASC), IndexField("datasetVersion", ASC), IndexField("runId", ASC)), unique = true)
createIndex("run", Seq(IndexField("runId", ASC)))
createIndex("run", Seq(IndexField("uniqueId", ASC)), unique = true, sparse = true)
createIndex("attachment", Seq(IndexField("refName", ASC), IndexField("refVersion", ASC)))

Expand Down
17 changes: 15 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<abris.version>3.1.1</abris.version>
<absa.commons.version>1.0.0</absa.commons.version>
<absa.spark.commons.version>0.2.0</absa.spark.commons.version>
<atum.version>3.7.0</atum.version>
<atum.version>3.8.2</atum.version>
<bower.chart.js.version>2.7.3</bower.chart.js.version>
<bson.codec.jsr310.version>3.5.4</bson.codec.jsr310.version>
<cobrix.version>2.4.2</cobrix.version>
Expand All @@ -154,7 +154,7 @@
<httpclient.version>4.4.1</httpclient.version>
<jackson.spark.datatype.version>2.10.4</jackson.spark.datatype.version>
<jackson.spark.version>2.10.4</jackson.spark.version>
<jackson.version>2.9.8</jackson.version>
<jackson.version>2.10.4</jackson.version>
<jjwt.version>0.10.7</jjwt.version>
<json4s.version>3.5.3</json4s.version>
<junit.version>4.11</junit.version>
Expand Down Expand Up @@ -269,6 +269,15 @@
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<!-- in order to use higher version instead of builtin 2.6.7 -->
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-annotations</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -285,6 +294,10 @@
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down
9 changes: 9 additions & 0 deletions rest-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</exclusion>
<!-- in order to use higher version instead of builtin 2.6.7 -->
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-annotations</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Spark-avro for AvroSchema conversions -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package za.co.absa.enceladus.rest_api

import com.fasterxml.jackson.annotation.JsonInclude.Include
import com.fasterxml.jackson.databind.{DeserializationFeature, ObjectMapper, SerializationFeature}
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.scala.DefaultScalaModule
Expand Down Expand Up @@ -52,6 +53,11 @@ class Application() {
.registerModule(new JavaTimeModule())
.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)

// todo consider including the following to unify serialization results - #2074
// .setSerializationInclusion(Include.NON_ABSENT)
// ^ fields of `Option[T]` are not included if None (ame behavior as Atum's SerializationUtils.asJson)
// explanation: https://github.com/FasterXML/jackson-module-scala/issues/46#issuecomment-128770969
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package za.co.absa.enceladus.rest_api.controllers

import java.util.concurrent.CompletableFuture

import scala.concurrent.Future
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.scheduling.annotation.Async
Expand All @@ -36,11 +35,11 @@ import za.co.absa.enceladus.rest_api.services.RunService
@RestController
@RequestMapping(Array("/api/landing"))
class LandingPageController @Autowired() (datasetRepository: DatasetMongoRepository,
mappingTableRepository: MappingTableMongoRepository,
schemaRepository: SchemaMongoRepository,
runsService: RunService,
landingPageRepository: LandingPageStatisticsMongoRepository,
statisticsService: StatisticsService) extends BaseController {
mappingTableRepository: MappingTableMongoRepository,
schemaRepository: SchemaMongoRepository,
runService: RunService,
landingPageRepository: LandingPageStatisticsMongoRepository,
statisticsService: StatisticsService) extends BaseController {

import scala.concurrent.ExecutionContext.Implicits.global
import za.co.absa.enceladus.rest_api.utils.implicits._
Expand All @@ -54,7 +53,7 @@ class LandingPageController @Autowired() (datasetRepository: DatasetMongoReposit
val dsCountFuture = datasetRepository.distinctCount()
val mappingTableFuture = mappingTableRepository.distinctCount()
val schemaFuture = schemaRepository.distinctCount()
val runFuture = runsService.getCount()
val runFuture = runService.getCount()
val propertiesWithMissingCountsFuture = statisticsService.getPropertiesWithMissingCount()
val propertiesTotalsFuture: Future[(Int, Int, Int)] = propertiesWithMissingCountsFuture.map(props => {
props.foldLeft(0, 0, 0) { (acum, item) =>
Expand All @@ -66,7 +65,7 @@ class LandingPageController @Autowired() (datasetRepository: DatasetMongoReposit
}
}
})
val todaysStatsfuture = runsService.getTodaysRunsStatistics()
val todaysStatsfuture = runService.getTodaysRunsStatistics()
for {
dsCount <- dsCountFuture
mtCount <- mappingTableFuture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package za.co.absa.enceladus.rest_api.controllers

import java.util.concurrent.CompletableFuture

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.security.core.annotation.AuthenticationPrincipal
Expand Down Expand Up @@ -63,13 +62,13 @@ class RunController @Autowired()(runService: RunService) extends BaseController
@GetMapping(Array("/grouped"))
@ResponseStatus(HttpStatus.OK)
def getRunSummariesPerDatasetName(): CompletableFuture[Seq[RunDatasetNameGroupedSummary]] = {
runService.getRunSummariesPerDatasetName()
runService.getGroupedRunSummariesPerDatasetName()
}

@GetMapping(Array("/grouped/{datasetName}"))
@ResponseStatus(HttpStatus.OK)
def getRunSummariesPerDatasetVersion(@PathVariable datasetName: String): CompletableFuture[Seq[RunDatasetVersionGroupedSummary]] = {
runService.getRunSummariesPerDatasetVersion(datasetName)
runService.getGroupedRunSummariesPerDatasetVersion(datasetName)
}

@GetMapping(Array("/bySparkAppId/{appId}"))
Expand Down
Loading