Skip to content

Commit

Permalink
feat(engine+ui): Replace lancedb with postgres (#250)
Browse files Browse the repository at this point in the history
* feat: Replace lancedb Case schema with Case SQL table

* Drop lance from docker

* Drop lance from db engines

* Drop lance from deps

* Delete completions

* Open cases in postgres not lancedb

* Drop duplicated case types

* feat: Store `context`, `supression`, `tags`, and `payload` as JSONB in postgres

* Redo case API endpoints

* style: Move Case table

* Add CaseResponse API type

* Delete unused example cases json

* Delete supressions

* Drop all streaming autocomplete from frontend

* Clean up cases table controls

* fix: Fetch many cases

* Delete cases unit test file

* fix: `wf_id`

* fix: Spelling mistake in Case object creation

* feat: Make workflow start titles lowercase

* Replace set-output with gh env files

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

* Remove unused imports in UI

* Delete events component

* Delete unused query builder

* Delete old workflow runs UI and fetcher
  • Loading branch information
topher-lo committed Jul 18, 2024
1 parent 61d8306 commit 8c4415a
Show file tree
Hide file tree
Showing 39 changed files with 1,380 additions and 3,279 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

- name: Get SHA
id: get-sha
run: echo "::set-output name=sha::$(git rev-parse --short HEAD)"
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Login to Amazon ECR
id: login-ecr
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
- name: Get SHA
id: get-sha
run: echo "::set-output name=sha::$(git rev-parse --short HEAD)"
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Get image tag
id: set-image-tag
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM python:3.12-slim-bookworm

ARG LANCEDB_CONFIG_DIR=/var/lib/tracecat/lancedb
# Define the environment variables
ENV API_MODULE=tracecat.api.app:app
ENV HOST=0.0.0.0
ENV PORT=8000
ENV TRACECAT_DIR=/var/lib/tracecat
ENV LANCEDB_CONFIG_DIR=/var/lib/tracecat/lancedb

# Expose the application port
EXPOSE $PORT
Expand Down
3 changes: 0 additions & 3 deletions docs/api-reference/reference/cases/get-case-metrics.mdx

This file was deleted.

This file was deleted.

34 changes: 0 additions & 34 deletions docs/integrations/udfs/core_open_case.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,6 @@ _No secrets required._
"title": "CaseContext",
"type": "object"
},
"Suppression": {
"properties": {
"condition": {
"title": "Condition",
"type": "string"
},
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"condition",
"result"
],
"title": "Suppression",
"type": "object"
},
"Tag": {
"properties": {
"is_ai_generated": {
Expand Down Expand Up @@ -152,22 +134,6 @@ _No secrets required._
"title": "Status",
"type": "string"
},
"suppression": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/Suppression"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "List of suppressions",
"title": "Suppression"
},
"tags": {
"anyOf": [
{
Expand Down
Loading

0 comments on commit 8c4415a

Please sign in to comment.