Skip to content

Commit 3f665fd

Browse files
authored
Merge pull request #105 from data-catering/feature/sample-api
Update to 0.16.8
2 parents b286068 + bef442a commit 3f665fd

8 files changed

Lines changed: 25 additions & 20 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ and deep dive into issues [from the generated report](https://data.catering/late
3838

3939
1. Docker
4040
```shell
41-
docker run -d -i -p 9898:9898 -e DEPLOY_MODE=standalone --name datacaterer datacatering/data-caterer:0.16.7
41+
docker run -d -i -p 9898:9898 -e DEPLOY_MODE=standalone --name datacaterer datacatering/data-caterer:0.16.8
4242
```
4343
[Open localhost:9898](http://localhost:9898).
4444
1. [Run Scala/Java examples](#run-scalajava-examples)

api/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* This project uses @Incubating APIs which are subject to change.
88
*/
99
val apiArtifactId: String by project
10-
val scalaVersion: String by project
11-
val scalaSpecificVersion: String by project
1210

1311
project.base.archivesName.set(apiArtifactId)
1412

app/build.gradle.kts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
* User Manual available at https://docs.gradle.org/7.5.1/userguide/building_java_projects.html
77
* This project uses @Incubating APIs which are subject to change.
88
*/
9-
val scalaVersion: String by project
10-
val scalaSpecificVersion: String by project
11-
val sparkVersion: String by project
12-
val sparkMajorVersion: String by project
13-
149
plugins {
1510
scala
1611
application

docker-action.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
version=$(grep version gradle.properties | cut -d= -f2)
4-
sparkVersion=$(grep sparkVersion gradle.properties | cut -d= -f2)
54
platforms="linux/amd64,linux/arm64"
65

76
echo "Creating API jars and publishing, version=$version"

docs/get-started/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ cd data-caterer-example && ./run.sh simple-json.yaml
8585

8686
1. Docker
8787
```shell
88-
docker run -d -i -p 9898:9898 -e DEPLOY_MODE=standalone --name datacaterer datacatering/data-caterer:0.16.7
88+
docker run -d -i -p 9898:9898 -e DEPLOY_MODE=standalone --name datacaterer datacatering/data-caterer:0.16.8
8989
```
9090
2. [Open localhost:9898](http://localhost:9898)
9191

example/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
val scalaVersion: String by project
2-
val scalaSpecificVersion: String by project
3-
41
plugins {
52
scala
63
}
@@ -10,7 +7,7 @@ repositories {
107
}
118

129
dependencies {
13-
compileOnly("org.scala-lang:scala-library:$scalaSpecificVersion")
10+
compileOnly(libs.scala.library)
1411

1512
compileOnly(project(":api"))
1613
}

gradle.properties

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
group=io.github.data-catering
2-
version=0.16.7
3-
4-
scalaVersion=2.12
5-
scalaSpecificVersion=2.12.19
6-
sparkVersion=3.5.6
7-
sparkMajorVersion=3.5
2+
version=0.16.8
83

94
org.gradle.parallel=true
105
org.gradle.caching=true

misc/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 0.16.8
4+
5+
Introduce sample-data generation APIs with docs, new Gradle run tasks, improved logging, and stricter sink format validation with accompanying tests.
6+
7+
- API/UI:
8+
- New endpoints: POST /sample/task-file, POST /sample/task-yaml (supports raw YAML and JSON), POST /sample/schema in PlanRoutes.
9+
- Request models & unmarshaller: Add SampleModels and custom TaskYamlUnmarshaller.
10+
- Repository wiring: PlanRepository adds GenerateFromTaskFile/TaskYaml/Schema commands using FastSampleGenerator; Spark warm-up on startup.
11+
- Core/Generation:
12+
- Add FastSampleGenerator for lightweight sample data from schema/task YAML/file.
13+
- Enhance BatchDataProcessor with debug logging and per-step try/catch.
14+
- Sink:
15+
- SinkFactory: require FORMAT option (throws helpful error); cleanup noisy logs; JSON array unwrap preserved.
16+
- Build/Run:
17+
- Gradle: add runUI and runSpark tasks with JVM args.
18+
- Docs/Tooling:
19+
- Add comprehensive API doc docs/docs/api.md.
20+
- Add misc/api/validate_api_docs.py and ignore api_validation_report.txt.
21+
- Tests:
22+
- New tests for sample generation and YAML unmarshal; add sink format error test; update sample YAMLs.
23+
324
## 0.16.7
425

526
- Fix bug when there are multiple tasks and the number of records generated is not correct

0 commit comments

Comments
 (0)