Skip to content

Commit 27166c2

Browse files
Merging staging to master
chore: release version v0.1.4
2 parents 2c3aa1e + 722a615 commit 27166c2

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ COPY ui/ ./
3535
RUN pnpm build
3636

3737
# Stage 3: Final Runtime Image
38-
FROM alpine:latest
38+
FROM alpine:3.18
3939

4040
# Install docker-cli
4141
RUN apk update && apk add --no-cache docker-cli

server/internal/handlers/auth.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package handlers
22

33
import (
4+
"context"
45
"encoding/json"
56
"net/http"
67
"strings"
@@ -52,7 +53,7 @@ func (c *AuthHandler) Login() {
5253
_ = c.SetSession(constants.SessionUserID, user.ID)
5354
}
5455

55-
telemetry.TrackUserLogin(c.Ctx.Request.Context(), user)
56+
telemetry.TrackUserLogin(context.Background(), user)
5657

5758
utils.SuccessResponse(&c.Controller, map[string]interface{}{
5859
"username": user.Username,

server/internal/handlers/destination.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package handlers
22

33
import (
4+
"context"
45
"encoding/json"
56
"fmt"
67
"net/http"
@@ -104,7 +105,7 @@ func (c *DestHandler) CreateDestination() {
104105
}
105106

106107
// Track destination creation event
107-
telemetry.TrackDestinationCreation(c.Ctx.Request.Context(), destination)
108+
telemetry.TrackDestinationCreation(context.Background(), destination)
108109
utils.SuccessResponse(&c.Controller, req)
109110
}
110111

@@ -145,7 +146,7 @@ func (c *DestHandler) UpdateDestination() {
145146
}
146147

147148
// Track destinations status after update
148-
telemetry.TrackDestinationsStatus(c.Ctx.Request.Context())
149+
telemetry.TrackDestinationsStatus(context.Background())
149150

150151
utils.SuccessResponse(&c.Controller, req)
151152
}
@@ -178,7 +179,7 @@ func (c *DestHandler) DeleteDestination() {
178179
}
179180

180181
// Track destinations status after deletion
181-
telemetry.TrackDestinationsStatus(c.Ctx.Request.Context())
182+
telemetry.TrackDestinationsStatus(context.Background())
182183

183184
utils.SuccessResponse(&c.Controller, &models.DeleteDestinationResponse{
184185
Name: dest.Name,

server/internal/handlers/job.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (c *JobHandler) CreateJob() {
175175
}
176176

177177
// telemetry events
178-
telemetry.TrackJobCreation(c.Ctx.Request.Context(), job)
178+
telemetry.TrackJobCreation(context.Background(), job)
179179

180180
if c.tempClient != nil {
181181
fmt.Println("Using Temporal workflow for sync job")
@@ -252,7 +252,7 @@ func (c *JobHandler) UpdateJob() {
252252
}
253253

254254
// Track sources and destinations status after job update
255-
telemetry.TrackJobEntity(c.Ctx.Request.Context())
255+
telemetry.TrackJobEntity(context.Background())
256256

257257
if c.tempClient != nil {
258258
logs.Info("Using Temporal workflow for sync job")
@@ -311,7 +311,7 @@ func (c *JobHandler) DeleteJob() {
311311
}
312312

313313
// Track sources and destinations status after job deletion
314-
telemetry.TrackJobEntity(c.Ctx.Request.Context())
314+
telemetry.TrackJobEntity(context.Background())
315315

316316
utils.SuccessResponse(&c.Controller, models.DeleteDestinationResponse{
317317
Name: jobName,

server/internal/handlers/source.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (c *SourceHandler) CreateSource() {
112112
}
113113

114114
// Track source creation event
115-
telemetry.TrackSourceCreation(c.Ctx.Request.Context(), source)
115+
telemetry.TrackSourceCreation(context.Background(), source)
116116

117117
utils.SuccessResponse(&c.Controller, req)
118118
}
@@ -151,7 +151,7 @@ func (c *SourceHandler) UpdateSource() {
151151
}
152152

153153
// Track sources status after update
154-
telemetry.TrackSourcesStatus(c.Ctx.Request.Context())
154+
telemetry.TrackSourcesStatus(context.Background())
155155
utils.SuccessResponse(&c.Controller, req)
156156
}
157157

@@ -186,7 +186,7 @@ func (c *SourceHandler) DeleteSource() {
186186
return
187187
}
188188

189-
telemetry.TrackSourcesStatus(c.Ctx.Request.Context())
189+
telemetry.TrackSourcesStatus(context.Background())
190190
utils.SuccessResponse(&c.Controller, &models.DeleteSourceResponse{
191191
Name: source.Name,
192192
})

server/internal/temporal/activities.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func SyncActivity(ctx context.Context, params *SyncParams) (map[string]interface
6464
"workflowID", params.WorkflowID)
6565

6666
// Track sync start event
67-
telemetry.TrackSyncStart(ctx, params.JobID, params.WorkflowID)
67+
telemetry.TrackSyncStart(context.Background(), params.JobID, params.WorkflowID)
6868

6969
// Create a Docker runner with the default config directory
7070
runner := docker.NewRunner(docker.GetDefaultConfigDir())

worker.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY server/ ./
1414
RUN go build -o temporal-worker ./cmd/temporal-worker
1515

1616
# Runtime stage
17-
FROM alpine:latest
17+
FROM alpine:3.18
1818
WORKDIR /app
1919
COPY --from=builder /app/worker/temporal-worker .
2020
RUN mkdir -p ./conf

0 commit comments

Comments
 (0)