Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
0ca9bab
fix(api): refactor raw queries and add constants
vikaxsh Jun 12, 2025
b6c00d6
chore(api): Adding service layer
vikaxsh Jun 12, 2025
190b89f
chore(api): adding service layer
vikaxsh Jun 17, 2025
922c2da
Merge branch 'staging' of https://github.com/datazip-inc/olake-fronte…
vikaxsh Jul 1, 2025
9a00631
fix: resolve conflict errors
vikaxsh Jul 1, 2025
b4bb565
feat: improve Worker design by passing existing Client
vikaxsh Jul 3, 2025
679e4ce
Merge branch 'staging' of https://github.com/datazip-inc/olake-fronte…
vikaxsh Jul 10, 2025
934cb1e
feat: improving error handling a
vikaxsh Jul 13, 2025
d152357
feat: add info logging
vikaxsh Jul 14, 2025
a1142de
fix: changes after testing
vikaxsh Jul 17, 2025
3bdd367
Merge branch 'staging' of https://github.com/datazip-inc/olake-fronte…
vikaxsh Jul 17, 2025
c4e93e8
feat(docker): use Docker Go SDK instead of shell commands for contain…
vikaxsh Jul 17, 2025
489a2ea
feat: updated GoSec security ci
vikaxsh Jul 18, 2025
5942237
feat: delete config files
vikaxsh Jul 18, 2025
376a12b
chore: update project name to olake-ui
vikaxsh Jul 30, 2025
8213098
chore: addressed review comments
vikaxsh Jul 30, 2025
61bfd98
chore: merge staging branch
vikaxsh Aug 13, 2025
abc47c8
chore: creatign dto packaghe
vikaxsh Aug 13, 2025
33640af
chore: using GetIDFromPath function for id
vikaxsh Aug 14, 2025
6ab7a04
feat: implement dto layer and validation for request
vikaxsh Aug 18, 2025
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
500306c
chore: saving changes
vikaxsh Oct 7, 2025
c163f6c
merge staging
vikaxsh Oct 7, 2025
d0c0815
chore: refactor based on self review
vikaxsh Oct 8, 2025
de35522
Merge branch 'staging' of https://github.com/datazip-inc/olake-fronte…
vikaxsh Oct 8, 2025
50017ff
chore: refactor
vikaxsh Oct 8, 2025
de465d4
Merge branch 'refactor/bff' of https://github.com/datazip-inc/olake-u…
vishalm0509 Oct 8, 2025
0412835
docs: updated api contract
vikaxsh 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
52321d2
refactor: initialize services once at startup and standardize error l…
vikaxsh Oct 15, 2025
072698e
Merge branch 'staging' of https://github.com/datazip-inc/olake-fronte…
vikaxsh Oct 15, 2025
bfe5015
fix: remove unnecessary checks
vikaxsh Oct 15, 2025
d3c4c93
fix: ci issues
vikaxsh Oct 15, 2025
931dbb1
fix: ci issues
vikaxsh Oct 15, 2025
4d4cac8
fix: ci issues
vikaxsh Oct 15, 2025
da49039
fix: lint issues
vikaxsh Oct 15, 2025
1192f2e
fix: refactor unmarshal and validation for req body
vikaxsh Oct 15, 2025
8a3845f
chore: refactor dto and nil checks
vikaxsh Oct 15, 2025
aa7a200
chore: use errorf
vikaxsh Oct 15, 2025
bdf7708
fix: dto and db queries
vikaxsh Oct 16, 2025
7398e8b
chore: resovle review comments
vikaxsh Oct 16, 2025
cdffdcf
chore: remove nil checks and added request uri in error logs
vikaxsh Oct 16, 2025
e080a8a
fix: lint issue
vikaxsh Oct 16, 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
9912f5d
chore: refactor bff (#237)
hash-data Oct 24, 2025
b0cf000
chore: adding back vikash commit of package name change
hash-data Oct 24, 2025
7b6d22c
chore: adding back vikash commit of package name change
hash-data 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
6275f0d
refactor: merge k8s and docker workers (#205)
vishalm0509 Oct 30, 2025
24a0747
chore: add constants for app.conf keys
vishalm0509 Oct 30, 2025
ab425b3
fix: call pause and unpause in activate job service
vishalm0509 Oct 30, 2025
a2ce1db
chore: api success response update
vikaxsh Oct 31, 2025
d718f06
Merge branch 'staging' of https://github.com/datazip-inc/olake-fronte…
vikaxsh Oct 31, 2025
948d57b
fix: lint issue
vikaxsh Oct 31, 2025
7d4f37a
feat: add clear destination (#239)
deepanshupal09-datazip Oct 31, 2025
7efe398
fix: source and job dataitems
vikaxsh Oct 31, 2025
a2e13b6
fix: api according to bff refactor
deepanshupal09-datazip Nov 1, 2025
808c269
fix: build errors
deepanshupal09-datazip Nov 1, 2025
8fc26ef
Merge branch 'refactor/bff' into refactor/ui-api-changes
deepanshupal09-datazip Nov 1, 2025
b2c2f88
chore: consistant logger accorss files
vikaxsh Nov 2, 2025
ba6d558
fix: security ci
vikaxsh Nov 2, 2025
7e527f9
fix: security ci
vikaxsh Nov 2, 2025
b12fafc
fix: panic issue and add unique name check in job creation
vikaxsh Nov 2, 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
a6ad22a
feat: added job cancel in job updatea and return error from test conn…
vikaxsh Nov 3, 2025
f2f3546
fix: add syncWaitTime to clearDestination service
vishalm0509 Nov 3, 2025
0f566d8
chore: move temporal and etl into services folder
vikaxsh Nov 3, 2025
f41f45a
fix: fix clear destination api changes
deepanshupal09-datazip Nov 3, 2025
68b2397
chore: use same name in sevice and handlers
vikaxsh Nov 3, 2025
b9bbc49
fix: source test connection
vikaxsh Nov 3, 2025
ce8b05c
fix: move result nil check before error in source and destiantion tes…
vikaxsh Nov 3, 2025
6ffd9f6
fix: fix job history retry and destination spec api (#244)
deepanshupal09-datazip Nov 3, 2025
d0053fb
fix: remove hardcoding branch name in build-ui workflow
vishalm0509 Nov 3, 2025
268e7b2
fix: remove k8s and docker task queue
vishalm0509 Nov 3, 2025
7b62dd2
fix: lint issue
vishalm0509 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
e5dfb84
fix: error in login and test destiantion
vikaxsh Nov 4, 2025
6dd7a9f
Merge branch 'refactor/bff' of https://github.com/datazip-inc/olake-u…
vishalm0509 Nov 4, 2025
a849ec9
fix: add retry logic for temporal client init
vishalm0509 Nov 4, 2025
4091964
fix: send id in job edit (#245)
deepanshupal09-datazip Nov 5, 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
a825e8c
chore: update worker tag in docker-compose for int. test
vishalm0509 Nov 7, 2025
029ebfb
chore: remove temporal address from constant (#246)
vishalm0509 Nov 7, 2025
f54819f
chore: resolve review comments
vikaxsh Nov 7, 2025
2c09805
chore: remove unused messages
vikaxsh Nov 7, 2025
8d4e7af
Merge branch 'refactor/bff' of https://github.com/datazip-inc/olake-u…
vishalm0509 Nov 7, 2025
97ce08d
resolve changes
vishalm0509 Nov 8, 2025
24ca8c8
Merge branch 'staging' of https://github.com/datazip-inc/olake-ui int…
vishalm0509 Nov 8, 2025
5231813
fix: lint errors
vishalm0509 Nov 8, 2025
af076b9
fix: frontend lint issue
vishalm0509 Nov 9, 2025
9667351
fix: add 1 minute wait before table verification
vishalm0509 Nov 9, 2025
a5d1213
chore: remove duplicate values
vishalm0509 Nov 9, 2025
b7f541c
fix: resolve comments
deepanshupal09-datazip Nov 10, 2025
dc5b5e6
fix: lint error
deepanshupal09-datazip Nov 10, 2025
9925632
fix: add user_id in discover command
vishalm0509 Nov 10, 2025
5dbfaad
fix: resolve comments
vishalm0509 Nov 10, 2025
463698b
fix: add user_id in job config for sync
vishalm0509 Nov 10, 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
115 changes: 93 additions & 22 deletions api-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ http://localhost:8080
"message": "string",
"data": {
"email":"string",
"username": "string",
"username": "string"
}
}
```
Expand All @@ -65,7 +65,7 @@ http://localhost:8080
- **Headers**: `Authorization: Bearer <token>` // we are using cookie currently so frontend take care accordingly
- **Response**:
```json
{
{
"success": "boolean",
"message": "string",
"data": {
Expand Down Expand Up @@ -108,6 +108,8 @@ http://localhost:8080
{
"type":"string",
"version": "string",
"type":"string",
"version": "string",
}
```
- **Response**:
Expand Down Expand Up @@ -271,6 +273,7 @@ http://localhost:8080
```



## Destinations
### Get All Version Of Destinations
- **Endpoint**: `/api/v1/project/:projectid/destinations/versions`
Expand Down Expand Up @@ -303,7 +306,7 @@ http://localhost:8080
```json
{
"type":"string",
"version": "string",
"version": "string"
}
```
- **Response**:
Expand Down Expand Up @@ -367,7 +370,7 @@ http://localhost:8080
"name": "string",
"type": "string",
"config": "json",
"version":"string",
"version":"string"
}
```
- **Response**:
Expand All @@ -380,7 +383,7 @@ http://localhost:8080
"name": "string",
"type": "string",
"config": "json",
"version":"string", // to create a job same version of destination and same version of source required
"version":"string" // to create a job same version of destination and same version of source required
}
}
```
Expand Down Expand Up @@ -434,7 +437,7 @@ http://localhost:8080
"name": "string",
"type": "string",
"config": "json",
"version":"string",
"version":"string"
}
```
- **Response**:
Expand All @@ -460,12 +463,11 @@ http://localhost:8080
- **Response**:

```json

{ // NOTE: this is only soft delete not hard
"success": "boolean",
"message": "string",
"data": {
"name": "string",
"name": "string"
}
}
```
Expand Down Expand Up @@ -493,10 +495,10 @@ http://localhost:8080
"name": "string",
"type": "string",
"config": "string",
"version": "string",
"version": "string"
},
"frequency": "string",
"streams_config": "json",
"streams_config": "json"
}
```

Expand Down Expand Up @@ -530,23 +532,24 @@ http://localhost:8080
"name": "string",
"type": "string",
"config": "json",
"version": "string",
"version": "string"
},
"destination": {
"name": "string",
"type": "string",
"config": "json",
"version": "string",
"version": "string"
},
"streams_config":"json",
"frequency": "string",
"last_run_time": "timestamp",
"last_run_state": "string",
"last_run_type": "string",
"created_at": "timestamp",
"updated_at": "timestamp",
"activate": "boolean",
"created_by": "string", // username
"updated_by": "string", // username
"updated_by": "string" // username
// can also send state but if it is required
}
]
Expand All @@ -568,17 +571,18 @@ http://localhost:8080
"name": "string",
"type": "string",
"config": "json",
"version": "string",
"version": "string"
},
"destination": {
"name": "string",
"type": "string",
"config": "json",
"version": "string",
"version": "string"
},
"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 All @@ -593,23 +597,25 @@ http://localhost:8080
"name": "string",
"type": "string",
"config": "json",
"version": "string",
"version": "string"
},
"destination": {
"name": "string",
"type": "string",
"config": "json",
"version": "string",
"version": "string"
},
"frequency": "string",
"streams_config": "json",
"activate": "boolean",
"activate": "boolean"
}
}
```





### Delete Job

- **Endpoint**: `/api/v1/project/:projectid/jobs/:id`
Expand Down Expand Up @@ -715,11 +721,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 @@ -770,6 +777,7 @@ http://localhost:8080
```



- **Endpoint**: `/api/v1/project/:projectid/jobs/:jobid/task/:id/logs`
- **Method**: GET
- **Description**: Give the Logs of that particular Job
Expand Down Expand Up @@ -814,6 +822,69 @@ 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"
}
```

### 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
2 changes: 1 addition & 1 deletion server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ require (
google.golang.org/grpc v1.75.0 // indirect
google.golang.org/protobuf v1.36.8 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
)
2 changes: 1 addition & 1 deletion server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -454,4 +454,4 @@ gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
4 changes: 4 additions & 0 deletions server/internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package constants
import (
"fmt"
"strings"
"time"

"github.com/beego/beego/v2/core/config"
"github.com/beego/beego/v2/server/web"
Expand All @@ -23,6 +24,9 @@ var (
DefaultConfigDir = "/tmp/olake-config"
DefaultLogRetentionPeriod = 30
DefaultSpecVersion = "v0.2.0"

DefaultCancelSyncWaitTime = 30 * time.Second

// logging
EnvLogLevel = "LOG_LEVEL"
EnvLogFormat = "LOG_FORMAT"
Expand Down
Loading
Loading