Skip to content

Commit

Permalink
Revert "Improvements/code cleanup"
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi authored Dec 19, 2024
1 parent 34e37f3 commit 231468a
Show file tree
Hide file tree
Showing 28 changed files with 1,179 additions and 429 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [18]
node-version: [16, 18]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18 AS builder
FROM node:16 AS builder

# Create app directory
WORKDIR /app
Expand All @@ -17,7 +17,7 @@ COPY . .

RUN yarn run build

FROM node:18
FROM node:16

WORKDIR /app

Expand Down
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@nestjs/core": "8.0.7",
"@nestjs/microservices": "8.4.4",
"@nestjs/platform-fastify": "8.2.6",
"@nestjs/swagger": "^8.0.7",
"@nestjs/testing": "8.0.0",
"@nestjs/throttler": "^4.2.1",
"@prisma/client": "^4.12.0",
Expand All @@ -48,7 +47,6 @@
"argon2": "^0.31.1",
"axios": "^1.4.0",
"cache-manager": "^4.1.0",
"cache-manager-redis-store": "^2.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"codecov": "^3.8.3",
Expand All @@ -71,13 +69,9 @@
"posthog-node": "^2.6.0",
"prom-client": "^14.2.0",
"prompt-engine": "^0.0.31",
"redis": "^4.6.7",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0",
"nestjs-pino": "^4.1.0",
"pino-http": "^10.3.0",
"pino-loki": "^2.4.0",
"pino-pretty": "^13.0.0",
"winston": "^3.8.2",
"xstate": "^4.37.2"
},
"devDependencies": {
Expand Down

This file was deleted.

34 changes: 34 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,40 @@ model Metrics {
value String
}

model telemetry_logs {
eid String @db.Uuid @default(uuid())
createdAt DateTime @default(now())
eventType String
eventName String
producer Json
platform String
// producerChannel String
// producerDeviceID String?
// producerProducerID String @db.Uuid
// producerPlatform String
context Json
sessionId String @db.Uuid
// contextUserID String @db.Uuid
// contextConversationID String? @db.Uuid
// contextPageID String?
// contextRollup Json?
eventData Json
// eventDataTimestamp DateTime @default(now())
// eventDataDuration String?
// eventDataAudioURL String?
// eventDataQuestionGenerated String?
// eventDataQuestionSubmitted String?
// eventDataComparisonScore Int?
// eventDataAnswer String?
// eventDataFeedbackScore Int @default(0) @db.SmallInt
// eventDataLogData Json?
// eventDataErrorData Json?
errorType String?
tags Json?
@@unique([eid,createdAt])
}

model feedback {
id Int @id @default(autoincrement())
conversation conversation? @relation(fields: [conversationId], references: [id])
Expand Down
Loading

0 comments on commit 231468a

Please sign in to comment.