Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
c65e735
fix: commands -> check, discover
vishalm0509 Sep 24, 2025
8cc3be8
fix: sync worklfow
vishalm0509 Sep 24, 2025
f3b792a
refactor: remove worker from olake-ui
vishalm0509 Sep 24, 2025
83e844a
chore: remove worker files & add timeout utility
vishalm0509 Sep 25, 2025
6bc05d1
chore: update branch name in worklfow to release an image
vishalm0509 Sep 25, 2025
cc10970
fix: remove worker from release.sh
vishalm0509 Sep 25, 2025
7810c46
fix: add pre and post sync worker callback
vishalm0509 Sep 26, 2025
ae740f5
fix: add telemetry event for sync workflow
vishalm0509 Sep 29, 2025
8ce4037
Merge branch 'staging' of https://github.com/datazip-inc/olake-ui int…
vishalm0509 Sep 29, 2025
b50c466
fix: latest changes
vishalm0509 Sep 30, 2025
a480a71
chore: remove stale code
vishalm0509 Oct 1, 2025
1b7e87a
fix: update env var - container_persistence_dir and host_persistence_dir
vishalm0509 Oct 1, 2025
0ca69b6
chore: remove worker job api
vishalm0509 Oct 4, 2025
e5168a2
chore: cleanup files
vishalm0509 Oct 5, 2025
de465d4
Merge branch 'refactor/bff' of https://github.com/datazip-inc/olake-u…
vishalm0509 Oct 8, 2025
805458f
fix: fix refactor bff changes
vishalm0509 Oct 12, 2025
15b3d8c
chore: move encryptionkey to app.conf
vishalm0509 Oct 13, 2025
89664a2
chore: add unmarshal-and-validate util
vishalm0509 Oct 13, 2025
1e4dbec
chore: add robust error logging (resolve comments)
vishalm0509 Oct 13, 2025
36f4691
feat: add clear-dest bff
vishalm0509 Oct 22, 2025
3a2e1c9
chore: remove container_persistent_path env var
vishalm0509 Oct 22, 2025
22c6626
Merge branch 'refactor/worker' of https://github.com/datazip-inc/olak…
vishalm0509 Oct 22, 2025
42961a7
fix: add hash to clear-destination workflowID
vishalm0509 Oct 22, 2025
062fb45
chore: add api-contract and minor refactoring
vishalm0509 Oct 23, 2025
c2676bd
chore: remove hardcoded version used for testing
vishalm0509 Oct 23, 2025
33962d6
fix: add proper error handling
vishalm0509 Oct 23, 2025
b30d579
chore: update api contract for job task and logs
vishalm0509 Oct 23, 2025
7ecd1bb
fix: add response type for clear-destination status
vishalm0509 Oct 23, 2025
6c620fa
fix: add cancel sync in job update & remove cancel from clear destina…
vishalm0509 Oct 23, 2025
242ef5d
fix: add stream difference endpoint
vishalm0509 Oct 23, 2025
e20f2e6
fix: change streamsDifference to differenceStreams
vishalm0509 Oct 23, 2025
85775bd
fix: rename workflow names and remove req ctx from cancelJob
vishalm0509 Oct 24, 2025
b380856
chore: remove clear-destination status api endpoint
vishalm0509 Oct 27, 2025
de00a75
fix: resolve comments and add proper error for clear-destination in p…
vishalm0509 Oct 27, 2025
40ddd64
chore: add proper error for SyncJob
vishalm0509 Oct 27, 2025
892282e
fix: block sync/clear if job is paused
vishalm0509 Oct 28, 2025
7d4f37a
feat: add clear destination (#239)
deepanshupal09-datazip Oct 31, 2025
c291eb6
feat: add clear destination
vishalm0509 Nov 2, 2025
a08cb8a
Merge branch 'feat/clear_destination' of https://github.com/datazip-i…
vishalm0509 Nov 2, 2025
9ca6dd5
fix: resolve merge conflicts
vishalm0509 Nov 2, 2025
34a0268
Merge branch 'refactor/bff' into feat/clear_v0
deepanshupal09-datazip Nov 3, 2025
f2f3546
fix: add syncWaitTime to clearDestination service
vishalm0509 Nov 3, 2025
f41f45a
fix: fix clear destination api changes
deepanshupal09-datazip Nov 3, 2025
6f0d821
Merge branch 'refactor/bff' of https://github.com/datazip-inc/olake-u…
vishalm0509 Nov 3, 2025
94c3f24
remove unpause and update req from bff
vishalm0509 Nov 3, 2025
e4072e8
fix: send id in job edit
deepanshupal09-datazip Nov 4, 2025
766e029
Merge branch 'fix/job-edit-api' of https://github.com/datazip-inc/ola…
vishalm0509 Nov 4, 2025
6dd7a9f
Merge branch 'refactor/bff' of https://github.com/datazip-inc/olake-u…
vishalm0509 Nov 4, 2025
3a530a8
Merge branch 'refactor/bff' of https://github.com/datazip-inc/olake-u…
vishalm0509 Nov 5, 2025
51a1f2c
fix: fix destination name edit
deepanshupal09-datazip Nov 5, 2025
d6ffbdb
fix: resolve comments
vishalm0509 Nov 5, 2025
b691603
Merge branch 'feat/clear_v0' of https://github.com/datazip-inc/olake-…
vishalm0509 Nov 5, 2025
4ebf8cb
fix: add get clear destination status endpoint
vishalm0509 Nov 5, 2025
71bebf2
fix: add stream_difference and update timeout to 30s
vishalm0509 Nov 6, 2025
296bf46
fix: proper sync wait error handling
vishalm0509 Nov 6, 2025
a4ddb28
resolve comments - add proper sync wait method without polling
vishalm0509 Nov 6, 2025
5e5d147
fix: resolve comments
vishalm0509 Nov 6, 2025
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
77 changes: 73 additions & 4 deletions api-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ http://localhost:8080
"frequency": "string",
"last_run_time": "timestamp",
"last_run_state": "string",
"last_run_type": "string",
"created_at": "timestamp",
"updated_at": "timestamp",
"activate": "boolean",
Expand Down Expand Up @@ -578,7 +579,8 @@ http://localhost:8080
},
"frequency": "string",
"streams_config": "json",
"activate": "boolean", // send this to activate or deactivate job
"difference_streams": "string",
"activate": "boolean" // send this to activate or deactivate job
}
```

Expand Down Expand Up @@ -715,11 +717,12 @@ http://localhost:8080
"message": "string",
"data": [
{
"id":"string",
"file_path": "string",
"start_time": "timestamp",
"runtime": "integer",
"status": "string"
},
"status": "string",
"job_type": "string"
}
]
}
```
Expand Down Expand Up @@ -814,6 +817,72 @@ http://localhost:8080
}
```


### Clear destination for a Job
---

- **Endpoint**: `/api/v1/project/:projectid/jobs/:id/clear-destination`
- **Method**: POST
- **Description**: clears the destination data
- **Headers**: `Authorization: Bearer <token>`

- **Response**:

```json
{
"success": "boolean",
"message": "string",
"data": {
"message": "string"
}
}
```

### Get Clear Destination Status
---

- **Endpoint**: `/api/v1/project/:projectid/jobs/:id/clear-destination`
- **Method**: GET
- **Description**: Get the status of clear destination operation for a job
- **Headers**: `Authorization: Bearer <token>`

- **Response**:

```json
{
"success": "boolean",
"message": "string",
"data": {
"running": "boolean"
}
}
```

### Difference Streams
- **Endpoint**: `/api/v1/project/:projectid/jobs/:id/difference-streams`
- **Method**: POST
- **Description**: returns the stream difference bewtween the saved and the updated streams
- **Headers**: `Authorization: Bearer <token>`
- - **Request Body**:

```json
{
"updated_streams_config": "json"
}
```

- **Response**:

```json
{
"success": "boolean",
"message": "string",
"data": {
"difference_streams": "json"
}
}
```

## Error Responses

All endpoints may return the following error responses:
Expand Down
61 changes: 61 additions & 0 deletions server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,25 @@ go 1.24.2
require github.com/beego/beego/v2 v2.3.8

require (
github.com/apache/spark-connect-go/v35 v35.0.0-20250317154112-ffd832059443
github.com/apache/spark-connect-go/v35 v35.0.0-20250317154112-ffd832059443
github.com/aws/aws-sdk-go-v2/config v1.29.17
github.com/aws/aws-sdk-go-v2/service/ecr v1.50.5
github.com/aws/aws-sdk-go-v2/service/kms v1.41.1
github.com/docker/docker v28.3.3+incompatible
github.com/docker/docker v28.3.3+incompatible
github.com/go-playground/validator/v10 v10.27.0
github.com/lib/pq v1.10.9
github.com/oklog/ulid v1.3.1
github.com/rs/zerolog v1.34.0
github.com/spf13/viper v1.20.1
github.com/testcontainers/testcontainers-go v0.39.0
github.com/testcontainers/testcontainers-go v0.39.0
go.temporal.io/sdk v1.34.0
golang.org/x/crypto v0.41.0
golang.org/x/mod v0.26.0
golang.org/x/crypto v0.41.0
golang.org/x/mod v0.26.0
)

require (
Expand All @@ -37,6 +42,12 @@ require (
)

require (
cloud.google.com/go/compute/metadata v0.7.0 // indirect
dario.cat/mergo v1.0.2 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/apache/arrow-go/v18 v18.2.0 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
cloud.google.com/go/compute/metadata v0.7.0 // indirect
dario.cat/mergo v1.0.2 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
Expand All @@ -48,22 +59,32 @@ require (
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/platforms v0.2.1 // indirect
github.com/cpuguy83/dockercfg v0.3.2 // indirect
github.com/containerd/platforms v0.2.1 // indirect
github.com/cpuguy83/dockercfg v0.3.2 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/go-connections v0.6.0 // indirect
github.com/docker/go-connections v0.6.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/ebitengine/purego v0.8.4 // indirect
github.com/ebitengine/purego v0.8.4 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
github.com/go-errors/errors v1.5.1 // indirect
github.com/go-errors/errors v1.5.1 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/goccy/go-json v0.10.5 // indirect
github.com/google/flatbuffers v25.2.10+incompatible // indirect
github.com/klauspost/compress v1.18.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
github.com/goccy/go-json v0.10.5 // indirect
github.com/google/flatbuffers v25.2.10+incompatible // indirect
github.com/klauspost/compress v1.18.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.10 // indirect
Expand All @@ -76,10 +97,17 @@ require (
github.com/moby/sys/user v0.4.0 // indirect
github.com/moby/sys/userns v0.1.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/moby/go-archive v0.1.0 // indirect
github.com/moby/patternmatcher v0.6.0 // indirect
github.com/moby/sys/sequential v0.6.0 // indirect
github.com/moby/sys/user v0.4.0 // indirect
github.com/moby/sys/userns v0.1.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.1 // indirect
github.com/pierrec/lz4/v4 v4.1.22 // indirect
github.com/pierrec/lz4/v4 v4.1.22 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
Expand All @@ -88,6 +116,13 @@ require (
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zeebo/xxh3 v1.0.2 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zeebo/xxh3 v1.0.2 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
go.opentelemetry.io/otel v1.38.0 // indirect
Expand All @@ -100,12 +135,24 @@ require (
golang.org/x/oauth2 v0.30.0 // indirect
golang.org/x/tools v0.35.0 // indirect
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
go.opentelemetry.io/otel v1.38.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.38.0 // indirect
go.opentelemetry.io/otel/metric v1.38.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.38.0 // indirect
go.opentelemetry.io/otel/trace v1.38.0 // indirect
go.opentelemetry.io/proto/otlp v1.8.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/oauth2 v0.30.0 // indirect
golang.org/x/tools v0.35.0 // indirect
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
Expand All @@ -114,25 +161,31 @@ require (
github.com/google/uuid v1.6.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/jmoiron/sqlx v1.4.0
github.com/jmoiron/sqlx v1.4.0
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/nexus-rpc/sdk-go v0.3.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/sagikazarmark/locafero v0.7.0 // indirect
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.14.0 // indirect
github.com/spf13/afero v1.14.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/stretchr/testify v1.11.1
github.com/stretchr/testify v1.11.1
github.com/subosito/gotenv v1.6.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
go.temporal.io/api v1.46.0
Expand All @@ -142,10 +195,18 @@ require (
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.28.0 // indirect
golang.org/x/net v0.43.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.28.0 // indirect
golang.org/x/time v0.8.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
google.golang.org/grpc v1.75.0 // indirect
google.golang.org/protobuf v1.36.8 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
google.golang.org/grpc v1.75.0 // indirect
google.golang.org/protobuf v1.36.8 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading